1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
This commit is contained in:
Vanilla I. Shu 2014-07-19 01:41:15 +00:00
parent fb21d7a021
commit 10ca9a19a7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362235
3 changed files with 7 additions and 14 deletions

View File

@ -11,17 +11,16 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A PHP script encryption tool
PKGMESSAGE= ${WRKDIR}/pkg-message
CRYPTKEY?= 11152, 368, 192, 1281, 62
USE_AUTOTOOLS= libtool
USE_PHP= zlib
USE_PHPIZE= yes
PLIST_SUB= PHP_EXTDIR="${PHP_EXT_DIR}"
SUB_FILES= pkg-message
CONFIGURE_ARGS+=--enable-php_screw=shared
CONFIGURE_ARGS+= --enable-php_screw=shared
NO_STAGE= yes
pre-everything::
@${ECHO} ""
@${ECHO} "To achieve real security, define your own encryption"
@ -40,16 +39,11 @@ do-build:
@(cd ${BUILD_WRKSRC}/tools; ${SETENV} ${MAKE_ENV} ${MAKE} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
post-build:
@${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/${PHP_EXT_DIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
@${INSTALL_DATA} ${WRKSRC}/modules/php_screw.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}
@${INSTALL_PROGRAM} ${WRKSRC}/tools/screw ${PREFIX}/bin
post-install:
@${CAT} ${PKGMESSAGE}
${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
@${INSTALL_PROGRAM} ${WRKSRC}/tools/screw ${STAGEDIR}${PREFIX}/bin
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/php_screw.so
.include <bsd.port.mk>

View File

@ -1,3 +1,2 @@
bin/screw
lib/php/%%PHP_EXT_DIR%%/php_screw.so
@dirrmtry lib/php/%%PHP_EXT_DIR%%