summaryrefslogtreecommitdiff
path: root/homebrew/h2o/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/h2o/.make.sh-auto')
-rw-r--r--homebrew/h2o/.make.sh-auto9
1 files changed, 9 insertions, 0 deletions
diff --git a/homebrew/h2o/.make.sh-auto b/homebrew/h2o/.make.sh-auto
new file mode 100644
index 000000000..90e58644b
--- /dev/null
+++ b/homebrew/h2o/.make.sh-auto
@@ -0,0 +1,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"