summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-05-21 02:51:37 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-05-21 14:07:57 -0400
commitbb93414a23faddf99efd5fdcc2fa6276b5205087 (patch)
treea7e9b3399121c1277bec993e95ca6909802a9505 /INSTALL
parente8dd8fdb53752e45697a8b9775c5e119b1a1b6f0 (diff)
downloadlighttpd-git-bb93414a23faddf99efd5fdcc2fa6276b5205087.tar.gz
[build_cmake] use MODULE on Mac OS X (fixes #1761)
add instructions in INSTALL to build using CMake and Xcode on Mac OS X along with MacPorts update CMake to link test_configfile with pcre x-ref: "loadable-module naming on macosx + cmake" https://redmine.lighttpd.net/issues/1761
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL22
1 files changed, 22 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index c0899a8a..f4aa8f7c 100644
--- a/INSTALL
+++ b/INSTALL
@@ -54,3 +54,25 @@ static build using make
$ LIGHTTPD_STATIC=yes ./configure -C --enable-static=yes
$ make
$ sudo make install
+
+build using CMake and Xcode on Mac OS X with MacPorts
+-----------------------------------------------------
+* upgrade to latest Mac OS X
+* install Xcode from Apple Store (requires latest Mac OS X)
+* install MacPorts from https://www.macports.org/install.php
+
+ $ xcodebuild --license
+ $ xcode-select --install
+ $ sudo port selfupdate
+ $ sudo port install autoconf automake cmake libtool m4 pcre pkgconfig zlib bzip2 openssl libxml sqlite3 openldap fcgi p5-cgi libunwind libunwind-headers mysql57 libev gdbm openldap ossp-uuid
+ # Note: some of the above require more fiddling to configure with CMake...
+
+ # cmake and build
+ # (all -DWITH_... flags below are optional)
+ $ cmake -Wno-dev -DWITH_OPENSSL=1 -DWITH_LUA=1 -DWITH_ZLIB=1 -DWITH_BZIP2=1 -DWITH_WEBDAV_PROPS=1 .
+ $ make -j 4
+ $ make test
+
+ # Note: many tests fail if not built with openssl
+ # lighttpd will not start up with tests/lighttpd.conf
+ # (mod_secdownload fails to configure hmac-sha1 and hmac-sha256)