summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2004-11-06 18:24:40 +0000
committerjdolecek <jdolecek@pkgsrc.org>2004-11-06 18:24:40 +0000
commit030aad031ab84caba3978369a894f832ae7dac3e (patch)
tree180f13711fdee70a69f46bf9648cc7eba9c063a8 /lang/php5
parentf0216e8478f901d66baad0eaf3040a31ab6e0261 (diff)
downloadpkgsrc-030aad031ab84caba3978369a894f832ae7dac3e.tar.gz
merge extension module handling for PHP4 and PHP5 into lang/php/ext.mk,
g/c no longer needed Makefile.module add support for building extensions off PECL; version for PECL packages is built as ${PHP_BASE_VERS}.${PECL_VERSION}, i.e. PECL pkg version 1.0 would become php-pkg-4.3.9.1.0 or php-pkg-5.0.2.1.0 respectively
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/Makefile.module65
1 files changed, 0 insertions, 65 deletions
diff --git a/lang/php5/Makefile.module b/lang/php5/Makefile.module
deleted file mode 100644
index 613bd170a61..00000000000
--- a/lang/php5/Makefile.module
+++ /dev/null
@@ -1,65 +0,0 @@
-# $NetBSD: Makefile.module,v 1.5 2004/11/05 21:40:25 jdolecek Exp $
-
-.include "../../lang/php5/Makefile.common"
-
-PKGNAME?= php-${MODNAME}-${PHP_BASE_VERS}
-PKGREVISION?= # empty
-
-.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}/../../lang/php5/distinfo
-
-PHPIZE?= ${BUILDLINK_PREFIX.php}/bin/phpize
-PHP_CONFIG?= ${BUILDLINK_PREFIX.php}/bin/php-config
-
-GNU_CONFIGURE= YES
-CONFIGURE_ARGS+= --with-php-config=${PHP_CONFIG}
-
-USE_CONFIG_WRAPPER= YES
-USE_LIBTOOL= YES
-
-# Ensure we export symbols in the linked shared object.
-LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
-MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS="${EXPORT_SYMBOLS_LDFLAGS}"
-
-PLIST_SRC= ${.CURDIR}/../../lang/php/PLIST.module
-MESSAGE_SRC= ${.CURDIR}/../../lang/php/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}
-
-.if defined(USE_PHP_EXT_PATCHES)
-PATCHDIR= ${PKGDIR}/../../lang/php5/patches
-do-patch:
- cd ${WRKSRC}; \
- for p in `${EGREP} -l '^\+\+\+ ext/${MODNAME}/' ${PATCHDIR}/patch-*`;do\
- ${SED} -e 's,^+++ ext/${MODNAME}/,+++ ,' $$p | ${PATCH}; \
- done
-.endif
-
-.include "../../lang/php5/buildlink3.mk"