diff options
author | nork <nork@FreeBSD.org> | 2003-06-06 19:04:58 +0000 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-06-06 19:04:58 +0000 |
commit | 484f33c7993752e47e0ef9a68763b04203198f0e (patch) | |
tree | cb6afd6464ff2d171cd21700de5ab83f68068203 /www/php-screw/Makefile | |
parent | b4b01cdec89c63277c212061140ef1ae0c8dbb35 (diff) | |
download | FreeBSD-ports-484f33c7993752e47e0ef9a68763b04203198f0e.zip FreeBSD-ports-484f33c7993752e47e0ef9a68763b04203198f0e.tar.gz |
Unbreak build with new php 4.3.2, and Various fixes.
PR: ports/52801
Submitted by: Alex Dupre <sysadmin@alexdupre.com> (maintainer)
Diffstat (limited to 'www/php-screw/Makefile')
-rw-r--r-- | www/php-screw/Makefile | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/www/php-screw/Makefile b/www/php-screw/Makefile index 40f5617..65b9619 100644 --- a/www/php-screw/Makefile +++ b/www/php-screw/Makefile @@ -16,20 +16,16 @@ EXTRACT_SUFX= .tgz MAINTAINER= sysadmin@alexdupre.com COMMENT= A PHP script encryption tool -BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake \ - autoconf:${PORTSDIR}/devel/autoconf \ - phpize:${PORTSDIR}/www/mod_php4 -RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 \ - ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 - PKGMESSAGE= ${WRKDIR}/pkg-message CRYPTKEY?= 11152, 368, 192, 1281, 62 -USE_LIBTOOL= yes +USE_PHPIZE= yes + +CONFIGURE_ARGS+=--enable-php_screw=shared -CONFIGURE_ARGS+=--enable-php_screw=shared \ - --with-php-config=${PREFIX}/bin/php-config +.include <bsd.port.pre.mk> +.include "${.CURDIR}/../../lang/php4/bsd.php.mk" pre-everything:: @${ECHO} "" @@ -39,10 +35,6 @@ pre-everything:: @${ECHO} "make CRYPTKEY=\"234, 84, 39664, 771, 9853\"" @${ECHO} "" -post-extract: - @${ECHO_MSG} "===> PHPizing for ${PORTNAME}-${PORTVERSION}" - @(cd ${WRKSRC}; ${LOCALBASE}/bin/phpize) - post-patch: @${ECHO} "short pm9screw_mycryptkey[] = { ${CRYPTKEY} };" > \ ${WRKSRC}/my_screw.h @@ -54,15 +46,15 @@ do-build: ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}) post-build: - @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g" \ + @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \ ${.CURDIR}/pkg-message > ${PKGMESSAGE} do-install: - @${MKDIR} ${PREFIX}/lib/php/extensions + @${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR} @${INSTALL_DATA} ${WRKSRC}/modules/php_screw.so \ - ${PREFIX}/lib/php/extensions + ${PREFIX}/lib/php/${PHP_EXT_DIR} @${INSTALL_PROGRAM} ${WRKSRC}/tools/screw ${PREFIX}/bin post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |