mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
a5a72dfa1b
PR: ports/156557 Submitted by: Svyatoslav Lempert <svyatoslav.lempert@gmail.com> (maintainer)
63 lines
1.4 KiB
Makefile
63 lines
1.4 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.0.8
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://downloads2.ioncube.com/loader_downloads/ \
|
|
http://ls.fvds.ru/ioncube/4.0.8/
|
|
DISTFILES= ${PORTNAME}_loaders_fre_${VER}_${ARCH_DIST}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= svyatoslav.lempert@gmail.com
|
|
COMMENT= An ionCube loader for PHP code
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
NO_BUILD= yes
|
|
USE_PHP= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# Detect OS Version
|
|
.if ${OSVERSION} >= 800000
|
|
VER= 8
|
|
.endif
|
|
.if (${OSVERSION} >= 700000 && ${OSVERSION} < 800000)
|
|
VER= 7
|
|
.endif
|
|
|
|
# Detect OS Architecture
|
|
.if ${ARCH} == amd64
|
|
ARCH_DIST= x86-64
|
|
.else
|
|
ARCH_DIST= x86
|
|
.endif
|
|
|
|
# Detect PHP version
|
|
.if ${PHP_VER} == 4
|
|
PHP_INSTVER= 4.4
|
|
.endif
|
|
.if ${PHP_VER} == 5
|
|
PHP_INSTVER= 5.3
|
|
.endif
|
|
# If you have old lang/php52
|
|
.if ${PHP_VER} == 52
|
|
PHP_INSTVER= 5.2
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/
|
|
${INSTALL_DATA} ${WRKDIR}/ioncube/ioncube_loader_fre_${PHP_INSTVER}.so \
|
|
${PREFIX}/lib/php/${PHP_EXT_DIR}/ioncube/ioncube_loader.so
|
|
${INSTALL_DATA} ${WRKDIR}/ioncube/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>
|