5 # Purpose : Build the privoxy binary, documentation and config files
6 # for the chosen target environment
8 # Copyright : Written by and Copyright (C) 2001-2012 the
9 # Privoxy team. http://www.privoxy.org/
11 # This program is free software; you can redistribute it
12 # and/or modify it under the terms of the GNU General
13 # Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at
15 # your option) any later version.
17 # This program is distributed in the hope that it will
18 # be useful, but WITHOUT ANY WARRANTY; without even the
19 # implied warranty of MERCHANTABILITY or FITNESS FOR A
20 # PARTICULAR PURPOSE. See the GNU General Public
21 # License for more details.
23 # The GNU General Public License should be included with
24 # this file. If not, you can view it at
25 # http://www.gnu.org/copyleft/gpl.html
26 # or write to the Free Software Foundation, Inc.,
27 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
30 # Modification : If you modify this file please consider whether your
31 # changes ought to be passed back to the macsetup module.
37 if [ $# -eq 0 -o $# -gt 1 ]; then
38 echo "Usage: $0 lion | snowleopard64 | snowleopard | leopardupwards | leopard | tiger | panther"
43 # load common settings
50 if [ -z ${XCODE_PATH} ]; then
51 echo "Error: this release of Mac OS X not supported."
61 # check if privoxy group and user exist?
63 if [ -z ${GNAME} -o -z ${UNAME} ]; then
65 echo "Error: a privoxy group and user do not exist."
66 echo "A privoxy group and user must be created before continuing."
67 echo "Review the README file for instructions on creating a privoxy group and user."
71 echo "Notice: an existing privoxy group and user was found."
78 echo "Notice: configuring the privoxy software."
82 /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}
85 # clean, then make privoxy
88 echo "Notice: building the privoxy software."
95 /usr/bin/awk '{sub(/logfile.*logfile$/,"logfile logfile.log"); print}' ../${SOURCE_DIR}/config > ../${SOURCE_DIR}/config.tmp
96 /bin/mv ../${SOURCE_DIR}/config.tmp ../${SOURCE_DIR}/config