69 lines
1.7 KiB
Makefile
Raw Normal View History

2000-12-14 15:25:20 +00:00
# $OpenBSD: Makefile,v 1.24 2000/12/14 15:25:20 brad Exp $
DISTNAME= php-3.0.18
PKGNAME= php3-3.0.18
CATEGORIES= www lang
2000-10-29 20:37:13 +00:00
NEED_VERSION= 1.319
2000-07-20 11:26:13 +00:00
HOMEPAGE= http://www.php.net/
2000-10-04 21:53:59 +00:00
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
MASTER_SITES= http://www.php.net/distributions/ \
http://us.php.net/distributions/ \
http://se.php.net/distributions/ \
http://no.php.net/distributions/
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
# This port current only works with archs supporting dynamic loading
ONLY_FOR_ARCHS= i386 m68k sparc mips
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs \
2000-06-05 09:16:32 +00:00
--with-pcre-regex \
--with-xml \
--with-config-file-path=/var/www/conf
2000-12-14 14:04:09 +00:00
LIB_DEPENDS+= expat.1.::textproc/expat
2000-10-29 20:37:13 +00:00
FLAVORS= imap mysql postgresql
2000-12-14 15:25:20 +00:00
FLAVOR?=
2000-10-29 20:37:13 +00:00
.if ${FLAVOR:L:Mimap}
CONFIGURE_ARGS+= --with-imap=${PREFIX}
2000-12-14 15:25:20 +00:00
LIB_DEPENDS+= c-client.2::mail/c-client
2000-10-29 20:37:13 +00:00
.else
CONFIGURE_ARGS+= --without-imap
.endif
.if ${FLAVOR:L:Mmysql}
CONFIGURE_ARGS+= --with-mysql
2000-12-14 15:25:20 +00:00
LIB_DEPENDS+= mysqlclient.6::databases/mysql
.else
CONFIGURE_ARGS+= --without-mysql
.endif
2000-10-29 20:37:13 +00:00
.if ${FLAVOR:L:Mpostgresql}
2000-06-05 09:02:30 +00:00
CONFIGURE_ARGS+= --with-pgsql
2000-12-14 15:25:20 +00:00
LIB_DEPENDS+= pq.2::databases/postgresql
2000-06-05 09:02:30 +00:00
.else
CONFIGURE_ARGS+= --without-pgsql
.endif
do-install:
${INSTALL_DATA} ${WRKBUILD}/libphp3.so ${PREFIX}/lib
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/php3
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/php3
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/php3
${INSTALL_DATA} ${WRKSRC}/php3.ini-dist ${PREFIX}/share/doc/php3
2000-12-14 15:25:20 +00:00
@sed 's,y0y0y0,${TRUEPREFIX},' \
<${FILESDIR}/php3-enable >${PREFIX}/sbin/php3-enable
2000-12-14 15:25:20 +00:00
@chown ${BINOWN}:${BINGRP} ${PREFIX}/sbin/php3-enable
@chmod ${BINMODE} ${PREFIX}/sbin/php3-enable
.include <bsd.port.mk>