b4c77a8441
- fix packaging - respect prefix/localbase Pass maintainership to submitter as well. PR: 36382 Submitted by: Alex Dupre <sysadmin@alexdupre.com>
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# New ports collection makefile for: php_templates
|
|
# Date created: Feb 28 2002
|
|
# Whom: vanilla
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= php-templates
|
|
PORTVERSION= 0.2
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DISTNAME= php_templates-${PORTVERSION}
|
|
|
|
MAINTAINER= sysadmin@alexdupre.com
|
|
|
|
BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake \
|
|
autoconf:${PORTSDIR}/devel/autoconf \
|
|
phpize:${PORTSDIR}/www/mod_php4
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 \
|
|
${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
|
|
|
|
USE_LIBTOOL= yes
|
|
LIBTOOLFILES= aclocal.m4
|
|
|
|
WRKSRC= ${WRKDIR}/templates
|
|
|
|
CONFIGURE_ARGS+=--enable-templates=shared \
|
|
--with-php-config=${PREFIX}/bin/php-config
|
|
|
|
post-extract:
|
|
@${ECHO_MSG} "===> PHPizing for ${DISTNAME}"
|
|
@cd ${WRKSRC} && ${LOCALBASE}/bin/phpize
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/lib/php/20010901
|
|
@${INSTALL_DATA} ${WRKSRC}/modules/templates.so \
|
|
${PREFIX}/lib/php/20010901
|
|
|
|
post-install:
|
|
@${SED} "s!%%LOCALBASE%%!${LOCALBASE}!g;s!%%PREFIX%%!${PREFIX}!g" \
|
|
${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|