1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/devel/ioncube/Makefile
Mathieu Arnold aef5a66670 Don't use extension.ini any more, and have each extension install in its
file, so the order remains the same.

Every PHP (or Zend) extension now installs its own .ini file in
/usr/local/etc/php.  A PHP extension will be automatically activated
when installed.  The order into which extensions are loaded is
automatically guessed.  In some very rare cases, the guess will be
wrong, and PHP_MOD_PRIO will need to be set.  Refer to the USES=php
section of the Porter's Handbook for more information.

Convert ports touching etc/php/extensions.ini manually, or telling the
OP to do it.

And finally, bump PORTREVISION for all php extensions.

PR:		210697
Submitted by:	mat
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D7022
2016-08-03 12:47:05 +00:00

41 lines
1.5 KiB
Makefile

# Created by: Svyatoslav Lempert <svyatoslav.lempert@gmail.com>
# $FreeBSD$
PORTNAME= ioncube
DISTVERSION= 5.0.21
CATEGORIES= devel
MASTER_SITES= http://downloads3.ioncube.com/loader_downloads/ \
http://dl.ispsystem.info/ioncube/${DISTVERSION}/ \
http://downloads2.ioncube.com/loader_downloads/
DISTNAME= ${PORTNAME}_loaders_fre_${VER}_${ARCH:S,i386,x86,:S,amd64,x86-64,}
DIST_SUBDIR= ${PORTNAME}/${DISTVERSION}
MAINTAINER= svyatoslav.lempert@gmail.com
COMMENT= Loader for ionCube-encoded PHP files
ONLY_FOR_ARCHS= i386 amd64
NO_BUILD= yes
USES= php
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}/${PORTNAME}
VER= 9
IGNORE_DragonFly= is unsupported on DragonFly
PHP_INSTVER= ${PHP_VERSION:C/^([0-9]+\.[0-9]+).*/\1/}
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/
${INSTALL_DATA} ${WRKSRC}/ioncube_loader_fre_${PHP_INSTVER}.so \
${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader.so
${INSTALL_DATA} ${WRKSRC}/ioncube_loader_fre_${PHP_INSTVER}_ts.so \
${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader_ts.so
# Put it before opcache, like the previous pkg-message was saying
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/php
@${ECHO_CMD} "[Zend]" > ${STAGEDIR}${PREFIX}/etc/php/ext-05-ioncube.ini
@${ECHO_CMD} "zend_extension=${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader.so" >> ${STAGEDIR}${PREFIX}/etc/php/ext-05-ioncube.ini
@${ECHO_CMD} "zend_extension_ts=${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader_ts.so" >> ${STAGEDIR}${PREFIX}/etc/php/ext-05-ioncube.ini
.include <bsd.port.mk>