1998-09-01 18:38:05 +00:00
|
|
|
#!/bin/sh
|
1999-12-28 10:17:34 +00:00
|
|
|
# $FreeBSD$
|
1998-09-01 18:38:05 +00:00
|
|
|
|
1998-12-23 00:44:50 +00:00
|
|
|
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
|
1998-09-01 18:38:05 +00:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2000-05-15 11:53:29 +00:00
|
|
|
if [ "${BATCH}" ]; then
|
|
|
|
set \"zlib\" \"MySQL\"
|
|
|
|
else
|
|
|
|
/usr/bin/dialog --title "configuration options" --clear \
|
|
|
|
--checklist "\n\
|
2000-05-29 19:24:19 +00:00
|
|
|
Please select desired options:" -1 -1 16 \
|
|
|
|
GD "GD library support" OFF \
|
|
|
|
FreeType "TrueType font rendering (implies GD)" OFF \
|
|
|
|
zlib "zlib library support" ON \
|
|
|
|
mcrypt "Encryption support" OFF \
|
|
|
|
mhash "Crypto-hashing support" OFF \
|
|
|
|
pdflib "pdflib support (implies zlib)" OFF \
|
|
|
|
IMAP "IMAP support" OFF \
|
|
|
|
MySQL "MySQL database support" ON \
|
|
|
|
PostgreSQL "PostgreSQL database support" OFF \
|
|
|
|
mSQL "mSQL database support" OFF \
|
|
|
|
SybaseDB "Sybase/MS-SQL database support (DB-lib)" OFF \
|
|
|
|
SybaseCT "Sybase/MS-SQL database support (CT-lib)" OFF \
|
|
|
|
dBase "dBase database support" OFF \
|
|
|
|
OpenLDAP "OpenLDAP support" OFF \
|
|
|
|
SNMP "SNMP support" OFF \
|
|
|
|
XML "XML support" OFF \
|
|
|
|
FTP "File Transfer Protocol support" OFF \
|
1998-12-23 00:44:50 +00:00
|
|
|
2> /tmp/checklist.tmp.$$
|
1998-09-01 18:38:05 +00:00
|
|
|
|
2000-05-15 11:53:29 +00:00
|
|
|
retval=$?
|
|
|
|
|
|
|
|
if [ -s /tmp/checklist.tmp.$$ ]; then
|
|
|
|
set `cat /tmp/checklist.tmp.$$`
|
|
|
|
fi
|
|
|
|
rm -f /tmp/checklist.tmp.$$
|
1998-09-01 18:38:05 +00:00
|
|
|
|
2000-05-15 11:53:29 +00:00
|
|
|
case $retval in
|
|
|
|
0) if [ -z "$*" ]; then
|
|
|
|
echo "Nothing selected"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
1) echo "Cancel pressed."
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
1998-09-01 18:38:05 +00:00
|
|
|
fi
|
|
|
|
|
2000-02-25 23:37:28 +00:00
|
|
|
${MKDIR} ${WRKDIRPREFIX}${CURDIR}
|
1999-07-03 09:50:42 +00:00
|
|
|
exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
1998-09-01 18:38:05 +00:00
|
|
|
|
|
|
|
while [ "$1" ]; do
|
|
|
|
case $1 in
|
|
|
|
\"GD\")
|
2000-06-06 20:45:50 +00:00
|
|
|
echo "LIB_DEPENDS+= gd.1:\${PORTSDIR}/graphics/gd"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-gd=\${PREFIX}"
|
2000-02-27 21:14:28 +00:00
|
|
|
GD=1
|
|
|
|
;;
|
|
|
|
\"FreeType\")
|
|
|
|
echo "LIB_DEPENDS+= ttf.4:\${PORTSDIR}/print/freetype"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-ttf=\${PREFIX}"
|
2000-02-27 21:14:28 +00:00
|
|
|
if [ -z "$GD" ]; then
|
|
|
|
set $* \"GD\"
|
|
|
|
fi
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
|
|
|
\"zlib\")
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-zlib"
|
1999-07-30 21:07:03 +00:00
|
|
|
ZLIB=1
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
1999-06-28 23:57:39 +00:00
|
|
|
\"mcrypt\")
|
2000-01-27 13:04:23 +00:00
|
|
|
echo "LIB_DEPENDS+= mcrypt-2.2.2:\${PORTSDIR}/security/libmcrypt"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-mcrypt=\${PREFIX}"
|
1999-06-28 23:57:39 +00:00
|
|
|
;;
|
|
|
|
\"mhash\")
|
1999-12-28 10:17:34 +00:00
|
|
|
echo "mhash is DISABLED for now. Ignoring." > /dev/stderr
|
|
|
|
;;
|
|
|
|
\"nothing\")
|
1999-08-16 18:41:13 +00:00
|
|
|
echo "LIB_DEPENDS+= mhash.1:\${PORTSDIR}/security/mhash"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-mhash=\${PREFIX}"
|
1999-06-28 23:57:39 +00:00
|
|
|
;;
|
1999-01-20 14:56:42 +00:00
|
|
|
\"pdflib\")
|
1999-08-16 18:41:13 +00:00
|
|
|
echo "LIB_DEPENDS+= pdf.2:\${PORTSDIR}/print/pdflib"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-pdflib=\${PREFIX} \\"
|
1999-08-16 18:41:13 +00:00
|
|
|
echo " --with-jpeg-dir=\${PREFIX} \\"
|
|
|
|
echo " --with-tiff-dir=\${PREFIX}"
|
1999-07-30 21:07:03 +00:00
|
|
|
if [ -z "$ZLIB" ]; then
|
|
|
|
set $* \"zlib\"
|
|
|
|
fi
|
1999-05-04 14:50:33 +00:00
|
|
|
;;
|
|
|
|
\"IMAP\")
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "LIB_DEPENDS+= c-client4.7:\${PORTSDIR}/mail/imap-uw"
|
|
|
|
echo "CONFIGURE_ARGS+=--with-imap=\${PREFIX}"
|
1999-01-20 14:56:42 +00:00
|
|
|
;;
|
1998-09-01 18:38:05 +00:00
|
|
|
\"MySQL\")
|
1999-08-16 18:41:13 +00:00
|
|
|
echo "LIB_DEPENDS+= mysqlclient.6:\${PORTSDIR}/databases/mysql322-client"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-mysql=\${PREFIX}"
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
1998-09-13 17:18:13 +00:00
|
|
|
\"PostgreSQL\")
|
2000-04-05 16:44:06 +00:00
|
|
|
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql"
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
|
|
|
\"mSQL\")
|
1999-08-16 18:41:13 +00:00
|
|
|
echo "BUILD_DEPENDS+= msql:\${PORTSDIR}/databases/msql"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-msql=\${PREFIX}"
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
2000-03-01 22:45:34 +00:00
|
|
|
\"SybaseDB\")
|
2000-02-29 21:46:06 +00:00
|
|
|
echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-sybase=\${PREFIX}"
|
2000-03-01 22:45:34 +00:00
|
|
|
if [ "$SYBASECT" ]; then
|
|
|
|
echo "SybaseDB and SybaseCT are mutually exclusive." > /dev/stderr
|
|
|
|
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
SYBASEDB=1
|
|
|
|
;;
|
|
|
|
\"SybaseCT\")
|
|
|
|
echo "LIB_DEPENDS+= ct.0:\${PORTSDIR}/databases/freetds"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-sybase-ct=\${PREFIX}"
|
2000-03-01 22:45:34 +00:00
|
|
|
if [ "$SYBASEDB" ]; then
|
|
|
|
echo "SybaseDB and SybaseCT are mutually exclusive." > /dev/stderr
|
|
|
|
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
SYBASECT=1
|
2000-02-29 21:46:06 +00:00
|
|
|
;;
|
1998-09-01 18:38:05 +00:00
|
|
|
\"dBase\")
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-dbase"
|
1998-12-23 00:44:50 +00:00
|
|
|
;;
|
|
|
|
\"OpenLDAP\")
|
2000-05-06 10:02:37 +00:00
|
|
|
echo "LIB_DEPENDS+= ldap.1:\${PORTSDIR}/net/openldap"
|
|
|
|
echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}"
|
2000-06-01 14:22:26 +00:00
|
|
|
if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
|
1999-10-09 15:00:21 +00:00
|
|
|
echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'"
|
|
|
|
fi
|
1998-09-01 18:38:05 +00:00
|
|
|
;;
|
1999-08-26 22:09:39 +00:00
|
|
|
\"SNMP\")
|
1999-09-19 12:36:24 +00:00
|
|
|
echo "LIB_DEPENDS+= snmp.4:\${PORTSDIR}/net/ucd-snmp"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-snmp=\${PREFIX} --enable-ucd-snmp-hack"
|
1999-08-26 22:09:39 +00:00
|
|
|
;;
|
1999-08-26 15:03:52 +00:00
|
|
|
\"XML\")
|
|
|
|
echo "BUILD_DEPENDS+= \${PREFIX}/lib/libexpat.a:\${PORTSDIR}/textproc/expat"
|
|
|
|
echo "BUILD_DEPENDS+= \${PREFIX}/include/xml/xmlparse.h:\${PORTSDIR}/textproc/expat"
|
|
|
|
echo "BUILD_DEPENDS+= \${PREFIX}/include/xml/xmltok.h:\${PORTSDIR}/textproc/expat"
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-xml=\${PREFIX}"
|
1999-08-26 15:03:52 +00:00
|
|
|
;;
|
2000-05-16 20:26:34 +00:00
|
|
|
\"FTP\")
|
2000-05-29 19:24:19 +00:00
|
|
|
echo "CONFIGURE_ARGS+=--with-ftp"
|
1998-09-30 18:16:08 +00:00
|
|
|
;;
|
2000-05-29 19:24:19 +00:00
|
|
|
*)
|
2000-05-15 11:53:29 +00:00
|
|
|
echo "Invalid option(s): $*" > /dev/stderr
|
|
|
|
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|
|
|
exit 1
|
|
|
|
;;
|
1998-09-01 18:38:05 +00:00
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|