import of swfdec-0.2.2:

Swfdec is a library for rendering Flash animations and games.

WWW: http://swfdec.sourceforge.net/

ok pvalchev@
This commit is contained in:
jolan 2003-06-24 08:11:14 +00:00
parent 2d573eda1e
commit 32658e070e
13 changed files with 205 additions and 0 deletions

41
graphics/swfdec/Makefile Normal file
View File

@ -0,0 +1,41 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
COMMENT= "flash rendering library"
DISTNAME= swfdec-0.2.2
CATEGORIES= graphics www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=swfdec/}
HOMEPAGE= http://swfdec.sourceforge.net/
MAINTAINER= Jolan Luff <jolan@openbsd.org>
# LGPL
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
BUILD_DEPENDS+= :pkgconfig->=0.12.0p1:devel/pkgconfig
LIB_DEPENDS= SDL::devel/sdl \
mad::audio/mad \
art_lgpl_2.5::graphics/libart \
gdk-x11-2.0.0.11,gdk_pixbuf-2.0.0.11,gtk-x11-2.0.0.11::x11/gtk+2
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=--disable-pixbuf-loader
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig"
FLAVORS= plugin
FLAVOR?=
.if ${FLAVOR:L:Mplugin}
MOZ=mozilla
BUILD_DEPENDS= :mozilla-devel->=1.4b:www/mozilla,-devel
CFLAGS+= -DMOZ_X11
PORTPATH+= ${WRKDIR}/bin:/usr/bin:/bin:/usr/sbin:/sbin:${LOCALBASE}/bin:${X11BASE}/bin:${LOCALBASE}/${MOZ}
.endif
.include <bsd.port.mk>

3
graphics/swfdec/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (swfdec-0.2.2.tar.gz) = 08c60d18f350c68c4b938dc29e9b1191
RMD160 (swfdec-0.2.2.tar.gz) = e44e1d5890fd1b8e6b73fa0ed5d645dbb6203c88
SHA1 (swfdec-0.2.2.tar.gz) = f3cbc3fec455117d554d37ac4dda1d99fb592661

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
--- Makefile.in.orig Sun May 18 15:54:16 2003
+++ Makefile.in Fri Jun 13 03:29:42 2003
@@ -112,7 +112,7 @@ X_PRE_LIBS = @X_PRE_LIBS@
am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@
-SUBDIRS = libswfdec test player plugin pixbuf-loader
+SUBDIRS = libswfdec test player plugin
DIST_SUBDIRS = libswfdec test player plugin pixbuf-loader

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libswfdec_jpeg_sl_types_h,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
--- libswfdec/jpeg/sl_types.h.orig Fri Nov 29 22:51:49 2002
+++ libswfdec/jpeg/sl_types.h Fri Jun 13 17:55:09 2003
@@ -5,7 +5,7 @@
//#include <sl_profile.h>
//#include <sl_palette.h>
-#include <malloc.h>
+#include <stdlib.h>
#define HAVE_IEEE754_H

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libswfdec_mpglib_clipconv_f32_s16_h,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
--- libswfdec/mpglib/clipconv_f32_s16.h.orig Wed Nov 6 01:11:48 2002
+++ libswfdec/mpglib/clipconv_f32_s16.h Sun Jun 8 04:05:14 2003
@@ -34,7 +34,7 @@ Half integers may be rounded to either n
//#include <sl_altivec.h>
#define f32 float
#define s16 short
-#define HAVE_IEEE754_H
+#undef HAVE_IEEE754_H
/* storage class */

View File

@ -0,0 +1,56 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
--- ltmain.sh.orig Sun May 18 15:53:53 2003
+++ ltmain.sh Thu Jun 12 00:19:28 2003
@@ -1767,11 +1767,6 @@ compiler."
continue
fi
- if test "$installed" = no; then
- notinst_deplibs="$notinst_deplibs $lib"
- need_relink=yes
- fi
-
if test -n "$old_archive_from_expsyms_cmds"; then
# figure out the soname
set dummy $library_names
@@ -4569,40 +4564,6 @@ relink_command=\"$relink_command\""
# Exit here if they wanted silent mode.
test "$show" = ":" && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-player_swf_play_c,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
--- player/swf_play.c.orig Thu Apr 3 22:11:57 2003
+++ player/swf_play.c Sat Jun 14 14:26:41 2003
@@ -390,7 +390,7 @@ static void embedded (GtkPlug *plug, gpo
static gboolean input(GIOChannel *chan, GIOCondition cond, gpointer ignored)
{
char *data;
- int bytes_read;
+ size_t bytes_read;
GError *error = NULL;
int ret;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-plugin_Makefile_in,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
--- plugin/Makefile.in.orig Sun May 18 15:54:20 2003
+++ plugin/Makefile.in Fri Jun 13 03:34:43 2003
@@ -113,7 +113,7 @@ am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@
-plugindir = $(libdir)/mozilla/plugins/
+plugindir = $(libdir)/mozilla-plugins/
@WITH_MOZILLA_TRUE@plugin_LTLIBRARIES = libmozswfdec.la
@WITH_MOZILLA_FALSE@plugin_LTLIBRARIES =

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-plugin_plugin_c,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
--- plugin/plugin.c.orig Thu Nov 21 02:51:38 2002
+++ plugin/plugin.c Wed Jun 11 02:24:05 2003
@@ -1,8 +1,9 @@
#include <stdio.h>
-#include <stdint.h>
+/* #include <stdint.h> */
#include <unistd.h>
+#include <sys/signal.h>
#include <sys/wait.h>
#include <config.h>
@@ -240,7 +241,7 @@ static void plugin_stream_as_file(NPP in
/* exported functions */
-NPError NP_GetValue(NPP instance, NPPVariable variable, void *value)
+NPError NP_GetValue(void* future, NPPVariable variable, void *value)
{
NPError err = NPERR_NO_ERROR;

View File

@ -0,0 +1,3 @@
Swfdec is a library for rendering Flash animations and games.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PFRAG.plugin,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
lib/mozilla-plugins/libmozswfdec.a
lib/mozilla-plugins/libmozswfdec.la
lib/mozilla-plugins/libmozswfdec.so
@comment @dirrm lib/mozilla-plugins

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
lib/libswfdec.so.0.0
DYNLIBDIR(%D/lib)

11
graphics/swfdec/pkg/PLIST Normal file
View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/06/24 08:11:14 jolan Exp $
%%plugin%%
bin/swf_play
include/swfdec/swf.h
include/swfdec/swfdec.h
lib/libswfdec.a
lib/libswfdec.la
lib/pkgconfig/swfdec.pc
%%SHARED%%
@comment @dirrm lib/pkgconfig
@dirrm include/swfdec