diff options
Diffstat (limited to 'www/php4/Makefile.common')
-rw-r--r-- | www/php4/Makefile.common | 74 |
1 files changed, 15 insertions, 59 deletions
diff --git a/www/php4/Makefile.common b/www/php4/Makefile.common index 6b7d1e6dd32..87879f55658 100644 --- a/www/php4/Makefile.common +++ b/www/php4/Makefile.common @@ -1,9 +1,6 @@ -# $NetBSD: Makefile.common,v 1.16 2001/09/27 23:18:57 jlam Exp $ +# $NetBSD: Makefile.common,v 1.17 2001/10/16 04:54:24 jlam Exp $ DISTNAME= php-${PHP_DIST_VERS} -PHP_DIST_VERS= 4.0.5 -PHP_BASE_VERS= ${PHP_DIST_VERS} -PHP_VERS= ${PHP_BASE_VERS} CATEGORIES+= www php4 MASTER_SITES= http://www.php.net/distributions/ \ http://php3.de/distributions/ \ @@ -12,68 +9,27 @@ MASTER_SITES= http://www.php.net/distributions/ \ MAINTAINER= jlam@netbsd.org HOMEPAGE= http://www.php.net/ -# Put this dependency here to compile in dbm support for all PHP4 modules. -DEPENDS+= gdbm>=1.7.3:../../databases/gdbm - -DISTINFO_FILE= ${.CURDIR}/../../www/php4/distinfo -FILESDIR= ${.CURDIR}/../../www/php4/files -PATCHDIR= ${.CURDIR}/../../www/php4/patches +# Version numbering scheme: +# +# PHP_DIST_VERS version number on the php distfile +# PHP_BASE_VERS pkgsrc-mangled version number (convert pl -> .) +# PHP_PKG_VERS pkgsrc revisions of php (nbX, etc.) +# PHP_VERS pkgsrc version number of package +# +PHP_DIST_VERS= 4.0.6 +PHP_BASE_VERS= ${PHP_DIST_VERS} +PHP_PKG_VERS?= # empty +PHP_VERS= ${PHP_BASE_VERS}${PHP_PKG_VERS} # Location of installed PHP4 loadable modules under ${PREFIX}. # This is derived from the value of `php-config --extension-dir`. +# The number for the last part of the path represents a specific version +# of the Zend API. # -PHP_EXTENSION_DIR= lib/php/extensions/no-debug-non-zts-20001222 +PHP_EXTENSION_DIR= lib/php/20001222 PLIST_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR} -USE_LIBTOOL= # defined -LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig - .include "../../mk/bsd.prefs.mk" PHP_CONFDIR?= ${LOCALBASE}/etc MESSAGE_SUBST+= PHP_CONFDIR=${PHP_CONFDIR} - -.if ${OPSYS} == "SunOS" -DEPENDS+= zlib-[0-9]*:../../devel/zlib -.endif - -# Here we configure only for what NetBSD ships. We add the rest via modules. -# -GNU_CONFIGURE= # defined - -USE_LIBINTL= # defined -.if exists(/usr/include/libintl.h) -GETTEXTDIR= /usr -.else -GETTEXTDIR= ${LOCALBASE} -.endif - -CONFIGURE_ARGS+= --without-gd -CONFIGURE_ARGS+= --without-mysql -CONFIGURE_ARGS+= --without-pcre-regex -CONFIGURE_ARGS+= --with-gdbm=${LOCALBASE} -CONFIGURE_ARGS+= --with-gettext=${GETTEXTDIR} -CONFIGURE_ARGS+= --with-yp -CONFIGURE_ARGS+= --with-zlib -CONFIGURE_ARGS+= --with-config-file-path=${PHP_CONFDIR} -CONFIGURE_ARGS+= --with-system-regex -CONFIGURE_ARGS+= --with-exec-dir=${PREFIX}/libexec/php4 -CONFIGURE_ARGS+= --enable-track-vars -CONFIGURE_ARGS+= --enable-force-cgi-redirect -CONFIGURE_ARGS+= --enable-discard-path -CONFIGURE_ARGS+= --enable-memory-limit -CONFIGURE_ARGS+= --enable-sysvsem -CONFIGURE_ARGS+= --enable-sysvshm -CONFIGURE_ARGS+= --enable-wddx -CONFIGURE_ARGS+= --enable-sockets - -# The following two modules are bogus to include, but we need it to maintain -# version/capability compatibility with older binary packages of ap-php4. -# -CONFIGURE_ARGS+= --with-dbase -CONFIGURE_ARGS+= --with-filepro - -pre-configure: pre-common-configure - -pre-common-configure: - ${LN} -sf ${WRKSRC}/libtool ${WRKSRC}/shlibtool |