diff --git a/www/Makefile b/www/Makefile index 3e731a6733cf..d604946a25a0 100644 --- a/www/Makefile +++ b/www/Makefile @@ -736,6 +736,7 @@ SUBDIR += ssserver SUBDIR += suphp SUBDIR += surfraw + SUBDIR += swfdec-plugin SUBDIR += swiggle SUBDIR += swish++ SUBDIR += swish-e diff --git a/www/swfdec-plugin/Makefile b/www/swfdec-plugin/Makefile new file mode 100644 index 000000000000..a1d792069a29 --- /dev/null +++ b/www/swfdec-plugin/Makefile @@ -0,0 +1,46 @@ +# Ports collection makefile for: swfdec-plugin +# Date created: Jun 14, 2005 +# Whom: anholt +# +# $FreeBSD$ +# + +PORTNAME= swfdec-plugin +PORTVERSION= 0.3.5 +CATEGORIES= www +MASTER_SITES= http://www.schleef.org/swfdec/download/ +DISTNAME= swfdec-${PORTVERSION} + +MAINTAINER= anholt@FreeBSD.org +COMMENT= Flash rendering plugin + +LIB_DEPENDS= swfdec-0.3.0:${PORTSDIR}/graphics/swfdec +.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox" +BUILD_DEPENDS= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox +.else +BUILD_DEPENDS= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX} +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX} +.endif + +USE_REINPLACE= yes +USE_X_PREFIX= yes +USE_SDL= sdl +USE_GNOME= gnomehack gtk20 libartlgpl2 +USE_GSTREAMER= gconf +USE_GETOPT_LONG= yes +USE_REINPLACE= yes +USE_LIBTOOL_VER= 15 +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + MOZILLA_CONFIG="${X11BASE}/lib/mozilla/mozilla-config" +INSTALLS_SHLIB= yes +INSTALL_WRKSRC= ${WRKSRC}/plugin + +PLIST_SUB= VERSION=${PORTVERSION:R} + +post-patch: + @${REINPLACE_CMD} -e "s,int16_t,__int16_t," ${WRKSRC}/libswfdec/swfdec_shape.c + +.include diff --git a/www/swfdec-plugin/distinfo b/www/swfdec-plugin/distinfo new file mode 100644 index 000000000000..8665a72a9ca1 --- /dev/null +++ b/www/swfdec-plugin/distinfo @@ -0,0 +1,2 @@ +MD5 (swfdec-0.3.5.tar.gz) = cc40397d7784efee549fb7853b01cac3 +SIZE (swfdec-0.3.5.tar.gz) = 512041 diff --git a/www/swfdec-plugin/files/patch-Makefile.in b/www/swfdec-plugin/files/patch-Makefile.in new file mode 100644 index 000000000000..af3c1f30c418 --- /dev/null +++ b/www/swfdec-plugin/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig Tue Jun 14 21:37:46 2005 ++++ Makefile.in Tue Jun 14 21:43:11 2005 +@@ -227,7 +227,7 @@ + @WITH_GLIB_COMPAT_TRUE@glib_compat_subdirs = glib-compat + @WITH_GLIB_COMPAT_FALSE@no_glib_compat_subdirs = gimp-loader pixbuf-loader + @WITH_GLIB_COMPAT_TRUE@no_glib_compat_subdirs = +-SUBDIRS = $(glib_compat_subdirs) libswfdec test player plugin $(no_glib_compat_subdirs) ++SUBDIRS = $(glib_compat_subdirs) libswfdec plugin + DIST_SUBDIRS = \ + gimp-loader \ + glib-compat \ diff --git a/www/swfdec-plugin/files/patch-ltmain.sh b/www/swfdec-plugin/files/patch-ltmain.sh new file mode 100644 index 000000000000..b3c8af1df8e6 --- /dev/null +++ b/www/swfdec-plugin/files/patch-ltmain.sh @@ -0,0 +1,15 @@ +--- ltmain.sh.orig Wed Nov 24 17:28:43 2004 ++++ ltmain.sh Wed Nov 24 17:28:55 2004 +@@ -5551,10 +5551,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false ; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/www/swfdec-plugin/pkg-descr b/www/swfdec-plugin/pkg-descr new file mode 100644 index 000000000000..c217ddea0551 --- /dev/null +++ b/www/swfdec-plugin/pkg-descr @@ -0,0 +1,8 @@ +swfdec-plugin is a Mozilla plugin for rendering flash (.swf) animations using +the gstreamer framework and the swfdec library. It should currently play Flash +4 files, and Flash 5 support is under development. + +WWW: http://www.schleef.org/swfdec/ + +- Eric Anholt +anholt@FreeBSD.org diff --git a/www/swfdec-plugin/pkg-plist b/www/swfdec-plugin/pkg-plist new file mode 100644 index 000000000000..579d50495639 --- /dev/null +++ b/www/swfdec-plugin/pkg-plist @@ -0,0 +1,2 @@ +bin/swfdec-mozilla-player +lib/mozilla/plugins/libswfdecmozilla.so