aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authortorstenb <torstenb@FreeBSD.org>1994-11-21 00:00:10 +0800
committertorstenb <torstenb@FreeBSD.org>1994-11-21 00:00:10 +0800
commit6895ed272b145d466edd1d70cc37711b0506a207 (patch)
treee2c809f9e19106ba66d5af990ded08a9b4cedc39 /graphics
parentb14f656be17ba2b62217c5a216bbd6e898d7af47 (diff)
downloadfreebsd-ports-gnome-6895ed272b145d466edd1d70cc37711b0506a207.tar.gz
freebsd-ports-gnome-6895ed272b145d466edd1d70cc37711b0506a207.tar.zst
freebsd-ports-gnome-6895ed272b145d466edd1d70cc37711b0506a207.zip
mpeg library
Diffstat (limited to 'graphics')
-rw-r--r--graphics/mpeg-lib/Makefile17
-rw-r--r--graphics/mpeg-lib/files/patch-aa121
-rw-r--r--graphics/mpeg-lib/files/patch-ab27
-rw-r--r--graphics/mpeg-lib/pkg-comment1
-rw-r--r--graphics/mpeg-lib/pkg-descr10
-rw-r--r--graphics/mpeg-lib/pkg-plist4
6 files changed, 180 insertions, 0 deletions
diff --git a/graphics/mpeg-lib/Makefile b/graphics/mpeg-lib/Makefile
new file mode 100644
index 000000000000..a94e6a98171c
--- /dev/null
+++ b/graphics/mpeg-lib/Makefile
@@ -0,0 +1,17 @@
+# New ports collection makefile for: mpeg_lib
+# Version required: 1.1
+# Date created: 16 November 1994
+# Whom: torstenb
+#
+# $Id:$
+#
+
+DISTNAME= mpeg_lib-1.1
+MASTER_SITES= ftp://ftp.mni.mcgill.ca/pub/mpeg/
+WRKSRC= ${WRKDIR}/mpeg_lib
+
+pre-install:
+ @mkdir -p ${PREFIX}/bin ${PREFIX}/lib ${PREFIX}/include
+ @mkdir -p ${PREFIX}/man/man1 ${PREFIX}/man/man3
+
+.include <bsd.port.mk>
diff --git a/graphics/mpeg-lib/files/patch-aa b/graphics/mpeg-lib/files/patch-aa
new file mode 100644
index 000000000000..5c50a948b9f7
--- /dev/null
+++ b/graphics/mpeg-lib/files/patch-aa
@@ -0,0 +1,121 @@
+*** Makefile.orig Wed Nov 16 13:25:19 1994
+--- Makefile Wed Nov 16 13:46:35 1994
+***************
+*** 33,42 ****
+ #
+
+ # SGI C Flags
+! CFLAGS = -O2 -D__STDC__ -DFULL_COLOR_ONLY
+
+ # GCC flags
+! #CFLAGS = -O2 -DFULL_COLOR_ONLY
+
+ # Note that the rest of these flags are inherited from the original
+ # Berkeley player's Makefile; I have no idea if they'll work on these
+--- 33,42 ----
+ #
+
+ # SGI C Flags
+! # CFLAGS = -O2 -D__STDC__ -DFULL_COLOR_ONLY
+
+ # GCC flags
+! CFLAGS = -O2 -fpic -D_HAVE_PARAM_H # -DFULL_COLOR_ONLY
+
+ # Note that the rest of these flags are inherited from the original
+ # Berkeley player's Makefile; I have no idea if they'll work on these
+***************
+*** 72,78 ****
+ # Step 3:
+ # Set DEST to pathname of final destination of library...
+ #
+! DEST = .
+
+ #
+ # Step 4:
+--- 72,78 ----
+ # Step 3:
+ # Set DEST to pathname of final destination of library...
+ #
+! DEST = ${PREFIX}/lib
+
+ #
+ # Step 4:
+***************
+*** 89,95 ****
+ DITHER_SRC = fs2.c fs2fast.c fs4.c hybrid.c hybriderr.c 2x2.c gray.c \
+ mono.c ordered.c ordered2.c mb_ordered.c
+
+! SRC = $(DECODER_SRC) # $(DITHER_SRC)
+
+
+ #
+--- 89,95 ----
+ DITHER_SRC = fs2.c fs2fast.c fs4.c hybrid.c hybriderr.c 2x2.c gray.c \
+ mono.c ordered.c ordered2.c mb_ordered.c
+
+! SRC = $(DECODER_SRC) $(DITHER_SRC)
+
+
+ #
+***************
+*** 98,125 ****
+ HDRS = util.h video.h decoders.h dither.h fs2.h fs4.h \
+ proto.h globals.h mpeg.h
+
+! INSTALL = /etc/install
+ SHELL = /bin/sh
+ MAKEFILE = Makefile
+
+ OBJ = $(SRC:.c=.o)
+
+! LIBRARY = libmpeg.a
+
+ # Targets...
+
+! all: $(LIBRARY)
+
+! $(LIBRARY): $(OBJ)
+! $(AR) $(ARFLAGS) $(LIBRARY) $(OBJ)
+! $(RANLIB) $(LIBRARY)
+!
+! clean:; rm -f *.o $(LIBRARY) core
+!
+! install: $(LIBRARY)
+! @echo Installing $(LIBRARY) in $(DEST)
+! @if [ $(DEST) != . ]; then \
+! (rm -f $(DEST)/$(LIBRARY); $(INSTALL) -f $(DEST) $(LIBRARY)); fi
+
+ # easympeg is a short 'n simple MPEG player that requires the SGI Graphics
+ # LIbrary; this won't work on non-SGI platforms
+--- 98,128 ----
+ HDRS = util.h video.h decoders.h dither.h fs2.h fs4.h \
+ proto.h globals.h mpeg.h
+
+! INSTALL = install
+ SHELL = /bin/sh
+ MAKEFILE = Makefile
+
+ OBJ = $(SRC:.c=.o)
+
+! LIBRARY = libmpeg.a libmpeg.so.1.1
+
+ # Targets...
+
+! all: $(LIBRARY)
+
+! libmpeg.a: $(OBJ)
+! $(AR) $(ARFLAGS) libmpeg.a $(OBJ)
+! $(RANLIB) libmpeg.a
+!
+! libmpeg.so.1.1: $(OBJ)
+! ld -Bshareable -o libmpeg.so.1.1 $(OBJ)
+!
+! clean: rm -f *.o $(LIBRARY) core
+!
+! install: $(LIBRARY)
+! @echo Installing $(LIBRARY) in $(DEST)
+! $(INSTALL) $(LIBRARY) $(DEST)
+! $(INSTALL) mpeg.h ${PREFIX}/include
+
+ # easympeg is a short 'n simple MPEG player that requires the SGI Graphics
+ # LIbrary; this won't work on non-SGI platforms
diff --git a/graphics/mpeg-lib/files/patch-ab b/graphics/mpeg-lib/files/patch-ab
new file mode 100644
index 000000000000..8ec1acae84de
--- /dev/null
+++ b/graphics/mpeg-lib/files/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 <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. */
+
diff --git a/graphics/mpeg-lib/pkg-comment b/graphics/mpeg-lib/pkg-comment
new file mode 100644
index 000000000000..461f402ac281
--- /dev/null
+++ b/graphics/mpeg-lib/pkg-comment
@@ -0,0 +1 @@
+MPEG Library - 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 000000000000..7c6d4e25b07b
--- /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 000000000000..88ea71bb4a94
--- /dev/null
+++ b/graphics/mpeg-lib/pkg-plist
@@ -0,0 +1,4 @@
+@cwd /usr/local
+lib/libmpeg.a
+lib/libmpeg.so.1.1
+include/mpeg.h