diff options
author | rh <rh> | 2000-08-28 17:33:50 +0000 |
---|---|---|
committer | rh <rh> | 2000-08-28 17:33:50 +0000 |
commit | ca322c7cb6b457a752f2439ec5c37fe6debe1cc1 (patch) | |
tree | 805733984c5474379c9f0dc7e22264fe9d5d0807 /graphics | |
parent | 452d872d1901a2b87ea662b33078791c12f75cf9 (diff) | |
download | pkgsrc-ca322c7cb6b457a752f2439ec5c37fe6debe1cc1.tar.gz |
Initial import of libflash-0.4.10, a GPL library for playing Flash[tm]
movies. Provided in private mail by hubertf with some changes by myself
to split up the package into separate library, player, and plugin parts.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/libflash/Makefile | 16 | ||||
-rw-r--r-- | graphics/libflash/Makefile.common | 14 | ||||
-rw-r--r-- | graphics/libflash/files/md5 | 3 | ||||
-rw-r--r-- | graphics/libflash/files/patch-sum | 10 | ||||
-rw-r--r-- | graphics/libflash/patches/patch-aa | 10 | ||||
-rw-r--r-- | graphics/libflash/patches/patch-ab | 32 | ||||
-rw-r--r-- | graphics/libflash/patches/patch-ac | 29 | ||||
-rw-r--r-- | graphics/libflash/patches/patch-ad | 17 | ||||
-rw-r--r-- | graphics/libflash/patches/patch-ae | 21 | ||||
-rw-r--r-- | graphics/libflash/patches/patch-af | 16 | ||||
-rw-r--r-- | graphics/libflash/patches/patch-ag | 16 | ||||
-rw-r--r-- | graphics/libflash/patches/patch-ah | 16 | ||||
-rw-r--r-- | graphics/libflash/pkg/COMMENT | 1 | ||||
-rw-r--r-- | graphics/libflash/pkg/DESCR | 4 | ||||
-rw-r--r-- | graphics/libflash/pkg/PLIST | 25 |
15 files changed, 230 insertions, 0 deletions
diff --git a/graphics/libflash/Makefile b/graphics/libflash/Makefile new file mode 100644 index 00000000000..57ff7df9163 --- /dev/null +++ b/graphics/libflash/Makefile @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ +# + +PKGNAME= lib${DISTNAME} + +DEPENDS+= jpeg-6b:../../graphics/jpeg + +USE_LIBTOOL= yes + +do-build: + cd ${WRKSRC}/Lib && make + +do-install: + cd ${WRKSRC}/Lib && make install + +.include "Makefile.common" diff --git a/graphics/libflash/Makefile.common b/graphics/libflash/Makefile.common new file mode 100644 index 00000000000..e60a60da301 --- /dev/null +++ b/graphics/libflash/Makefile.common @@ -0,0 +1,14 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ +# + +DISTNAME= flash-0.4.10 +CATEGORIES= graphics +MASTER_SITES= http://www.swift-tools.com/Flash/ +EXTRACT_SUFX= .tgz + +MAINTAINER= hubertf@netbsd.org +HOMEPAGE= http://www.swift-tools.com/Flash/ + +USE_X11= yes + +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/libflash/files/md5 b/graphics/libflash/files/md5 new file mode 100644 index 00000000000..58fef049468 --- /dev/null +++ b/graphics/libflash/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ + +MD5 (flash-0.4.10.tgz) = 1473f085c599d8076fa866cd91e11598 diff --git a/graphics/libflash/files/patch-sum b/graphics/libflash/files/patch-sum new file mode 100644 index 00000000000..152640ab08e --- /dev/null +++ b/graphics/libflash/files/patch-sum @@ -0,0 +1,10 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ + +MD5 (patch-aa) = 73c8d445a783dd25f278602a96a9759d +MD5 (patch-ab) = d27484e8302501a696597041c72656d7 +MD5 (patch-ac) = b454e2b496d2923a104f01351ff884cb +MD5 (patch-ad) = ae438f080c803968ceeb1c58420bf93e +MD5 (patch-ae) = 61d2d8ec09286c54e5d01b98338521c1 +MD5 (patch-af) = 39d2e05b1cccfee1b546973c607d9c52 +MD5 (patch-ag) = f7cfe36d36ffa20cc162b34c6ba6c34a +MD5 (patch-ah) = 0e7a1ab5dcb1cad044699d0b2869a950 diff --git a/graphics/libflash/patches/patch-aa b/graphics/libflash/patches/patch-aa new file mode 100644 index 00000000000..919db7c9dfb --- /dev/null +++ b/graphics/libflash/patches/patch-aa @@ -0,0 +1,10 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ + +--- Makefile.orig Fri Aug 25 16:58:32 2000 ++++ Makefile +@@ -1,4 +1,4 @@ +-SUBDIRS= Jpeg Zlib Lib Player Plugin Kflash ++SUBDIRS?= Lib Player Plugin # Kflash + + all: + for subdir in $(SUBDIRS); do (cd $$subdir; $(MAKE)); done diff --git a/graphics/libflash/patches/patch-ab b/graphics/libflash/patches/patch-ab new file mode 100644 index 00000000000..46467d71e6b --- /dev/null +++ b/graphics/libflash/patches/patch-ab @@ -0,0 +1,32 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ + +--- Lib/Makefile.orig Sun Jun 4 11:49:23 2000 ++++ Lib/Makefile +@@ -1,4 +1,4 @@ +-CPPFLAGS=-I../Jpeg -I../Zlib ++CPPFLAGS=-I${LOCALBASE}/include + # Comment out the following line if you use egcs : + CXXFLAGS=-O3 -Wall -fno-rtti -fno-exceptions + +@@ -34,10 +34,20 @@ + # bitstream.o + # dump.o + ++.cc.o: ++ ${LIBTOOL} --mode=compile ${CXX} -c ${CPPFLAGS} ${CXXFLAGS} ${.IMPSRC} ++ + all: libflash.a + ++install: ++ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libflash.la ${PREFIX}/lib ++ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/include/flash ++.for file in ${INCLUDES} ++ ${BSD_INSTALL_DATA} ${file} ${PREFIX}/include/flash ++.endfor ++ + libflash.a: $(SWFOBJS) +- ar rcs $@ $(SWFOBJS) ++ ${LIBTOOL} --mode=link ${CC} -o ${.TARGET:.a=.la} ${SWFOBJS:.o=.lo} -rpath ${PREFIX}/lib -L${PREFIX}/lib -Wl,-R${PREFIX}/lib -ljpeg -version-info 0:4 + + $(SWFOBJS): $(INCLUDES) + diff --git a/graphics/libflash/patches/patch-ac b/graphics/libflash/patches/patch-ac new file mode 100644 index 00000000000..4f941a4d553 --- /dev/null +++ b/graphics/libflash/patches/patch-ac @@ -0,0 +1,29 @@ +$NetBSD: patch-ac,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ + +--- Lib/sound.cc.orig Fri Aug 25 17:03:22 2000 ++++ Lib/sound.cc Fri Aug 25 17:05:29 2000 +@@ -27,6 +27,10 @@ + #include <sys/ioctl.h> + #ifndef NOSOUND ++#ifdef __NetBSD__ ++#include <soundcard.h> ++#else + #include <linux/soundcard.h> + #endif ++#endif + + #ifdef RCSID +@@ -163,5 +167,5 @@ + + // Reset device +- status = ioctl(dsp, SNDCTL_DSP_RESET); ++ status = ioctl(dsp, SNDCTL_DSP_RESET, NULL); + if (status < 0) perror("ioctl SNDCTL_DSP_RESET"); + +@@ -325,5 +329,5 @@ + // At last ! Play It ! + write(dsp,buffer,nbBytes); +- status = ioctl(dsp, SNDCTL_DSP_POST); ++ status = ioctl(dsp, SNDCTL_DSP_POST, NULL); + } + diff --git a/graphics/libflash/patches/patch-ad b/graphics/libflash/patches/patch-ad new file mode 100644 index 00000000000..1a1c96218d4 --- /dev/null +++ b/graphics/libflash/patches/patch-ad @@ -0,0 +1,17 @@ +$NetBSD: patch-ad,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ + +--- Player/Makefile.orig Wed Jun 7 20:19:50 2000 ++++ Player/Makefile +@@ -1,7 +1,9 @@ +-FLASH=../Lib +-CPPFLAGS=-I$(FLASH) ++FLASH=${LOCALBASE}/lib ++CPPFLAGS=-I${LOCALBASE}/include/flash -I${LOCALBASE}include -I${X11BASE}/include + CFLAGS=-O3 +-LIBS = $(FLASH)/libflash.a ../Zlib/libz.a ../Jpeg/libjpeg.a -L/usr/X11R6/lib -lX11 -lXext -lm ++LIBS = -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lflash\ ++ -ljpeg -lz -lossaudio -Wl,-R${X11BASE}/lib -L${X11BASE}/lib \ ++ -lX11 -lXext -lm + CC=gcc + LDFLAGS= + diff --git a/graphics/libflash/patches/patch-ae b/graphics/libflash/patches/patch-ae new file mode 100644 index 00000000000..e924145ab04 --- /dev/null +++ b/graphics/libflash/patches/patch-ae @@ -0,0 +1,21 @@ +$NetBSD: patch-ae,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ + +--- Plugin/Makefile.orig Fri Aug 25 17:12:47 2000 ++++ Plugin/Makefile Fri Aug 25 17:15:15 2000 +@@ -31,12 +31,12 @@ + # Solaris (Sun compiler/linker) + #SHARED=-G + # FreeBSD +-#SHARED=-Bshareable ++SHARED=-Bshareable + # Linux +-SHARED=-shared ++#SHARED=-shared + +-CFLAGS= $(OPTIMIZER) $(PLUGIN_DEFINES) -I$(FLASH) -I/usr/X11R6/include +-LDFLAGS= $(FLASH)/libflash.a $(LIBCXX) ../Jpeg/libjpeg.a ../Zlib/libz.a ++CFLAGS= $(OPTIMIZER) $(PLUGIN_DEFINES) -I$(FLASH) -I${X11BASE}/include ++LDFLAGS= $(FLASH)/libflash.a $(LIBCXX) -L${LOCALBASE}/lib -R${LOCALBASE}/lib -ljpeg -lz + + SRC= plugin.c npunix.c + OBJ= plugin.o npunix.o diff --git a/graphics/libflash/patches/patch-af b/graphics/libflash/patches/patch-af new file mode 100644 index 00000000000..5696ac85e57 --- /dev/null +++ b/graphics/libflash/patches/patch-af @@ -0,0 +1,16 @@ +$NetBSD: patch-af,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ + +--- Kflash/kflash.cc.orig Sat Aug 26 05:46:33 2000 ++++ Kflash/kflash.cc Sat Aug 26 05:47:50 2000 +@@ -443,7 +443,11 @@ + FlashSettings(flashHandle, PLAYER_LOOP); + + if (enableSound) { ++#ifdef __NetBSD__ ++ FlashSoundInit(flashHandle, "/dev/sound"); ++#else + FlashSoundInit(flashHandle, "/dev/dsp"); ++#endif + } + } + diff --git a/graphics/libflash/patches/patch-ag b/graphics/libflash/patches/patch-ag new file mode 100644 index 00000000000..b6f5ab6c769 --- /dev/null +++ b/graphics/libflash/patches/patch-ag @@ -0,0 +1,16 @@ +$NetBSD: patch-ag,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ + +--- Player/main.c.orig Thu Jun 8 08:56:11 2000 ++++ Player/main.c +@@ -559,7 +559,11 @@ + + FlashGraphicInitX11(flashHandle, dpy, movie, onRoot); + ++#ifdef __NetBSD__ ++ FlashSoundInit(flashHandle, "/dev/sound"); ++#else + FlashSoundInit(flashHandle, "/dev/dsp"); ++#endif + + FlashSetGetUrlMethod(flashHandle, showUrl, 0); + diff --git a/graphics/libflash/patches/patch-ah b/graphics/libflash/patches/patch-ah new file mode 100644 index 00000000000..b4e2adc35c9 --- /dev/null +++ b/graphics/libflash/patches/patch-ah @@ -0,0 +1,16 @@ +$NetBSD: patch-ah,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ + +--- Plugin/plugin.c.orig Sat Aug 26 06:41:31 2000 ++++ Plugin/plugin.c +@@ -162,7 +162,11 @@ + + FlashSetCursorOnOffMethod(This->fh, cursorOnOff, (void*)instance); + ++#ifdef __NetBSD__ ++ FlashSoundInit(This->fh, "/dev/sound"); ++#else + FlashSoundInit(This->fh, "/dev/dsp"); ++#endif + + return NPERR_NO_ERROR; + } diff --git a/graphics/libflash/pkg/COMMENT b/graphics/libflash/pkg/COMMENT new file mode 100644 index 00000000000..40670970cd1 --- /dev/null +++ b/graphics/libflash/pkg/COMMENT @@ -0,0 +1 @@ +open source flash(tm) library diff --git a/graphics/libflash/pkg/DESCR b/graphics/libflash/pkg/DESCR new file mode 100644 index 00000000000..b539d8da9c8 --- /dev/null +++ b/graphics/libflash/pkg/DESCR @@ -0,0 +1,4 @@ + GPL Flash [tm] library is a set of source codes that allow to play +Flash[tm] movies. The core of the library is a graphic renderer that is +portable is to be re-used in applications that need to play Flash[tm] +movies. diff --git a/graphics/libflash/pkg/PLIST b/graphics/libflash/pkg/PLIST new file mode 100644 index 00000000000..86474f76562 --- /dev/null +++ b/graphics/libflash/pkg/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/08/28 17:33:50 rh Exp $ +include/flash/adpcm.h +include/flash/cxform.h +include/flash/graphic.h +include/flash/script.h +include/flash/sqrt.h +include/flash/bitmap.h +include/flash/displaylist.h +include/flash/matrix.h +include/flash/shape.h +include/flash/swf.h +include/flash/button.h +include/flash/flash.h +include/flash/program.h +include/flash/sound.h +include/flash/text.h +include/flash/character.h +include/flash/font.h +include/flash/rect.h +include/flash/sprite.h +include/flash/movie.h +lib/libflash.a +lib/libflash.la +lib/libflash.so.0.4 +@dirrm include/flash |