diff options
| -rw-r--r-- | lang/php5/Makefile.ext | 6 | ||||
| -rw-r--r-- | lang/php53/Makefile.ext | 6 | ||||
| -rw-r--r-- | textproc/php5-xsl/files/patch-php_xsl.h | 15 |
3 files changed, 25 insertions, 2 deletions
diff --git a/lang/php5/Makefile.ext b/lang/php5/Makefile.ext index b5d56d805179..c30ee22a6b3e 100644 --- a/lang/php5/Makefile.ext +++ b/lang/php5/Makefile.ext @@ -6,10 +6,13 @@ PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} DEFAULT_PHP_VER=5 BROKEN_WITH_PHP=4 -WRKSRC= ${WRKDIR}/php-${PORTVERSION:S/.r/RC/}/ext/${PHP_MODNAME} +PHP_EXTDIR= ${DISTNAME}/ext/${PHP_MODNAME} +WRKSRC= ${WRKDIR}/${PHP_EXTDIR} PATCHDIR= ${.CURDIR}/files PLIST= ${NONEXISTENT} +EXTRACT_AFTER_ARGS?= | ${TAR} -xf - ${PHP_EXTDIR} + .if ${PHP_MODNAME} == "bcmath" CONFIGURE_ARGS+=--enable-bcmath @@ -380,6 +383,7 @@ CONFIGURE_ARGS+=--with-xsl=${LOCALBASE} USE_GNOME= libxslt USE_PHP= dom xml +USE_PHP_BUILD= yes .endif .if ${PHP_MODNAME} == "zlib" diff --git a/lang/php53/Makefile.ext b/lang/php53/Makefile.ext index b5d56d805179..c30ee22a6b3e 100644 --- a/lang/php53/Makefile.ext +++ b/lang/php53/Makefile.ext @@ -6,10 +6,13 @@ PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} DEFAULT_PHP_VER=5 BROKEN_WITH_PHP=4 -WRKSRC= ${WRKDIR}/php-${PORTVERSION:S/.r/RC/}/ext/${PHP_MODNAME} +PHP_EXTDIR= ${DISTNAME}/ext/${PHP_MODNAME} +WRKSRC= ${WRKDIR}/${PHP_EXTDIR} PATCHDIR= ${.CURDIR}/files PLIST= ${NONEXISTENT} +EXTRACT_AFTER_ARGS?= | ${TAR} -xf - ${PHP_EXTDIR} + .if ${PHP_MODNAME} == "bcmath" CONFIGURE_ARGS+=--enable-bcmath @@ -380,6 +383,7 @@ CONFIGURE_ARGS+=--with-xsl=${LOCALBASE} USE_GNOME= libxslt USE_PHP= dom xml +USE_PHP_BUILD= yes .endif .if ${PHP_MODNAME} == "zlib" diff --git a/textproc/php5-xsl/files/patch-php_xsl.h b/textproc/php5-xsl/files/patch-php_xsl.h new file mode 100644 index 000000000000..22a7df993f92 --- /dev/null +++ b/textproc/php5-xsl/files/patch-php_xsl.h @@ -0,0 +1,15 @@ +--- php_xsl.h.orig Tue Jan 17 14:50:15 2006 ++++ php_xsl.h Tue Jan 17 14:50:53 2006 +@@ -43,7 +43,11 @@ + #include <libexslt/exsltconfig.h> + #endif + +-#include "../dom/xml_common.h" ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++ ++#include "ext/dom/xml_common.h" + #include "xsl_fe.h" + + #include <libxslt/extensions.h> |
