Standalone open source flash(tm) player, that comes with the
FlashLib (libflash) distribution. You can use it to quickly play movies without starting Netscape. It can also play movies on root window (suitable for xscreensaver). MAINTAINER= Peter Valchev <pvalchev@toxiclinux.org>
This commit is contained in:
parent
e85bbddaac
commit
6eea43d20e
26
graphics/flash/Makefile
Normal file
26
graphics/flash/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/01/02 12:04:18 reinhard Exp $
|
||||
|
||||
DISTNAME= flash-0.4.10
|
||||
CATEGORIES= graphics
|
||||
EXTRACT_SUFX= .tgz
|
||||
NEED_VERSION= 1.348
|
||||
MASTER_SITES= http://www.swift-tools.com/Flash/ \
|
||||
http://toxiclinux.org/binary
|
||||
|
||||
HOMEPAGE= http://www.swift-tools.com/Flash/
|
||||
|
||||
MAINTAINER= Peter Valchev <pvalchev@toxiclinux.org>
|
||||
|
||||
FAKE_FLAGS= PREFIX="${WRKINST}${PREFIX}"
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/swfplayer ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/flash
|
||||
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/flash
|
||||
|
||||
.include <bsd.port.mk>
|
3
graphics/flash/files/md5
Normal file
3
graphics/flash/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (flash-0.4.10.tgz) = 1473f085c599d8076fa866cd91e11598
|
||||
RMD160 (flash-0.4.10.tgz) = 17c04bb9fd29ab9b91fbc2954e508aead1ab7fb1
|
||||
SHA1 (flash-0.4.10.tgz) = 41f2b8bba3e551e611913069e6e650bc4c8ab420
|
34
graphics/flash/patches/patch-Lib_sound_cc
Normal file
34
graphics/flash/patches/patch-Lib_sound_cc
Normal file
@ -0,0 +1,34 @@
|
||||
$OpenBSD: patch-Lib_sound_cc,v 1.1.1.1 2001/01/02 12:04:18 reinhard Exp $
|
||||
--- Lib/sound.cc.orig Wed Sep 1 15:10:03 1999
|
||||
+++ Lib/sound.cc Mon Jan 1 18:44:57 2001
|
||||
@@ -26,8 +26,12 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#ifndef NOSOUND
|
||||
+#ifdef __OpenBSD__
|
||||
+#include <soundcard.h>
|
||||
+#else
|
||||
#include <linux/soundcard.h>
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
#ifdef RCSID
|
||||
static char *rcsid = "$Id: patch-Lib_sound_cc,v 1.1.1.1 2001/01/02 12:04:18 reinhard Exp $";
|
||||
@@ -162,7 +166,7 @@ SoundMixer::SoundMixer(char *device)
|
||||
}
|
||||
|
||||
// Reset device
|
||||
- status = ioctl(dsp, SNDCTL_DSP_RESET);
|
||||
+ status = ioctl(dsp, SNDCTL_DSP_RESET, NULL);
|
||||
if (status < 0) perror("ioctl SNDCTL_DSP_RESET");
|
||||
|
||||
// Set sample size
|
||||
@@ -324,7 +328,7 @@ SoundMixer::playSounds()
|
||||
if (nbBytes) {
|
||||
// At last ! Play It !
|
||||
write(dsp,buffer,nbBytes);
|
||||
- status = ioctl(dsp, SNDCTL_DSP_POST);
|
||||
+ status = ioctl(dsp, SNDCTL_DSP_POST, NULL);
|
||||
}
|
||||
|
||||
return nbBytes;
|
46
graphics/flash/patches/patch-Makefile
Normal file
46
graphics/flash/patches/patch-Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/01/02 12:04:18 reinhard Exp $
|
||||
--- Makefile.orig Mon Jun 12 08:19:14 2000
|
||||
+++ Makefile Mon Jan 1 18:44:57 2001
|
||||
@@ -1,7 +1,38 @@
|
||||
-SUBDIRS= Jpeg Zlib Lib Player Plugin Kflash
|
||||
+CC=cc
|
||||
+CXX=/usr/bin/g++
|
||||
+CFLAGS=-fpic -fno-rtti -DXP_UNIX
|
||||
+CFLAGS+=-DCHECK_TEXT_PLAIN
|
||||
+CFLAGS+=-I/usr/X11R6/include -I./Lib -I./Jpeg -I./Zlib -I./Plugin
|
||||
+CFLAGS+=-DCHECK_TEXT_PLAIN
|
||||
+CFLAGS+=-DNOSOUND
|
||||
+INSTALL=/usr/bin/install -c -o root -g bin
|
||||
|
||||
-all:
|
||||
- for subdir in $(SUBDIRS); do (cd $$subdir; $(MAKE)); done
|
||||
+OBJS= adpcm.o bitmap.o button.o character.o cxform.o \
|
||||
+ displaylist.o flash.o font.o graphic.o graphic16.o \
|
||||
+ graphic24.o graphic32.o matrix.o movie.o \
|
||||
+ program.o script.o shape.o sound.o \
|
||||
+ sprite.o sqrt.o text.o
|
||||
+
|
||||
+OBJS+= jcomapi.o jdapimin.o jdapistd.o jdatasrc.o jdcoefct.o \
|
||||
+ jdcolor.o jddctmgr.o jdhuff.o jdinput.o jdmainct.o \
|
||||
+ jdmarker.o jdmaster.o jdmerge.o jdphuff.o jdpostct.o \
|
||||
+ jdsample.o jdtrans.o jerror.o jidctflt.o jidctfst.o \
|
||||
+ jidctint.o jidctred.o jmemmgr.o jmemnobs.o jquant1.o \
|
||||
+ jquant2.o jutils.o
|
||||
+
|
||||
+OBJS+= adler32.o infblock.o infcodes.o inffast.o \
|
||||
+ inflate.o inftrees.o infutil.o zutil.o
|
||||
+
|
||||
+PLAYEROBJS = main.o
|
||||
+
|
||||
+PLUGINOBJS = npunix.o plugin.o
|
||||
+
|
||||
+.PATH: ./Plugin ./Player ./Lib ./Zlib ./Jpeg
|
||||
+
|
||||
+all: swfplayer
|
||||
+
|
||||
+swfplayer: $(PLAYEROBJS) $(OBJS)
|
||||
+ $(CC) -o $@ main.o $(OBJS) -L/usr/X11R6/lib -lossaudio -lXext -lX11 -lm
|
||||
|
||||
clean:
|
||||
- for subdir in $(SUBDIRS); do (cd $$subdir; $(MAKE) clean); done
|
||||
+ rm -f $(PLAYEROBJS) $(PLUGINOBJS) $(OBJS) swfplayer
|
1
graphics/flash/pkg/COMMENT
Normal file
1
graphics/flash/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
open source standalone flash(tm) player
|
6
graphics/flash/pkg/DESCR
Normal file
6
graphics/flash/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
Standalone open source flash(tm) player, that comes with the
|
||||
FlashLib (libflash) distribution.
|
||||
You can use it to quickly play movies without starting Netscape.
|
||||
It can also play movies on root window (suitable for xscreensaver).
|
||||
|
||||
WWW: ${HOMEPAGE}
|
4
graphics/flash/pkg/PLIST
Normal file
4
graphics/flash/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/01/02 12:04:18 reinhard Exp $
|
||||
bin/swfplayer
|
||||
share/doc/flash/README
|
||||
@dirrm share/doc/flash
|
Loading…
Reference in New Issue
Block a user