summaryrefslogtreecommitdiff
path: root/graphics/swfdec
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2003-04-23 08:15:40 +0000
committerrh <rh@pkgsrc.org>2003-04-23 08:15:40 +0000
commitfb95fa0c5aeb7a66ebf84d27ca91993a5192dedc (patch)
treef79f80cb88dec4c32b64dc3408e1fe3bb0d2a14d /graphics/swfdec
parent9f987262e23fc96a14ca4b0478f54322e04ca0d5 (diff)
downloadpkgsrc-fb95fa0c5aeb7a66ebf84d27ca91993a5192dedc.tar.gz
Initial import of swfdec-0.2.1, a library for rendering Flash(R) animations
and games.
Diffstat (limited to 'graphics/swfdec')
-rw-r--r--graphics/swfdec/DESCR7
-rw-r--r--graphics/swfdec/Makefile26
-rw-r--r--graphics/swfdec/PLIST15
-rw-r--r--graphics/swfdec/buildlink2.mk30
-rw-r--r--graphics/swfdec/distinfo6
-rw-r--r--graphics/swfdec/patches/patch-aa12
-rw-r--r--graphics/swfdec/patches/patch-ab47
7 files changed, 143 insertions, 0 deletions
diff --git a/graphics/swfdec/DESCR b/graphics/swfdec/DESCR
new file mode 100644
index 00000000000..025a9970f7e
--- /dev/null
+++ b/graphics/swfdec/DESCR
@@ -0,0 +1,7 @@
+ Swfdec is a library for rendering Flash(R) 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. Swfdec is released under the LGPL.
+
+ Included with swfdec is Gtk+-based application called swf_play to display
+SWF animations.
diff --git a/graphics/swfdec/Makefile b/graphics/swfdec/Makefile
new file mode 100644
index 00000000000..f2c1a28723c
--- /dev/null
+++ b/graphics/swfdec/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/04/23 08:15:40 rh Exp $
+#
+
+DISTNAME= swfdec-0.2.1
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=swfdec/}
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://swfdec.sourceforge.net/
+COMMENT= library for rendering Flash(R) animations and games
+
+GNU_CONFIGURE= yes
+USE_BUILDLINK2= yes
+USE_PKGLOCALEDIR= yes
+USE_LIBTOOL= yes
+
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+PKGCONFIG_OVERRIDE+= ${WRKSRC}/swfdec.pc.in
+
+pre-install:
+ echo "install:" >${WRKSRC}/plugin/Makefile
+
+.include "../../devel/SDL/buildlink2.mk"
+.include "../../graphics/libart2/buildlink2.mk"
+.include "../../x11/gtk2/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/swfdec/PLIST b/graphics/swfdec/PLIST
new file mode 100644
index 00000000000..818f1698c81
--- /dev/null
+++ b/graphics/swfdec/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/23 08:15:40 rh Exp $
+bin/swf_play
+etc/gtk-2.0/gdk-pixbuf.loaders
+include/swfdec/swf.h
+include/swfdec/swfdec.h
+lib/gtk-2.0/2.2.0/loaders/swf_loader.a
+lib/gtk-2.0/2.2.0/loaders/swf_loader.la
+lib/gtk-2.0/2.2.0/loaders/swf_loader.so
+lib/libswfdec.a
+lib/libswfdec.la
+lib/libswfdec.so
+lib/libswfdec.so.0
+lib/libswfdec.so.0.0
+lib/pkgconfig/swfdec.pc
+@dirrm include/swfdec
diff --git a/graphics/swfdec/buildlink2.mk b/graphics/swfdec/buildlink2.mk
new file mode 100644
index 00000000000..73829110166
--- /dev/null
+++ b/graphics/swfdec/buildlink2.mk
@@ -0,0 +1,30 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/04/23 08:15:40 rh Exp $
+#
+# This Makefile fragment is included by packages that use swfdec.
+#
+# This file was created automatically using createbuildlink 2.4.
+#
+
+.if !defined(SWFDEC_BUILDLINK2_MK)
+SWFDEC_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= swfdec
+BUILDLINK_DEPENDS.swfdec?= swfdec>=0.2.1
+BUILDLINK_PKGSRCDIR.swfdec?= ../../graphics/swfdec
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.swfdec=swfdec
+BUILDLINK_PREFIX.swfdec_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.swfdec+= include/swfdec/*.h
+BUILDLINK_FILES.swfdec+= lib/gtk-2.0/2.2.0/loaders/swf_loader.*
+BUILDLINK_FILES.swfdec+= lib/libswfdec.*
+BUILDLINK_FILES.swfdec+= lib/pkgconfig/swfdec.pc
+
+.include "../../devel/SDL/buildlink2.mk"
+.include "../../graphics/libart2/buildlink2.mk"
+.include "../../x11/gtk2/buildlink2.mk"
+
+BUILDLINK_TARGETS+= swfdec-buildlink
+
+swfdec-buildlink: _BUILDLINK_USE
+
+.endif # SWFDEC_BUILDLINK2_MK
diff --git a/graphics/swfdec/distinfo b/graphics/swfdec/distinfo
new file mode 100644
index 00000000000..fa7e54d9840
--- /dev/null
+++ b/graphics/swfdec/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/04/23 08:15:40 rh Exp $
+
+SHA1 (swfdec-0.2.1.tar.gz) = e2c3b2257fefab0d4c45be24f351340735cc0674
+Size (swfdec-0.2.1.tar.gz) = 325500 bytes
+SHA1 (patch-aa) = ae2cd8ffb34d09c709378cc3b45510cb5d738305
+SHA1 (patch-ab) = 0df07eb8e0de223d783705f5f596c5a28cd2d680
diff --git a/graphics/swfdec/patches/patch-aa b/graphics/swfdec/patches/patch-aa
new file mode 100644
index 00000000000..f93b602e525
--- /dev/null
+++ b/graphics/swfdec/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/04/23 08:15:40 rh Exp $
+
+--- libswfdec/mpglib/clipconv_f32_s16.h.orig 2002-11-06 17:11:48.000000000 +1000
++++ libswfdec/mpglib/clipconv_f32_s16.h
+@@ -34,7 +34,6 @@ Half integers may be rounded to either n
+ //#include <sl_altivec.h>
+ #define f32 float
+ #define s16 short
+-#define HAVE_IEEE754_H
+
+
+ /* storage class */
diff --git a/graphics/swfdec/patches/patch-ab b/graphics/swfdec/patches/patch-ab
new file mode 100644
index 00000000000..1eceda11ba0
--- /dev/null
+++ b/graphics/swfdec/patches/patch-ab
@@ -0,0 +1,47 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/04/23 08:15:40 rh Exp $
+
+--- player/swf_play.c.orig 2003-02-06 06:19:27.000000000 +1000
++++ player/swf_play.c
+@@ -15,6 +15,8 @@
+ #include <signal.h>
+ #include <sys/wait.h>
+ #include <sys/time.h>
++#include <sys/signal.h>
++#include <errno.h>
+ #include <time.h>
+ #include <string.h>
+
+@@ -539,6 +541,19 @@ void fault_handler(int signum, siginfo_t
+ _exit(0);
+ }
+
++#ifndef SA_SIGINFO
++void si_handler(int sig, int code, struct sigcontext *scp)
++{
++ siginfo_t si;
++
++ si.si_signo = sig;
++ si.si_errno = errno;
++ si.si_code = code;
++
++ fault_handler(sig, &si, scp);
++}
++#endif
++
+ void fault_restore(void)
+ {
+ struct sigaction action;
+@@ -555,8 +570,13 @@ void fault_setup(void)
+ struct sigaction action;
+
+ memset(&action,0,sizeof(action));
++#ifdef SA_SIGINFO
+ action.sa_sigaction = fault_handler;
+ action.sa_flags = SA_SIGINFO;
++#else
++ action.sa_sigaction = (void (*)(int))si_handler;
++ action.sa_flags = 0;
++#endif
+
+ sigaction(SIGSEGV, &action, NULL);
+ sigaction(SIGQUIT, &action, NULL);