Building on OS X: Initial documentation
authorDirk Zimmermann <dirk@pep-project.org>
Sun, 10 Jul 2016 11:38:46 +0200
changeset 57ae2ba71f718a
parent 56 193fb9c23d19
child 58 77e3cd8164bd
Building on OS X: Initial documentation
.hgignore
README-OSX.md
server/Makefile
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Sun Jul 10 11:38:46 2016 +0200
     1.3 @@ -0,0 +1,17 @@
     1.4 +syntax: glob
     1.5 +.DS_Store
     1.6 +
     1.7 +*.o
     1.8 +*.Po
     1.9 +*.Plo
    1.10 +*.pc
    1.11 +
    1.12 +libevent-*-stable/Makefile
    1.13 +libevent-*-stable/config.h
    1.14 +libevent-*-stable/config.log
    1.15 +libevent-*-stable/config.status
    1.16 +libevent-*-stable/include/Makefile
    1.17 +libevent-*-stable/libtool
    1.18 +libevent-*-stable/sample/Makefile
    1.19 +libevent-*-stable/stamp-h1
    1.20 +libevent-*-stable/test/Makefile
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/README-OSX.md	Sun Jul 10 11:38:46 2016 +0200
     2.3 @@ -0,0 +1,33 @@
     2.4 +# Building libevent on OS X
     2.5 +
     2.6 +## MacPorts
     2.7 +
     2.8 +Install [MacPorts](https://www.macports.org/) for your
     2.9 +[version of OS X/macOS](https://www.macports.org/install.php).
    2.10 +
    2.11 +Note that you need [Xcode installed](https://www.macports.org/install.php)
    2.12 +for MacPorts, and for building the engine. You also need to accept Xcode's EULA.
    2.13 +
    2.14 +```
    2.15 +sudo port install openssl
    2.16 +sudo port install boost
    2.17 +```
    2.18 +
    2.19 +## libevent
    2.20 +
    2.21 +```
    2.22 +export LDFLAGS=-L/opt/local
    2.23 +export CFLAGS=-I/opt/local/include
    2.24 +
    2.25 +./configure --prefix $HOME
    2.26 +
    2.27 +make
    2.28 +make install
    2.29 +```
    2.30 +
    2.31 +## server/Makefile
    2.32 +
    2.33 +```
    2.34 +cd server
    2.35 +make
    2.36 +```
     3.1 --- a/server/Makefile	Sun Jul 03 01:16:30 2016 +0200
     3.2 +++ b/server/Makefile	Sun Jul 10 11:38:46 2016 +0200
     3.3 @@ -1,7 +1,7 @@
     3.4  .PHONY: all clear
     3.5  
     3.6 -CXXFLAGS = -Wall -O0 -std=c++11 -g -I/home/deb/local/include/ -Ijson_spirit -fstack-protector-all
     3.7 -LDFLAGS  = -L/home/deb/local/lib -lpthread -levent -lpEpEngine -lgpgme-pthread -letpan -lboost_system -lboost_filesystem
     3.8 +CXXFLAGS = -Wall -O0 -std=c++11 -g -I/opt/local/include -I$(HOME)/include -I/home/deb/local/include/ -Ijson_spirit -fstack-protector-all
     3.9 +LDFLAGS  = -L/opt/local/lib -L$(HOME)/lib -L/home/deb/local/lib -lpthread -levent -lpEpEngine -lgpgme-pthread -letpan -lboost_system -lboost_filesystem
    3.10  
    3.11  all: mt-server
    3.12