1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Unbreak build with new php 4.3.2, and Various fixes.

PR:		ports/52801
Submitted by:	Alex Dupre <sysadmin@alexdupre.com> (maintainer)
This commit is contained in:
Norikatsu Shigemura 2003-06-06 19:04:58 +00:00
parent f0c1f08346
commit 6445a656e3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82391
3 changed files with 12 additions and 19 deletions

View File

@ -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 \
--with-php-config=${PREFIX}/bin/php-config
CONFIGURE_ARGS+=--enable-php_screw=shared
.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>

View File

@ -4,6 +4,6 @@ You have installed the php-screw package.
Edit %%LOCALBASE%%/etc/php.ini and add:
zend_extension="%%PREFIX%%/lib/php/extensions/php_screw.so"
zend_extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/php_screw.so"
*****************************************************************************

View File

@ -1,2 +1,3 @@
bin/screw
lib/php/extensions/php_screw.so
lib/php/%%PHP_EXT_DIR%%/php_screw.so
@unexec rmdir %D/lib/php/%%PHP_EXT_DIR%% 2>/dev/null || true