forked from zeutro/openabe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
macport.env
47 lines (47 loc) · 1.64 KB
/
macport.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# To configure openabe to build using dependencies installed by
# Macports - usually, OpenSSL and gtest - source this file
# via bash before doing "make" in the openabe top directory,
# like
# $ source macport.emv
# $ make && make test
#
# To install, do (after making sure "INSTALL_PREFIX" (and "LOCAL_INSTALL_BIN") point
# where you want the process to install the binaries):
#
# $ sudo -EH make install
#
source ./env
# For the case when "bison" in on the PATH
export BISON="bison"
# What dependencies to pull and build within this process. Options are
# "relic, openssl, gtest" or any subset thereof.
export USE_DEPS="relic"
#
# Where to find dependencies and extra header files/libraries
# The following points at those installed by Macports
export ADD_CFLAGS="-I/opt/local/include -march=native"
export LDFLAGS="-L/opt/local/lib -lgtest"
export LOCAL_LIB_ROOT="/opt/local/lib"
export LOCAL_INCLUDE="/opt/local/include"
export OS_CXXFLAGS="-I/opt/local/include -march=native"
#
# Point at the installed OpenSSL library
export ZSYM_DEP_LIBS="-L/opt/local/lib -lcrypto"
#
# Uncomment the following *only* if you already have RELIC, OpenSSL, and GTest
# installed where this build can find them
#export NO_DEPS="none"
unset NO_DEPS
# Note: uncomment the following *only* if you will use Zeutro fork of
# the OpenSSL package!
#export ZML_LIB="with_openssl"
unset ZML_LIB
export ZROOT="${PWD}"
#
# Where to install "openabe" (following sets it to where Macports
# installs binaries):
export INSTALL_PREFIX="/opt/local"
# Even though LOCAL_INSTALL_BIN seems deprecated now, make sure
# it points at the correct place
export LOCAL_INSTALL_BIN="${INSTALL_PREFIX}/bin"