2006-07-18 17:22:56 -04:00
|
|
|
# $OpenBSD: Makefile.inc,v 1.33 2006/07/18 21:22:56 alek Exp $
|
2002-06-24 15:17:49 -04:00
|
|
|
|
|
|
|
# This port currently only works with archs supporting dynamic loading
|
|
|
|
# and has Apache that supports DSO's.
|
2003-05-22 10:16:22 -04:00
|
|
|
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
2002-06-24 15:17:49 -04:00
|
|
|
|
2005-11-01 06:09:31 -05:00
|
|
|
V= 4.4.1
|
2002-06-24 15:17:49 -04:00
|
|
|
DISTNAME= php-${V}
|
|
|
|
CATEGORIES= www lang
|
|
|
|
|
2004-06-08 11:59:54 -04:00
|
|
|
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
2002-06-24 15:17:49 -04:00
|
|
|
HOMEPAGE= http://www.php.net/
|
|
|
|
|
2004-04-08 08:38:59 -04:00
|
|
|
MASTER_SITES= http://us2.php.net/distributions/ \
|
2002-06-24 15:17:49 -04:00
|
|
|
http://se.php.net/distributions/ \
|
|
|
|
http://no.php.net/distributions/ \
|
|
|
|
http://uk.php.net/distributions/
|
|
|
|
|
2002-07-24 10:49:03 -04:00
|
|
|
# UPGRADERS: please read BOTH the PHP and Zend licenses
|
|
|
|
# and make sure they are safe before an upgrade
|
|
|
|
|
2002-06-24 15:17:49 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2002-08-19 22:56:48 -04:00
|
|
|
PHP_CONFIG_PATH= /var/www/conf
|
|
|
|
PHP_CONFIG_FILE= ${PHP_CONFIG_PATH}/php.ini
|
|
|
|
|
2003-05-02 15:54:22 -04:00
|
|
|
# where the main php4 module is stored (outside the chroot)
|
|
|
|
APACHE_MODULE_SUBDIR= lib/php
|
|
|
|
APACHE_MODULE_DIR= ${LOCALBASE}/${APACHE_MODULE_SUBDIR}
|
|
|
|
|
|
|
|
# where the PEAR and extension modules are (inside the chroot)
|
|
|
|
CHROOT_DIR?= /var/www
|
|
|
|
PEAR_DIR?= ${CHROOT_DIR}/pear
|
2002-06-24 15:17:49 -04:00
|
|
|
MODULES_SUBDIR= lib/php/modules
|
2003-05-02 15:54:22 -04:00
|
|
|
MODULES_DIR= ${CHROOT_DIR}/${MODULES_SUBDIR}
|
2002-06-24 15:17:49 -04:00
|
|
|
|
2004-06-08 13:54:21 -04:00
|
|
|
.if ${USE_GCC3:L:Myes}
|
2004-02-28 19:08:07 -05:00
|
|
|
PHP_LDFLAGS= -lstdc++ -lm
|
|
|
|
.endif
|
|
|
|
|
2002-06-24 15:17:49 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2003-05-23 16:08:33 -04:00
|
|
|
AUTOCONF_VERSION= 2.52
|
2006-07-18 17:22:56 -04:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -pthread" \
|
2004-02-28 19:08:07 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PHP_LDFLAGS}" \
|
2005-02-06 08:10:38 -05:00
|
|
|
EXTENSION_DIR=${MODULES_DIR}
|
2002-06-24 15:17:49 -04:00
|
|
|
MAKE_ENV= ${CONFIGURE_ENV}
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-shared \
|
|
|
|
--disable-static \
|
|
|
|
--disable-rpath \
|
2002-08-19 22:56:48 -04:00
|
|
|
--with-config-file-path=${PHP_CONFIG_PATH} \
|
2002-06-24 15:17:49 -04:00
|
|
|
--enable-inline-optimization \
|
|
|
|
--with-pic
|
|
|
|
|
|
|
|
# default included extensions
|
2002-07-22 12:47:33 -04:00
|
|
|
CONFIGURE_ARGS+= --with-openssl \
|
2005-02-06 08:10:38 -05:00
|
|
|
--with-zlib
|
2002-10-28 20:42:41 -05:00
|
|
|
|
2003-04-03 05:25:23 -05:00
|
|
|
REGRESS_TARGET= test
|
|
|
|
REGRESS_FLAGS= NO_INTERACTION=1
|
2003-05-02 15:54:22 -04:00
|
|
|
|
2004-12-20 16:06:22 -05:00
|
|
|
CHECKSUM_FILE= ${.CURDIR}/../distinfo
|
|
|
|
PATCH_LIST= ${.CURDIR}/../patches/patch-* \
|
2003-05-02 15:54:22 -04:00
|
|
|
patch-*
|