diff options
author | dirk <dirk@FreeBSD.org> | 2001-03-05 04:34:11 +0800 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2001-03-05 04:34:11 +0800 |
commit | 63451d3dce9794c69aaf92bf3034dfe230d16b91 (patch) | |
tree | 84cee2ad831c858a52f1665079263bd8eee95986 /www/mod_php5 | |
parent | 3d4e6dce27d24200f47c95ae6fd213f7ef1fb2ad (diff) | |
download | freebsd-ports-gnome-63451d3dce9794c69aaf92bf3034dfe230d16b91.tar.gz freebsd-ports-gnome-63451d3dce9794c69aaf92bf3034dfe230d16b91.tar.zst freebsd-ports-gnome-63451d3dce9794c69aaf92bf3034dfe230d16b91.zip |
Add ming library support Flash 4 movies.
PR: ports/25367
Submitted by: jeh
Diffstat (limited to 'www/mod_php5')
-rw-r--r-- | www/mod_php5/Makefile | 2 | ||||
-rw-r--r-- | www/mod_php5/files/ming-config-m4 | 38 | ||||
-rw-r--r-- | www/mod_php5/scripts/configure.php | 23 |
3 files changed, 62 insertions, 1 deletions
diff --git a/www/mod_php5/Makefile b/www/mod_php5/Makefile index ac48f01f6b50..ee3cc9e41334 100644 --- a/www/mod_php5/Makefile +++ b/www/mod_php5/Makefile @@ -62,6 +62,8 @@ PLIST_SUB= PHPDOCDIR=${PHPDOCDIR:S/^${PREFIX}\///} \ pre-fetch: @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php +post-extract: post-extract-jstring post-extract-ming + post-install: .if !defined(STANDALONE) @${ECHO} "Restarting Apache..." diff --git a/www/mod_php5/files/ming-config-m4 b/www/mod_php5/files/ming-config-m4 new file mode 100644 index 000000000000..8228fe54805f --- /dev/null +++ b/www/mod_php5/files/ming-config-m4 @@ -0,0 +1,38 @@ +dnl $Id: config.m4,v 1.2 2001/02/08 21:41:29 opaque_ndst Exp $ +dnl config.m4 for extension libming +dnl don't forget to call PHP_EXTENSION(ming) +dnl This file is a modified version of config.m4 +dnl in php4/ext/mcrypt + +PHP_ARG_WITH(ming, for ming support, +[ --with-ming[=DIR] Include ming support]) + +if test "$PHP_MING" != "no"; then + for i in /usr/lib /usr/local/ /usr/local/lib /usr $PHP_MING $PHP_MING/lib; do + if test -r $i/libming.so; then + MING_LIB_DIR=$i + fi + done + + if test -z "$MING_LIB_DIR"; then + AC_MSG_ERROR(Please reinstall libming.so - I cannot find libming.so) + fi + + for i in /usr/include /usr/local/include $PHP_MING $PHP_MING/include $PHP_MING/include/ming; do + if test -r $i/ming.h; then + MING_INC_DIR=$i + fi + done + + if test -z "$MING_INC_DIR"; then + AC_MSG_ERROR(Please reinstall ming.h - I cannot find ming.h) + fi + + AC_ADD_INCLUDE($MING_INC_DIR) + + AC_ADD_LIBRARY_WITH_PATH(ming, $MING_LIB_DIR, MING_SHARED_LIBADD) + PHP_SUBST(MING_SHARED_LIBADD) + AC_DEFINE(HAVE_MING,1,[ ]) + + PHP_EXTENSION(ming, $ext_shared) +fi diff --git a/www/mod_php5/scripts/configure.php b/www/mod_php5/scripts/configure.php index b1a185328e8b..9547a2c94239 100644 --- a/www/mod_php5/scripts/configure.php +++ b/www/mod_php5/scripts/configure.php @@ -31,6 +31,7 @@ gettext "gettext library support" OFF \ jstring "jstring module" OFF \ YP "YP/NIS support" OFF \ BCMath "BCMath support" OFF \ +ming "ming library support" OFF \ 2> /tmp/checklist.tmp.$$ retval=$? @@ -169,12 +170,13 @@ CONFIGURE_ARGS+=--enable-jstring BUILD_DEPENDS+= automake:\${PORTSDIR}/devel/automake BUILD_DEPENDS+= autoconf:\${PORTSDIR}/devel/autoconf -post-extract: +post-extract-jstring: [ -d \${WRKDIR}/jstring ] && \\ (cd \${WRKSRC}; \\ \${MV} ${WRKDIR}/jstring ext; \\ \${RM} configure; \\ ./buildconf) + EOF ;; \"YP\") @@ -183,6 +185,25 @@ EOF \"BCMath\") echo "CONFIGURE_ARGS+=--enable-bcmath" ;; + \"ming\") + ${CAT} << EOF +CONFIGURE_ARGS+=--with-ming=\${PREFIX} +BUILD_DEPENDS+= /nonexistent:\${PORTSDIR}/graphics/ming:extract +BUILD_DEPENDS+= automake:\${PORTSDIR}/devel/automake +BUILD_DEPENDS+= autoconf:\${PORTSDIR}/devel/autoconf +LIB_DEPENDS+= ming.2:\${PORTSDIR}/graphics/ming + +post-extract-ming: + [ -d \${PORTSDIR}/graphics/ming/work ] && \\ + (cd \${WRKSRC}; \\ + \${MKDIR} \${WRKSRC}/ext/ming; \\ + \${CP} \`cd \${PORTSDIR}/graphics/ming && \${MAKE} -V WRKSRC\`/../php_ext/* \${WRKSRC}/ext/ming; \\ + \${CP} \${FILESDIR}/ming-config-m4 \${WRKSRC}/ext/ming/config.m4; \\ + \${RM} configure; \\ + ./buildconf) + +EOF + ;; *) echo "Invalid option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc |