blob: 90e58644be97fbe8e3dd059208715f6f1fb2af56 (
plain)
1
2
3
4
5
6
7
8
9
|
pkg:setup
ENV.delete("SDKROOT")
cmake -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DWITH_BUNDLED_SSL=OFF -DOPENSSL_ROOT_DIR=#{Formula[openssl"].opt_prefix}"
make DESTDIR=${PKG_DEST} install
(etc/"h2o").mkpath
(var/"h2o").install "examples/doc_root/index.html"
(buildpath/"brew/h2o.conf").write conf_example
(etc/"h2o").install buildpath/"brew/h2o.conf"
pkgshare.install "examples"
|