Initial import.

This commit is contained in:
don 1997-12-20 03:17:26 +00:00
parent 84e506713a
commit 896b6236ed
8 changed files with 232 additions and 0 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (mpeg_lib-1.2.1.tar.gz) = 28d9d7a80031393d1008e0dff76c4674

View File

@ -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.
;;

View File

@ -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 <sys/param.h>
+ #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. */

View File

@ -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 () */

View File

@ -0,0 +1 @@
A collection of C routines to decode MPEG movies.

View File

@ -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.

View File

@ -0,0 +1,4 @@
lib/libmpeg.a
lib/libmpeg.so.1.2
@exec /sbin/ldconfig -m %B
include/mpeg.h