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