X-Git-Url: http://www.privoxy.org/gitweb/index.html?a=blobdiff_plain;f=build.sh;h=028c44d13037ddf6ef805dbc804ee8141206b378;hb=030221d958b74b3e1d13e0cc9d4d23018f951c8d;hp=35f7b4337fcc211935fc7d505543fed516700736;hpb=d862a6edfafeff9af7ab902df6cb59d852c49615;p=OSXPackageBuilder.git diff --git a/build.sh b/build.sh index 35f7b43..028c44d 100755 --- a/build.sh +++ b/build.sh @@ -28,14 +28,15 @@ # USA # # Modification : If you modify this file please consider whether your -# changes ought to be passed back to the macsetup module. +# changes ought to be passed back to the OSXPackageBuilder +# module. # # # 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 @@ -48,14 +49,18 @@ fi # must have Xcode # if [ -z ${XCODE_PATH} ]; then - echo "Error: this release of Mac OS X not supported." + echo "Error: Xcode is not found." exit 1 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?