diff options
author | dirk <dirk@FreeBSD.org> | 2002-03-22 06:47:31 +0800 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2002-03-22 06:47:31 +0800 |
commit | b08d827c39de3444c76d9df3ea3ed8c5382ae8cb (patch) | |
tree | 8692a348e51cea56581f7622eba02e2dd5a9252e /www/mod_php4 | |
parent | 8d0b75fe6c81040896363e02972154b5e605d330 (diff) | |
download | freebsd-ports-gnome-b08d827c39de3444c76d9df3ea3ed8c5382ae8cb.tar.gz freebsd-ports-gnome-b08d827c39de3444c76d9df3ea3ed8c5382ae8cb.tar.zst freebsd-ports-gnome-b08d827c39de3444c76d9df3ea3ed8c5382ae8cb.zip |
Make sure every block is printed once, only.
Diffstat (limited to 'www/mod_php4')
-rw-r--r-- | www/mod_php4/scripts/configure.php | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php index ee993b3b6dca..47d875cb814a 100644 --- a/www/mod_php4/scripts/configure.php +++ b/www/mod_php4/scripts/configure.php @@ -94,7 +94,6 @@ while [ "$1" ]; do ;; \"zlib\") echo "CONFIGURE_ARGS+=--with-zlib" - ZLIB=1 ;; \"bzip2\") if [ -x /usr/bin/bzip2 ]; then @@ -125,8 +124,11 @@ while [ "$1" ]; do echo " --with-tiff-dir=\${LOCALBASE}" ;; \"IMAP\") - echo "LIB_DEPENDS+= c-client4.8:\${PORTSDIR}/mail/cclient" - echo "CONFIGURE_ARGS+=--with-imap=\${LOCALBASE}" + if [ -z "$IMAP" ]; then + echo "LIB_DEPENDS+= c-client4.8:\${PORTSDIR}/mail/cclient" + echo "CONFIGURE_ARGS+=--with-imap=\${LOCALBASE}" + IMAP=1 + fi ;; \"IMAP-SSL\") echo "CONFIGURE_ARGS+=--with-imap-ssl=\${LOCALBASE}" @@ -221,9 +223,11 @@ while [ "$1" ]; do LIBS="${LIBS} -L\${OPENSSLBASE}/lib -lcrypto -lssl" ;; \"XML\") - echo "LIB_DEPENDS+= expat.2:\${PORTSDIR}/textproc/expat2" - echo "CONFIGURE_ARGS+=--with-expat-dir=\${LOCALBASE}" - XML=1 + if [ -z "$XML" ]; then + echo "LIB_DEPENDS+= expat.2:\${PORTSDIR}/textproc/expat2" + echo "CONFIGURE_ARGS+=--with-expat-dir=\${LOCALBASE}" + XML=1 + fi ;; \"XMLRPC\") echo "CONFIGURE_ARGS+=--with-xmlrpc" @@ -263,9 +267,11 @@ while [ "$1" ]; do echo "CONFIGURE_ARGS+=--with-gettext=\${LOCALBASE}" ;; \"iconv\") - echo "LIB_DEPENDS+= iconv.3:\${PORTSDIR}/converters/libiconv" - echo "CONFIGURE_ARGS+=--with-iconv=\${LOCALBASE}" - ICONV=1 + if [ -z "$ICONV" ]; then + echo "LIB_DEPENDS+= iconv.3:\${PORTSDIR}/converters/libiconv" + echo "CONFIGURE_ARGS+=--with-iconv=\${LOCALBASE}" + ICONV=1 + fi ;; \"pspell\") echo "LIB_DEPENDS+= pspell.4:\${PORTSDIR}/textproc/pspell" |