X-Git-Url: http://www.privoxy.org/gitweb/installation.html?a=blobdiff_plain;f=build.sh;h=7fb015fce445d182f4d701851e1c63dfce66bb18;hb=9fe43e030e106aa3bfb25c5c3d58a8cbd86d452b;hp=0a4755105ec3018d765f70bf4f522279286064d9;hpb=68a95a6c43eed1c6668809091f75981b01041163;p=OSXPackageBuilder.git diff --git a/build.sh b/build.sh index 0a47551..7fb015f 100755 --- a/build.sh +++ b/build.sh @@ -34,8 +34,8 @@ # # must provide target # -if [ $# -eq 0 -o $# -gt 1 ]; then - echo "Usage: $0 lion | snowleopard64 | snowleopard | leopardupwards | leopard | tiger | panther" +if [ $# -eq 0 -o $# -gt 2 ]; then + echo "Usage: $0 lion | snowleopard64 | snowleopard | leopardupwards | leopard | tiger | panther [-pcre]" exit 1 fi @@ -53,9 +53,13 @@ if [ -z ${XCODE_PATH} ]; then fi # -# use default options +# set configure options # OPTS=${OPTS} +if [ "$2" == "-pcre" ]; then + CFLAGS="${CFLAGS} -I/usr/local/include/" + LDFLAGS="${LDFLAGS} -L/usr/local/lib" +fi # # check if privoxy group and user exist? @@ -79,7 +83,7 @@ echo "Notice: configuring the privoxy software." cd ../${SOURCE_DIR} /usr/bin/autoheader /usr/bin/autoconf -/usr/bin/env CFLAGS="${CFLAGS} -I/usr/local/include/ ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" LDFLAGS="${LDFLAGS} -L/usr/local/lib ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" ./configure ${OPTS} +/usr/bin/env CFLAGS="${CFLAGS} ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" LDFLAGS="${LDFLAGS} ${SYSROOT} ${ARCH} ${MACOSX_VERSION}" ./configure ${OPTS} # # clean, then make privoxy