[92327] trunk/dports
ryandesign at macports.org
ryandesign at macports.org
Wed Apr 25 00:20:34 PDT 2012
Revision: 92327
https://trac.macports.org/changeset/92327
Author: ryandesign at macports.org
Date: 2012-04-25 00:20:33 -0700 (Wed, 25 Apr 2012)
Log Message:
-----------
ming, php5-ming: update to 0.4.4; indicate licenses; see #34198
Modified Paths:
--------------
trunk/dports/multimedia/ming/Portfile
trunk/dports/php/php5-ming/Portfile
Added Paths:
-----------
trunk/dports/php/php5-ming/files/config.m4
Modified: trunk/dports/multimedia/ming/Portfile
===================================================================
--- trunk/dports/multimedia/ming/Portfile 2012-04-25 07:01:14 UTC (rev 92326)
+++ trunk/dports/multimedia/ming/Portfile 2012-04-25 07:20:33 UTC (rev 92327)
@@ -4,14 +4,16 @@
PortSystem 1.0
PortGroup muniversal 1.0
+# Keep relevant lines in sync between ming and php5-ming.
+
name ming
-version 0.4.3
-revision 2
+version 0.4.4
categories multimedia graphics
platforms darwin
maintainers ryandesign
+license {GPL-2 LGPL-2.1}
homepage http://www.libming.org/
-master_sites sourceforge:project/ming/Releases/Ming%20${version}
+master_sites sourceforge:project/ming/Releases
use_bzip2 yes
description an SWF output library
@@ -21,9 +23,8 @@
C++, Python, and PHP, plus rudimentary support \
for Ruby and Perl.
-checksums md5 db6bae65d000e2f2ac78583fd453f99a \
- sha1 e51a1c9de7efcd6b20f727a824cfbf323b6f5e6f \
- rmd160 38a495250c7f4ff3335ebd08df2984719a2f046b
+checksums rmd160 2070cd694b9a1ff8dd0a577df2f551d5d810e4fe \
+ sha256 40e09d781741ac961338ed8dec7ba2ed06217de9da44dd67af6b881b95d2af7e
depends_lib port:giflib \
port:libpng \
@@ -38,7 +39,6 @@
xinstall -m 644 -W ${worksrcpath} \
AUTHORS \
COPYING \
- ChangeLog \
HISTORY \
LICENSE \
LICENSE_GPL2 \
Modified: trunk/dports/php/php5-ming/Portfile
===================================================================
--- trunk/dports/php/php5-ming/Portfile 2012-04-25 07:01:14 UTC (rev 92326)
+++ trunk/dports/php/php5-ming/Portfile 2012-04-25 07:20:33 UTC (rev 92327)
@@ -4,12 +4,15 @@
PortSystem 1.0
PortGroup php5extension 1.0
-php5extension.setup ming 0.4.3
+# Keep relevant lines in sync between ming and php5-ming.
+
+php5extension.setup ming 0.4.4
categories-append multimedia graphics
platforms darwin
maintainers ryandesign
+license PHP-3.01
homepage http://www.libming.org/
-master_sites sourceforge:project/ming/Releases/Ming%20${version}
+master_sites sourceforge:project/ming/Releases
dist_subdir ming
use_bzip2 yes
worksrcdir ${worksrcdir}/php_ext
@@ -19,12 +22,17 @@
long_description ${description}
-checksums md5 db6bae65d000e2f2ac78583fd453f99a \
- sha1 e51a1c9de7efcd6b20f727a824cfbf323b6f5e6f \
- rmd160 38a495250c7f4ff3335ebd08df2984719a2f046b
+checksums rmd160 2070cd694b9a1ff8dd0a577df2f551d5d810e4fe \
+ sha256 40e09d781741ac961338ed8dec7ba2ed06217de9da44dd67af6b881b95d2af7e
depends_lib-append port:ming
+post-extract {
+ # config.m4 is missing from the 0.4.4 distfile; see:
+ # https://github.com/libming/libming/issues/8
+ copy ${filespath}/config.m4 ${worksrcpath}
+}
+
patchfiles-append patch-config.m4.diff
configure.args-append --with-ming=${prefix}
Added: trunk/dports/php/php5-ming/files/config.m4
===================================================================
--- trunk/dports/php/php5-ming/files/config.m4 (rev 0)
+++ trunk/dports/php/php5-ming/files/config.m4 2012-04-25 07:20:33 UTC (rev 92327)
@@ -0,0 +1,116 @@
+dnl
+dnl $Id: config.m4,v 1.15 2009/09/08 08:17:54 strk Exp $
+dnl
+
+PHP_LIBDIR=.libs
+
+PHP_ARG_WITH(ming, for MING support,
+[ --with-ming[=DIR] Include MING support])
+
+if test "$PHP_MING" != "no"; then
+ AC_CHECK_LIB(m, sin)
+
+ for i in $PHP_MING ../../src /usr/local /usr; do
+ if test -f $i/$PHP_LIBDIR/libming.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libming.a; then
+ MING_DIR=$i
+ break
+ fi
+ done
+
+ if test -z "$MING_DIR"; then
+ AC_MSG_ERROR(Please reinstall ming distribution. libming.(a|so) not found.)
+ fi
+
+ for i in ../../src $MING_DIR/include $MING_DIR/include/ming $MING_DIR/ming/include; do
+ if test -f $i/ming.h; then
+ MING_INC_DIR=$i
+ fi
+ done
+
+ if test -z "$MING_INC_DIR"; then
+ AC_MSG_ERROR(Please reinstall ming distribution. ming.h not found.)
+ fi
+
+ PHP_CHECK_LIBRARY(ming, Ming_useSWFVersion, [
+ AC_DEFINE(HAVE_MING,1,[ ])
+ ],[
+ AC_MSG_ERROR([Ming library 0.2a or greater required.])
+ ],[
+ -L$MING_DIR/$PHP_LIBDIR
+ ])
+
+ PHP_ADD_INCLUDE($MING_INC_DIR)
+ PHP_ADD_LIBRARY_WITH_PATH(ming, $MING_DIR/$PHP_LIBDIR, MING_SHARED_LIBADD)
+
+ old_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS=-I$MING_INC_DIR
+ AC_MSG_CHECKING([for destroySWFBlock])
+ AC_TRY_RUN([
+#include "ming.h"
+int destroySWFBlock(int a, int b) {
+ return a+b;
+}
+int main() {
+ return destroySWFBlock(-1,1); /* returns 0 only if function is not yet defined */
+}
+ ],[
+ AC_MSG_RESULT([missing])
+ ],[
+ AC_DEFINE(HAVE_DESTROY_SWF_BLOCK,1,[ ])
+ AC_MSG_RESULT([ok])
+ ],[
+ AC_MSG_RESULT([unknown])
+ ])
+
+dnl Check Ming version (FIXME: if/when ming has some better way to detect the version..)
+ AC_EGREP_CPP(yes, [
+#include <ming.h>
+#ifdef SWF_SOUND_COMPRESSION
+yes
+#endif
+ ], [
+ AC_DEFINE(HAVE_NEW_MING, 1, [ ])
+ dnl FIXME: This is now unconditional..better check coming later.
+ ])
+
+ dnl Check if SWFVideoStream_setFrameMode() is available
+ AC_TRY_COMPILE([
+#include <ming.h>
+ ], [
+int main(void) { SWFVideoStream_setFrameMode(0, 0); return 0; }
+ ], [
+ AC_DEFINE(HAVE_SWFVIDEOSTREAM_SETFRAMEMODE, 1, [Have SWFVideoStream_setFrameMode(SWFVideoStream, int)])
+ ], [])
+
+ dnl Check if SWFVideoStream_nextFrame() is available
+ AC_TRY_COMPILE([
+#include <ming.h>
+ ], [
+int main(void) { SWFVideoStream_nextFrame(0); return 0; }
+ ], [
+ AC_DEFINE(HAVE_SWFVIDEOSTREAM_NEXTFRAME, 1, [Have SWFVideoStream_nextFrame(SWFVideoStream)])
+ ], [])
+
+ dnl Check if SWFVideoStream_seek() is available
+ AC_TRY_COMPILE([
+#include <ming.h>
+ ], [
+int main(void) { SWFVideoStream_seek(0, 0, 0); return 0; }
+ ], [
+ AC_DEFINE(HAVE_SWFVIDEOSTREAM_SEEK, 1, [Have SWFVideoStream_seek(SWFVideoStream, int frame, int whence)])
+ ], [])
+
+
+ dnl Check if SWFMovie_output() accepts the 4th parameter
+ AC_TRY_COMPILE([
+#include <ming.h>
+ ], [
+int main(void) { SWFMovie_output(NULL, NULL, NULL, 0); return 0; }
+ ], [
+ AC_DEFINE(HAVE_MING_MOVIE_LEVEL, 1, [ ])
+ ], [])
+ CPPFLAGS=$old_CPPFLAGS
+
+ PHP_NEW_EXTENSION(ming, ming.c, $ext_shared)
+ PHP_SUBST(MING_SHARED_LIBADD)
+fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120425/1177c4cc/attachment.html>
More information about the macports-changes
mailing list