mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
f52c4ef985
IGNORE; - fix $PKGMESSAGE when PHP has been built WITH_DEBUG.
64 lines
1.4 KiB
Makefile
64 lines
1.4 KiB
Makefile
# Ports collection makefile for: pear-apd
|
|
# Date created: 06 Septemeber 2003
|
|
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= apd
|
|
PORTVERSION= ${APD_VER}
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel pear
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A full-featured engine-level PHP profiler/debugger
|
|
|
|
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
USE_PHP= yes
|
|
USE_PHPIZE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-apd
|
|
|
|
DUMP_DIR?= /var/tmp/apd
|
|
|
|
PORTDOCS= README
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
|
|
|
|
.if ${PHP_VER} == 4
|
|
APD_VER= 0.9.2
|
|
MD5_FILE= ${MASTERDIR}/distinfo.php4
|
|
.else
|
|
APD_VER= 1.0.1
|
|
MD5_FILE= ${MASTERDIR}/distinfo.php5
|
|
.endif
|
|
|
|
PLIST_SUB+= EXTDIR=lib/php/${PHP_EXT_DIR}
|
|
|
|
PHP_DEBUG= ${PHP_EXT_DIR:C/[0-9]*//}
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= PHP_EXT_DIR=${PHP_EXT_DIR} DUMP_DIR=${DUMP_DIR} DEBUG=${PHP_DEBUG:S/-/_/}
|
|
|
|
post-extract:
|
|
@${CHMOD} -R u+w ${WRKSRC}
|
|
|
|
post-install-script:
|
|
@${STRIP_CMD} ${PHP_BASE}/lib/php/${PHP_EXT_DIR}/apd.so
|
|
@${MKDIR} ${DUMP_DIR}
|
|
@${CHMOD} a+w ${DUMP_DIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pprofp ${PREFIX}/bin
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for FILE in ${PORTDOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
.endfor
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
.endif
|
|
@${ECHO_MSG}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|