2009-04-22 17:24:09 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2009/04/22 21:24:09 jasper Exp $
|
2006-10-13 10:58:42 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT= Alternative PHP Cache
|
2006-10-13 10:58:42 -04:00
|
|
|
|
2009-04-22 17:24:09 -04:00
|
|
|
DISTNAME= APC-3.1.2
|
|
|
|
PKGNAME= pecl-${DISTNAME}
|
2006-10-13 10:58:42 -04:00
|
|
|
CATEGORIES= www
|
|
|
|
|
|
|
|
HOMEPAGE= http://pecl.php.net/package/APC
|
|
|
|
|
|
|
|
MAINTAINER= William Yodlowsky <bsd@openbsd.rutgers.edu>
|
|
|
|
|
|
|
|
# PHP License
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= http://pecl.php.net/get/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2007-01-03 15:06:51 -05:00
|
|
|
AUTOCONF_VERSION= 2.59
|
|
|
|
AUTOMAKE_VERSION= 1.4
|
2006-10-13 10:58:42 -04:00
|
|
|
|
2007-03-22 18:48:03 -04:00
|
|
|
BUILD_DEPENDS= :pear-*:www/pear \
|
2007-01-03 15:06:51 -05:00
|
|
|
${MODGNU_AUTOCONF_DEPENDS} \
|
|
|
|
${MODGNU_AUTOMAKE_DEPENDS}
|
2006-10-13 10:58:42 -04:00
|
|
|
RUN_DEPENDS= :php5-core-*:www/php5/core
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS= --enable-apc \
|
|
|
|
--enable-apc-mmap \
|
|
|
|
--with-apxs \
|
|
|
|
--with-php-config=$(LOCALBASE)/bin/php-config
|
|
|
|
|
2007-01-03 15:06:51 -05:00
|
|
|
CONFIGURE_ENV= AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
|
|
|
|
AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
2006-10-13 10:58:42 -04:00
|
|
|
|
|
|
|
PREFIX= /var/www
|
2008-01-04 12:48:33 -05:00
|
|
|
DESTDIRNAME= INSTALL_ROOT
|
2006-10-13 10:58:42 -04:00
|
|
|
|
2008-12-19 20:06:50 -05:00
|
|
|
# needs PHP CLI sapi to run
|
2006-10-13 10:58:42 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/phpize
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@perl -pi -e "s,-rpath \\$$\\(phplibdir\\),-rpath ${LOCALBASE}/lib,g" \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/pecl-APC
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/apc.php ${WRKSRC}/INSTALL \
|
|
|
|
${PREFIX}/pecl-APC
|
2007-12-06 06:21:09 -05:00
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/conf/php5.sample
|
|
|
|
@echo "extension=apc.so" > \
|
|
|
|
${PREFIX}/conf/php5.sample/apc.ini
|
2006-10-13 10:58:42 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|