1 # $NetBSD: Makefile,v 1.38 2013/02/28 21:28:20 imil Exp $
4 # We can't omit PKGNAME here to handle PKG_OPTIONS.
6 PKGNAME
= php-
${PHP_BASE_VERS}
9 HOMEPAGE
= http
://www.php.net
/
10 COMMENT
= PHP Hypertext Preprocessor version
5
15 USE_TOOLS
+= gmake
lex pkg-config
16 LIBTOOL_OVERRIDE
= # empty
18 .
include "Makefile.php"
20 CGIDIR
= ${PREFIX}/libexec
/cgi-bin
21 EGDIR
= ${PREFIX}/share
/examples
/php
22 MESSAGE_SUBST
+= CGIDIR
=${CGIDIR}
24 CONFIGURE_ENV
+= lt_cv_path_SED
=${SED
:Q
}
25 MAKE_ENV
+= INSTALL_ROOT
=${DESTDIR}
27 CONF_FILES
= ${EGDIR}/php.ini-production
${PKG_SYSCONFDIR}/php.ini
28 PLIST_SUBST
+= PHPEXTDIR
="${PHP_EXTENSION_DIR}"
31 SUBST_MESSAGE.path
= Fixing common paths.
32 SUBST_STAGE.path
= pre-configure
33 SUBST_FILES.path
= configure ext
/phar
/phar
/phar.php
34 SUBST_FILES.path
+= php.ini-development php.ini-production run-tests.php
35 SUBST_SED.path
= -e
's,@CGIDIR@,${CGIDIR},g'
36 SUBST_SED.path
+= -e
's,@PREFIX@,${PREFIX},g'
38 INSTALLATION_DIRS
+= ${CGIDIR} ${EGDIR} share
/php
${PHP_EXTENSION_DIR}
40 # Make sure modules can link correctly
41 .if
${OPSYS} == "Darwin"
42 INSTALL_UNSTRIPPED
= yes
47 ${FIND} .
-xdev
-type f
-name
'*.orig' -exec
${RM} -f
{} \
;
50 ${INSTALL_PROGRAM} ${WRKSRC}/sapi
/cli
/php
${DESTDIR}${PREFIX}/bin
/php
51 ${INSTALL_DATA} ${WRKSRC}/sapi
/cli
/php
.1 \
52 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
/php
.1
53 ${INSTALL_PROGRAM} ${WRKSRC}/sapi
/cgi
/php-cgi
${DESTDIR}${CGIDIR}/php
54 cd
${WRKSRC}; ${INSTALL_DATA} php.ini-development php.ini-production \
56 ${INSTALL_DATA} ${WRKSRC}/php.gif
${DESTDIR}${PREFIX}/share
/php
58 .
include "../../mk/bsd.pkg.mk"