freebsd-ports/devel/ioncube/Makefile
Michael Scheidell 259b91cd53 - Update to 4.2.0 for PHP 5.4 support
PR:		ports/167996
Submitted by:	John Marshall <john.marshall@riverwillow.com.au>
Approved by:	Svyatoslav Lempert <svyatoslav.lempert@gmail.com> (maintainer)
2012-05-17 10:29:35 +00:00

47 lines
1.1 KiB
Makefile

# New ports collection makefile for: ioncube
# Date created: Fri Feb 12 21:43:10 CET 2010
# Whom: Svyatoslav Lempert <svyatoslav.lempert@gmail.com>
#
# $FreeBSD$
#
PORTNAME= ioncube
DISTVERSION= 4.2.0
CATEGORIES= devel
MASTER_SITES= http://downloads2.ioncube.com/loader_downloads/ \
http://ls.fvds.ru/ioncube/${DISTVERSION}/
DISTNAME= ${PORTNAME}_loaders_fre_${VER}_${ARCH:S,i386,x86,:S,amd64,x86-64,}
MAINTAINER= svyatoslav.lempert@gmail.com
COMMENT= An ionCube loader for PHP code
ONLY_FOR_ARCHS= i386 amd64
NO_BUILD= yes
USE_BZIP2= yes
USE_PHP= yes
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
# Detect OS Version
.if ${OSVERSION} >= 800000
VER= 8
.else
VER= 7
.endif
PHP_INSTVER= ${PHP_VERSION:C/^([0-9]+\.[0-9]+).*/\1/}
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/
${INSTALL_DATA} ${WRKSRC}/ioncube_loader_fre_${PHP_INSTVER}.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader.so
${INSTALL_DATA} ${WRKSRC}/ioncube_loader_fre_${PHP_INSTVER}_ts.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader_ts.so
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>