2002-03-16 23:55:03 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.43 2002/03/17 04:55:03 brad Exp $
|
2001-05-06 00:22:45 -04:00
|
|
|
|
|
|
|
COMMENT= "server-side HTML-embedded scripting language"
|
2001-01-03 19:51:23 -05:00
|
|
|
|
2001-08-17 15:34:51 -04:00
|
|
|
# This port currently only works with archs supporting dynamic loading
|
|
|
|
# and has Apache that supports DSO's.
|
2002-03-16 23:55:03 -05:00
|
|
|
ONLY_FOR_ARCHS= alpha i386 m68k powerpc sparc sparc64
|
2000-01-14 04:06:46 -05:00
|
|
|
|
2002-02-27 11:31:59 -05:00
|
|
|
VERSION= 3.0.18
|
|
|
|
DISTNAME= php-${VERSION}
|
|
|
|
PKGNAME= php3-${VERSION}p2
|
2000-01-14 04:06:46 -05:00
|
|
|
CATEGORIES= www lang
|
2002-02-27 11:31:59 -05:00
|
|
|
NEED_VERSION= 1.500
|
2000-01-14 04:06:46 -05:00
|
|
|
|
2000-07-20 07:26:13 -04:00
|
|
|
HOMEPAGE= http://www.php.net/
|
|
|
|
|
2000-10-04 17:53:59 -04:00
|
|
|
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
|
2000-01-14 04:06:46 -05:00
|
|
|
|
|
|
|
MASTER_SITES= http://www.php.net/distributions/ \
|
|
|
|
http://us.php.net/distributions/ \
|
|
|
|
http://se.php.net/distributions/ \
|
|
|
|
http://no.php.net/distributions/
|
|
|
|
|
2000-02-28 05:36:27 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2000-06-20 16:29:49 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2000-04-07 10:01:59 -04:00
|
|
|
CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs \
|
2000-06-05 05:16:32 -04:00
|
|
|
--with-pcre-regex \
|
2000-04-17 15:29:47 -04:00
|
|
|
--with-xml \
|
2000-01-14 23:48:02 -05:00
|
|
|
--with-config-file-path=/var/www/conf
|
2000-01-14 04:06:46 -05:00
|
|
|
|
2001-02-07 04:14:38 -05:00
|
|
|
LIB_DEPENDS+= expat.2::textproc/expat
|
2001-11-18 20:38:58 -05:00
|
|
|
LIB_DEPENDS+= gdbm::databases/gdbm
|
2000-04-17 15:29:47 -04:00
|
|
|
|
2001-02-07 04:15:42 -05:00
|
|
|
FLAVORS= imap gd mysql postgresql
|
2000-12-14 10:25:20 -05:00
|
|
|
FLAVOR?=
|
2000-10-29 15:37:13 -05:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mimap}
|
2001-10-15 19:45:45 -04:00
|
|
|
CONFIGURE_ARGS+= --with-imap=${LOCALBASE}
|
2001-11-18 14:57:25 -05:00
|
|
|
LIB_DEPENDS+= c-client.3:c-client->=4.40p1:mail/c-client
|
2000-10-29 15:37:13 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-imap
|
|
|
|
.endif
|
|
|
|
|
2001-02-07 04:15:42 -05:00
|
|
|
.if ${FLAVOR:L:Mgd}
|
2001-02-26 00:52:17 -05:00
|
|
|
CONFIGURE_ARGS+= --with-gd --with-jpegdir=${LOCALBASE}/lib
|
2001-02-07 04:15:42 -05:00
|
|
|
LIB_DEPENDS+= gd.18::graphics/gd
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -ljpeg"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gd
|
|
|
|
.endif
|
|
|
|
|
2000-10-29 15:37:13 -05:00
|
|
|
.if ${FLAVOR:L:Mmysql}
|
2000-04-17 15:29:47 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
2001-11-16 19:12:23 -05:00
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.10:mysql-client-3.23.*:databases/mysql
|
2000-04-17 15:29:47 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
2000-04-07 10:01:59 -04:00
|
|
|
.endif
|
|
|
|
|
2000-10-29 15:37:13 -05:00
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
2001-02-27 18:00:26 -05:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}
|
2000-12-14 10:25:20 -05:00
|
|
|
LIB_DEPENDS+= pq.2::databases/postgresql
|
2000-06-05 05:02:30 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pgsql
|
|
|
|
.endif
|
|
|
|
|
2000-04-17 15:29:47 -04:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/libphp3.so ${PREFIX}/lib
|
2000-01-14 04:06:46 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/php3
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/php3
|
2000-04-17 15:29:47 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/php3
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/php3.ini-dist ${PREFIX}/share/doc/php3
|
2000-12-14 10:25:20 -05:00
|
|
|
@sed 's,y0y0y0,${TRUEPREFIX},' \
|
2000-04-17 15:29:47 -04:00
|
|
|
<${FILESDIR}/php3-enable >${PREFIX}/sbin/php3-enable
|
2000-12-14 10:25:20 -05:00
|
|
|
@chown ${BINOWN}:${BINGRP} ${PREFIX}/sbin/php3-enable
|
|
|
|
@chmod ${BINMODE} ${PREFIX}/sbin/php3-enable
|
2000-01-14 04:06:46 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|