From 26b8e260f0182151d1e78d5cb67e9cee671e0618 Mon Sep 17 00:00:00 2001 From: ijliao Date: Sun, 6 Apr 2003 07:45:30 +0000 Subject: add swfdec 0.2.1 Flash Rendering Library --- graphics/swfdec/Makefile | 34 +++++++++++++++++++++ graphics/swfdec/distinfo | 1 + graphics/swfdec/files/patch-clipconv_f32_s16.h | 11 +++++++ graphics/swfdec/files/patch-ltmain.sh | 41 ++++++++++++++++++++++++++ graphics/swfdec/pkg-descr | 6 ++++ graphics/swfdec/pkg-plist | 10 +++++++ 6 files changed, 103 insertions(+) create mode 100644 graphics/swfdec/Makefile create mode 100644 graphics/swfdec/distinfo create mode 100644 graphics/swfdec/files/patch-clipconv_f32_s16.h create mode 100644 graphics/swfdec/files/patch-ltmain.sh create mode 100644 graphics/swfdec/pkg-descr create mode 100644 graphics/swfdec/pkg-plist (limited to 'graphics/swfdec') diff --git a/graphics/swfdec/Makefile b/graphics/swfdec/Makefile new file mode 100644 index 000000000000..08930a10b6af --- /dev/null +++ b/graphics/swfdec/Makefile @@ -0,0 +1,34 @@ +# ex:ts=8 +# Ports collection makefile for: swfdec +# Date created: Apr 5, 2003 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= swfdec +PORTVERSION= 0.2.1 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= ports@FreeBSD.org +COMMENT= Flash Rendering Library + +LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 \ + mad.1:${PORTSDIR}/audio/mad + +USE_X_PREFIX= yes +USE_REINPLACE= yes +USE_GNOME= gtk20 libartlgpl2 +SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +INSTALLS_SHLIB= yes + +post-patch: + @${REINPLACE_CMD} -e "s|sdl-config|${SDL_CONFIG}|" ${WRKSRC}/configure + @${REINPLACE_CMD} -e "s|malloc\.h|stdlib.h|" ${WRKSRC}/libswfdec/jpeg/sl_types.h + +.include diff --git a/graphics/swfdec/distinfo b/graphics/swfdec/distinfo new file mode 100644 index 000000000000..fca87b5a261d --- /dev/null +++ b/graphics/swfdec/distinfo @@ -0,0 +1 @@ +MD5 (swfdec-0.2.1.tar.gz) = 69ae7c0dc1fc62432ee7be23aa7e3726 diff --git a/graphics/swfdec/files/patch-clipconv_f32_s16.h b/graphics/swfdec/files/patch-clipconv_f32_s16.h new file mode 100644 index 000000000000..548f5f575070 --- /dev/null +++ b/graphics/swfdec/files/patch-clipconv_f32_s16.h @@ -0,0 +1,11 @@ +--- libswfdec/mpglib/clipconv_f32_s16.h.orig Sat Apr 5 15:54:30 2003 ++++ libswfdec/mpglib/clipconv_f32_s16.h Sat Apr 5 15:57:36 2003 +@@ -34,7 +34,7 @@ + //#include + #define f32 float + #define s16 short +-#define HAVE_IEEE754_H ++#undef HAVE_IEEE754_H + + + /* storage class */ diff --git a/graphics/swfdec/files/patch-ltmain.sh b/graphics/swfdec/files/patch-ltmain.sh new file mode 100644 index 000000000000..e6e5cf7c8c62 --- /dev/null +++ b/graphics/swfdec/files/patch-ltmain.sh @@ -0,0 +1,41 @@ +--- ltmain.sh.orig Sun Apr 6 15:09:32 2003 ++++ ltmain.sh Sun Apr 6 15:09:58 2003 +@@ -1065,14 +1065,14 @@ + # These systems don't actually have a C library (as such) + test "X$arg" = "X-lc" && continue + ;; +- *-*-openbsd* | *-*-freebsd*) ++ *-*-openbsd*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; + esac + elif test "X$arg" = "X-lc_r"; then + case $host in +- *-*-openbsd* | *-*-freebsd*) ++ *-*-openbsd*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; +@@ -2495,7 +2495,7 @@ + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; +- *-*-openbsd* | *-*-freebsd*) ++ *-*-openbsd*) + # Do not include libc due to us having libc/libc_r. + ;; + *) +@@ -4325,10 +4325,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/graphics/swfdec/pkg-descr b/graphics/swfdec/pkg-descr new file mode 100644 index 000000000000..9f7dc5ee1ba5 --- /dev/null +++ b/graphics/swfdec/pkg-descr @@ -0,0 +1,6 @@ +Swfdec is a library for rendering Flash animations and games. It was +originally designed as a basis library for creating Flash plugins for +GStreamer, but it is a fully standalone library which only use the +libart library for drawing. + +WWW: http://swfdec.sourceforge.net/ diff --git a/graphics/swfdec/pkg-plist b/graphics/swfdec/pkg-plist new file mode 100644 index 000000000000..ab8c3ee0b67c --- /dev/null +++ b/graphics/swfdec/pkg-plist @@ -0,0 +1,10 @@ +bin/swf_play +include/swfdec/swf.h +include/swfdec/swfdec.h +@dirrm include/swfdec +lib/gtk-2.0/2.2.0/loaders/swf_loader.a +lib/gtk-2.0/2.2.0/loaders/swf_loader.so +lib/libswfdec.a +lib/libswfdec.so +lib/libswfdec.so.0 +lib/pkgconfig/swfdec.pc -- cgit