From 896b6236edc4a83ed1d2d007bb69605a55cebc84 Mon Sep 17 00:00:00 2001 From: don Date: Sat, 20 Dec 1997 03:17:26 +0000 Subject: [PATCH] Initial import. --- graphics/mpeg-lib/Makefile | 26 +++++ graphics/mpeg-lib/files/md5 | 1 + graphics/mpeg-lib/patches/patch-aa | 151 +++++++++++++++++++++++++++++ graphics/mpeg-lib/patches/patch-ab | 27 ++++++ graphics/mpeg-lib/patches/patch-ac | 12 +++ graphics/mpeg-lib/pkg/COMMENT | 1 + graphics/mpeg-lib/pkg/DESCR | 10 ++ graphics/mpeg-lib/pkg/PLIST | 4 + 8 files changed, 232 insertions(+) create mode 100644 graphics/mpeg-lib/Makefile create mode 100644 graphics/mpeg-lib/files/md5 create mode 100644 graphics/mpeg-lib/patches/patch-aa create mode 100644 graphics/mpeg-lib/patches/patch-ab create mode 100644 graphics/mpeg-lib/patches/patch-ac create mode 100644 graphics/mpeg-lib/pkg/COMMENT create mode 100644 graphics/mpeg-lib/pkg/DESCR create mode 100644 graphics/mpeg-lib/pkg/PLIST diff --git a/graphics/mpeg-lib/Makefile b/graphics/mpeg-lib/Makefile new file mode 100644 index 00000000000..67b16266215 --- /dev/null +++ b/graphics/mpeg-lib/Makefile @@ -0,0 +1,26 @@ +# OpenBSD makefile for: mpeg_lib +# Version required: 1.2.1 +# Date created: December 17, 1997 +# Whom: Don Schmidt +# +# $OpenBSD: Makefile,v 1.1.1.1 1997/12/20 03:17:26 don Exp $ +# + +DISTNAME= mpeg_lib-1.2.1 +CATEGORIES= graphics +MASTER_SITES= ftp://ftp.mni.mcgill.ca/pub/mpeg/ + +MAINTAINER= don@OpenBSD.ORG + +WRKSRC= ${WRKDIR}/mpeg_lib + +GNU_CONFIGURE= yup + + +pre-install: + @${MKDIR} -p ${PREFIX}/bin ${PREFIX}/lib ${PREFIX}/include + +post-install: + ${LDCONFIG} -m ${PREFIX}/lib + +.include diff --git a/graphics/mpeg-lib/files/md5 b/graphics/mpeg-lib/files/md5 new file mode 100644 index 00000000000..65cef81288a --- /dev/null +++ b/graphics/mpeg-lib/files/md5 @@ -0,0 +1 @@ +MD5 (mpeg_lib-1.2.1.tar.gz) = 28d9d7a80031393d1008e0dff76c4674 diff --git a/graphics/mpeg-lib/patches/patch-aa b/graphics/mpeg-lib/patches/patch-aa new file mode 100644 index 00000000000..e99976b4b5b --- /dev/null +++ b/graphics/mpeg-lib/patches/patch-aa @@ -0,0 +1,151 @@ +*** Makefile.in.orig Mon Feb 26 12:12:54 1996 +--- Makefile.in Thu Dec 18 19:36:45 1997 +*************** +*** 16,21 **** +--- 16,22 ---- + RANLIB = @RANLIB@ + SHELL = /bin/sh + ++ .SUFFIXES: .so + + # Source for the library itself -- note that we define LIBSRC and + # LIBOBJ this way (instead of just LIBOBJ=$(LIBSRC:.c=.o) because +*************** +*** 27,49 **** + mono.c ordered.c ordered2.c mb_ordered.c + LIBSRC = @libsrc@ + LIBOBJ = @libobj@ + + + # Other files of interest + + LIBRARY = libmpeg.a + MPEGTEST = mpegtest + + # Targets for all platforms + +! all: $(LIBRARY) @extras@ + + $(LIBRARY): $(LIBOBJ) + $(AR) $(ARFLAGS) $(LIBRARY) $(LIBOBJ) + $(RANLIB) $(LIBRARY) + + $(LIBOBJ): Makefile + + @Makefile_extras@ + + clean: +--- 28,59 ---- + mono.c ordered.c ordered2.c mb_ordered.c + LIBSRC = @libsrc@ + LIBOBJ = @libobj@ ++ SHLIBOBJ = @shlibobj@ + + + # Other files of interest + + LIBRARY = libmpeg.a ++ SHLIBRARY = libmpeg.so.1.2 + MPEGTEST = mpegtest + + # Targets for all platforms + +! all: $(LIBRARY) ${SHLIBRARY} @extras@ + + $(LIBRARY): $(LIBOBJ) + $(AR) $(ARFLAGS) $(LIBRARY) $(LIBOBJ) + $(RANLIB) $(LIBRARY) + ++ $(SHLIBRARY): $(SHLIBOBJ) ++ ld -Bshareable -o $(SHLIBRARY) $(SHLIBOBJ) ++ + $(LIBOBJ): Makefile + ++ install: ++ install -c -m 444 ${LIBRARY} ${SHLIBRARY} ${PREFIX}/lib ++ install -c -m 444 mpeg.h ${PREFIX}/include ++ + @Makefile_extras@ + + clean: +*************** +*** 53,58 **** +--- 63,71 ---- + distclean: clean + rm -f config.cache config.log config.status Makefile config.h + cd extras && $(MAKE) distclean ++ ++ .c.so: ++ ${CC} ${CFLAGS} -fpic -DPIC -c $< -o $@ + + # Include a system-specific Makefile fragment, if any + +*** configure.orig Mon Feb 26 11:58:27 1996 +--- configure Thu Dec 18 19:36:45 1997 +*************** +*** 817,822 **** +--- 817,823 ---- + if test $dither = yes; then + libsrc='$(DECODER_SRC) $(DITHER_SRC)' + libobj='$(DECODER_SRC:.c=.o) $(DITHER_SRC:.c=.o)' ++ shlibobj='$(DECODER_SRC:.c=.so) $(DITHER_SRC:.c=.so)' + cat >> confdefs.h <<\EOF + #define ENABLE_DITHER 1 + EOF +*************** +*** 825,830 **** +--- 826,832 ---- + else + libsrc='$(DECODER_SRC)' + libobj='$(DECODER_SRC:.c=.o)' ++ shlibobj='$(DECODER_SRC:.c=.so)' + cat >> confdefs.h <<\EOF + #define ENABLE_DITHER 0 + EOF +*************** +*** 1459,1464 **** +--- 1461,1467 ---- + s%@AR@%$AR%g + s%@libsrc@%$libsrc%g + s%@libobj@%$libobj%g ++ s%@shlibobj@%$shlibobj%g + s%@jrevdct@%$jrevdct%g + s%@extras@%$extras%g + /@Makefile_extras@/r $Makefile_extras +*** config.guess.orig Thu Dec 18 19:51:29 1997 +--- config.guess Thu Dec 18 20:00:23 1997 +*************** +*** 311,316 **** +--- 311,319 ---- + *:NetBSD:*:*) + echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; ++ *:OpenBSD:*:*) ++ echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ++ exit 0 ;; + *:GNU:*:*) + echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit 0 ;; +*** config.sub.orig Thu Dec 18 20:03:37 1997 +--- config.sub Thu Dec 18 20:06:00 1997 +*************** +*** 637,645 **** + | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \ + | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ + | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ +! | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \ +! | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ +! | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* ) + # Remember, each alternative MUST END IN *, to match a version number. + ;; +--- 637,645 ---- + | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \ + | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \ + | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ +! | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* \ +! | -riscix* | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* \ +! | -elf* | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* ) + # Remember, each alternative MUST END IN *, to match a version number. + ;; diff --git a/graphics/mpeg-lib/patches/patch-ab b/graphics/mpeg-lib/patches/patch-ab new file mode 100644 index 00000000000..8ec1acae84d --- /dev/null +++ b/graphics/mpeg-lib/patches/patch-ab @@ -0,0 +1,27 @@ +*** video.c.orig Wed Nov 16 13:43:47 1994 +--- video.c Wed Nov 16 13:34:42 1994 +*************** +*** 39,44 **** +--- 39,48 ---- + #include "util.h" + #include "proto.h" + ++ #ifdef _HAVE_PARAM_H ++ #include ++ #endif ++ + /* Declarations of functions. */ + static void ReconIMBlock(); + static void ReconPMBlock(); +*************** +*** 435,441 **** +--- 439,447 ---- + static int num_calls = 0; + unsigned int data; + int i, status; ++ #if BSD < 199103 + long int ftell (FILE *stream); ++ #endif + + /* If vid_stream is null, create new VidStream structure. */ + diff --git a/graphics/mpeg-lib/patches/patch-ac b/graphics/mpeg-lib/patches/patch-ac new file mode 100644 index 00000000000..dc7d9b7932f --- /dev/null +++ b/graphics/mpeg-lib/patches/patch-ac @@ -0,0 +1,12 @@ +--- wrapper.c.orig Tue Oct 10 16:08:39 1995 ++++ wrapper.c Tue Oct 14 14:25:17 1997 +@@ -390,7 +390,8 @@ + + dprintf ("\nGetMPEGFrame: just received a finished frame: " + "copying from %08X to %08X\n", CurrentImage, Frame); +- memcpy (Frame, CurrentImage, ImageInfo.Size); ++ if (!MovieDone) ++ memcpy (Frame, CurrentImage, ImageInfo.Size); + return (!MovieDone); + + } /* GetMPEGFrame () */ diff --git a/graphics/mpeg-lib/pkg/COMMENT b/graphics/mpeg-lib/pkg/COMMENT new file mode 100644 index 00000000000..ba404c4faf9 --- /dev/null +++ b/graphics/mpeg-lib/pkg/COMMENT @@ -0,0 +1 @@ +A collection of C routines to decode MPEG movies. diff --git a/graphics/mpeg-lib/pkg/DESCR b/graphics/mpeg-lib/pkg/DESCR new file mode 100644 index 00000000000..7c6d4e25b07 --- /dev/null +++ b/graphics/mpeg-lib/pkg/DESCR @@ -0,0 +1,10 @@ +The MPEG Library is a collection of C routines to decode MPEG movies +and dither them in a variety of colour schemes. Most of the code in +the library comes directly from the Berkely MPEG player, an +X11-specific implementation that works fine, but suffers from minimal +documentation and a lack of modularity. A front end to the Berkeley +decoding engine was developed by Greg Ward at the Montreal +Neurological Institute in May/June 1994 to facilitate the development +of an MPEG player specifically for Silicon Graphics workstations; the +decoding engine together with the MNI front end constitute the MPEG +Library. diff --git a/graphics/mpeg-lib/pkg/PLIST b/graphics/mpeg-lib/pkg/PLIST new file mode 100644 index 00000000000..1205a03365a --- /dev/null +++ b/graphics/mpeg-lib/pkg/PLIST @@ -0,0 +1,4 @@ +lib/libmpeg.a +lib/libmpeg.so.1.2 +@exec /sbin/ldconfig -m %B +include/mpeg.h