aboutsummaryrefslogtreecommitdiff
path: root/graphics/swfdec
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-04-06 07:45:30 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-04-06 07:45:30 +0000
commit66e1c102b4cb949943d50b89ebbb600c9e1a6351 (patch)
treec9af3134ff75e4b56a9a5964775bd9e5faa34a0e /graphics/swfdec
parent826a3e61e4b2c07123e17973c1d54dda496d2aa4 (diff)
downloadports-66e1c102b4cb949943d50b89ebbb600c9e1a6351.tar.gz
ports-66e1c102b4cb949943d50b89ebbb600c9e1a6351.zip
Notes
Diffstat (limited to 'graphics/swfdec')
-rw-r--r--graphics/swfdec/Makefile34
-rw-r--r--graphics/swfdec/distinfo1
-rw-r--r--graphics/swfdec/files/patch-clipconv_f32_s16.h11
-rw-r--r--graphics/swfdec/files/patch-ltmain.sh41
-rw-r--r--graphics/swfdec/pkg-descr6
-rw-r--r--graphics/swfdec/pkg-plist10
6 files changed, 103 insertions, 0 deletions
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 <bsd.port.mk>
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 <sl_altivec.h>
+ #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