diff options
author | thierry <thierry@FreeBSD.org> | 2004-09-26 06:35:09 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2004-09-26 06:35:09 +0800 |
commit | c412a2c246f8eed1ebb21b0ed24ac45ed2790b0a (patch) | |
tree | 3ecef4ccf5deebac932cb85f056667bcacf45a28 /databases | |
parent | 0e4d4f2288eef533ff0e11e7226b0269e5f2bc4a (diff) | |
download | freebsd-ports-graphics-c412a2c246f8eed1ebb21b0ed24ac45ed2790b0a.tar.gz freebsd-ports-graphics-c412a2c246f8eed1ebb21b0ed24ac45ed2790b0a.tar.zst freebsd-ports-graphics-c412a2c246f8eed1ebb21b0ed24ac45ed2790b0a.zip |
Use PTHREAD_CFLAGS and PTHREAD_LIBS to unbreak.
Since I'm there, define USE_PHP and register this extension.
Approved by: portmgr (linimon).
Diffstat (limited to 'databases')
-rw-r--r-- | databases/php-sqlrelay/Makefile | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/databases/php-sqlrelay/Makefile b/databases/php-sqlrelay/Makefile index 07dd809b3cb..ef541abaa9d 100644 --- a/databases/php-sqlrelay/Makefile +++ b/databases/php-sqlrelay/Makefile @@ -17,9 +17,7 @@ MAINTAINER= ports@FreeBSD.org COMMENT= PHP modules to access to SQL Relay EXTRACT_DEPENDS= ${NONEXISTENT}:${SQLRELAY_PORTDIR}:patch -BUILD_DEPENDS= php-config:${PORTSDIR}/www/mod_php4 LIB_DEPENDS= sqlrclient.0:${SQLRELAY_PORTDIR} -RUN_DEPENDS= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 USE_PYTHON= yes @@ -28,8 +26,12 @@ BUILD_WRKSRC= ${WRKSRC}/src/api/php INSTALL_WRKSRC= ${BUILD_WRKSRC} USE_GMAKE= yes GNU_CONFIGURE= yes +CONFIGURE_ENV= PTHREADINCLUDES="${PTHREAD_CFLAGS}" \ + PTHREADLIBS="${PTHREAD_LIBS}" CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \ --with-php-prefix="${LOCALBASE}" +USE_PHP= yes +USE_PHP_BUILD= yes .include "${.CURDIR}/../sqlrelay/Makefile.common" @@ -49,5 +51,20 @@ post-install: dir=`php-config --extension-dir | ${SED} 's,^${LOCALBASE}/,,'`; \ ${ECHO_CMD} "$$dir/sql_relay.so" >> ${TMPPLIST}; \ ${ECHO_CMD} "@unexec rmdir %D/$$dir 2>/dev/null || true" >> ${TMPPLIST} + @${MKDIR} ${PREFIX}/etc/php + @${ECHO_CMD} extension=sql_relay.so \ + >> ${PREFIX}/etc/php/extensions.ini + @${ECHO_CMD} "@exec echo extension=sql_relay.so >> %D/etc/php/extensions.ini" \ + >> ${TMPPLIST} + @${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \ + >> ${TMPPLIST} + @${ECHO_CMD} "@unexec grep -v extension=sql_relay\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \ + >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rm %D/etc/php/extensions.ini.orig" \ + >> ${TMPPLIST} + @${ECHO_CMD} "@unexec [ -s %D/etc/php/extensions.ini ] || rm %D/etc/php/extensions.ini" \ + >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir %D/etc/php 2> /dev/null || true" \ + >> ${TMPPLIST} .include <bsd.port.post.mk> |