pkgsrc/www/php4/Makefile.module
jdolecek 90c1c1709f Update PHP to final 4.3.3
Some highlights of changes since 4.2.3:
* PCRE updated to 4.3, GD to 2.0.15
* improved Apache2 support
* much improved stream & URL wrapper support, output compression support
* added CLI (Command Line Interface) SAPI
* debug_backtrace() backported from ZendEngine2
* faster build system
* huge number of other bug fixes and improvements

Packaging changes:
* 'pcre', 'xml', and 'session' modules folded back into main package -
  'pcre' and 'xml' is required by PEAR, and 'session' is just too essential
  to be separate
* 'gd' module now uses bundled PHP GD library, which is better integrated
* PHP modules use shared distinfo when possible to ease future PHP updates
* ${PREFIX}/bin/php is now CLI version, ${PREFIX}/libexec/cgi-big/php
  remains CGI version
2003-08-31 19:55:21 +00:00

66 lines
2 KiB
Text

# $NetBSD: Makefile.module,v 1.23 2003/08/31 19:56:05 jdolecek Exp $
#
# This Makefile is provided to ease creating PHP4 packages for the extension
# modules distributed in the PHP4 sources.
#
# Just include this file, define MODNAME, define PKGREVISION if necessary,
# add dependencies, and add the appropriate --with-configure-arg, then include
# bsd.pkg.mk.
.include "../../www/php4/Makefile.common"
PKGNAME?= php-${MODNAME}-${PHP_BASE_VERS}
PKGREVISION?= # empty
DEPENDS+= php>=${PHP_BASE_VERS}:../../www/php4
AUTOMAKE_REQD?= 1.7
.include "../../mk/automake.mk"
PKGMODNAME?= ${MODNAME:S/-/_/}
MODULESDIR?= ${WRKSRC}/modules
PLIST_SUBST+= MODNAME=${PKGMODNAME}
EXTRACT_ELEMENTS?= ${DISTNAME}/ext/${PKGMODNAME}
WRKSRC?= ${WRKDIR}/${EXTRACT_ELEMENTS}
DISTINFO_FILE?= ${PKGDIR}/../../www/php4/distinfo
PHPIZE?= ${BUILDLINK_PREFIX.php4}/bin/phpize
PHP_CONFIG?= ${BUILDLINK_PREFIX.php4}/bin/php-config
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-php-config=${PHP_CONFIG}
USE_CONFIG_WRAPPER= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
# Ensure we export symbols in the linked shared object.
LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS="${EXPORT_SYMBOLS_LDFLAGS}"
PLIST_SRC= ${.CURDIR}/../../www/php4/PLIST.module
MESSAGE_SRC= ${.CURDIR}/../../www/php4/MESSAGE.module
MESSAGE_SUBST+= MODNAME=${PKGMODNAME}
MESSAGE_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR}
pre-configure: phpize-module
phpize-module:
@cookie=${WRKDIR}/.phpize_module_done; \
if [ ! -f $${cookie} ]; then \
( cd ${WRKSRC} && ${SETENV} AUTOCONF=${AUTOCONF} \
AUTOHEADER=${AUTOHEADER} ACLOCAL=${ACLOCAL} \
LIBTOOLIZE=${LOCALBASE}/bin/libtoolize \
${PHPIZE} ); \
${TOUCH} ${TOUCH_FLAGS} $${cookie}; \
fi
do-install: do-module-install
do-module-install:
${INSTALL_DATA_DIR} ${PREFIX}/${PHP_EXTENSION_DIR}
${INSTALL_DATA} ${MODULESDIR}/${PKGMODNAME}.so \
${PREFIX}/${PHP_EXTENSION_DIR}
.include "../../www/php4/buildlink2.mk"