summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorDirk Froemberg <dirk@FreeBSD.org>2001-03-04 20:34:11 +0000
committerDirk Froemberg <dirk@FreeBSD.org>2001-03-04 20:34:11 +0000
commitb0d6f743a087883f7a3cce5b5e46016bfb0db7e2 (patch)
treecca7ffb18c589e30cd40d211271ad81d2ab245a8 /www
parentAdd port devel/allegro (3.9.34). (diff)
Add ming library support Flash 4 movies.
PR: ports/25367 Submitted by: jeh
Notes
Notes: svn path=/head/; revision=39060
Diffstat (limited to 'www')
-rw-r--r--www/mod_php4/Makefile2
-rw-r--r--www/mod_php4/files/ming-config-m438
-rw-r--r--www/mod_php4/scripts/configure.php23
-rw-r--r--www/mod_php5/Makefile2
-rw-r--r--www/mod_php5/files/ming-config-m438
-rw-r--r--www/mod_php5/scripts/configure.php23
6 files changed, 124 insertions, 2 deletions
diff --git a/www/mod_php4/Makefile b/www/mod_php4/Makefile
index ac48f01f6b50..ee3cc9e41334 100644
--- a/www/mod_php4/Makefile
+++ b/www/mod_php4/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_php4/files/ming-config-m4 b/www/mod_php4/files/ming-config-m4
new file mode 100644
index 000000000000..8228fe54805f
--- /dev/null
+++ b/www/mod_php4/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_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php
index b1a185328e8b..9547a2c94239 100644
--- a/www/mod_php4/scripts/configure.php
+++ b/www/mod_php4/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
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