SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
28
graphics/mpeg_encode/Makefile
Normal file
28
graphics/mpeg_encode/Makefile
Normal file
|
@ -0,0 +1,28 @@
|
|||
COMMENT= UCB's MPEG-I video stream encoder
|
||||
|
||||
DISTNAME= mpeg_encode-1.5b-src
|
||||
PKGNAME= ${DISTNAME:S/-src//}
|
||||
REVISION= 1
|
||||
CATEGORIES= graphics
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE= Yes
|
||||
WANTLIB= c m jpeg>=62
|
||||
|
||||
MASTER_SITES= http://bmrc.berkeley.edu/ftp/pub/multimedia/mpeg/encode/
|
||||
|
||||
LIB_DEPENDS= graphics/jpeg
|
||||
|
||||
WRKDIST= ${WRKDIR}/mpeg_encode
|
||||
|
||||
TEST_TARGET= test_all
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/mpeg_encode ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/docs/mpeg_encode.1 ${PREFIX}/man/man1
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mpeg_encode
|
||||
.for i in users-guide.ps template.param
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/${i} ${PREFIX}/share/doc/mpeg_encode
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
2
graphics/mpeg_encode/distinfo
Normal file
2
graphics/mpeg_encode/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (mpeg_encode-1.5b-src.tar.gz) = 3Y20L4g5O7D/DXON76JxcpqKqbjeJO0TvGvScBTy2vU=
|
||||
SIZE (mpeg_encode-1.5b-src.tar.gz) = 2028724
|
36
graphics/mpeg_encode/patches/patch-Makefile
Normal file
36
graphics/mpeg_encode/patches/patch-Makefile
Normal file
|
@ -0,0 +1,36 @@
|
|||
--- Makefile.orig Wed Aug 16 18:16:56 1995
|
||||
+++ Makefile Sun Jun 10 01:36:36 2001
|
||||
@@ -36,9 +36,12 @@ PROFLAG =
|
||||
##############
|
||||
# JPEG STUFF #
|
||||
##############
|
||||
-JPEG_LIB = jpeg/libjpeg.a
|
||||
-JPEG_DIR = -Ijpeg
|
||||
-JPEG_LIB_DIR = -Ljpeg
|
||||
+#JPEG_LIB = jpeg/libjpeg.a
|
||||
+#JPEG_DIR = -Ijpeg
|
||||
+#JPEG_LIB_DIR = -Ljpeg
|
||||
+JPEG_LIB = -ljpeg
|
||||
+JPEG_DIR = -I${LOCALBASE}/include
|
||||
+JPEG_LIB_DIR = -L${LOCALBASE}/lib
|
||||
MP_JPEG_OBJS = jpeg.o
|
||||
MP_JPEG_SRCS = jpeg.c
|
||||
|
||||
@@ -68,7 +71,7 @@ LIBDIRS = $(JPEG_LIB_DIR)
|
||||
#####################################################################
|
||||
# COMPILER # specify compiler; should be ANSI-compliant if possible #
|
||||
#####################################################################
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
|
||||
################################################
|
||||
# MAKE # command to use for the "make" command #
|
||||
@@ -96,7 +99,7 @@ MAKE = make
|
||||
#
|
||||
|
||||
# gcc
|
||||
-CFLAGS = $(INCLUDEDIR) $(DEBUGFLAG) -Wall -Wmissing-prototypes $(PROFLAG) $(PROTOFLAG)
|
||||
+CFLAGS += $(INCLUDEDIR) $(PROFLAG) $(PROTOFLAG)
|
||||
|
||||
# gcc-strict
|
||||
#CFLAGS = $(INCLUDEDIR) $(DEBUGFLAG) -pedantic -Wall -Waggregate-return -Wtraditional -Wshadow -Wpointer-arith -Wno-parentheses -Wwrite-strings -Wconversion -Wcast-qual -Wcast-align -Wnested-externs -Wuninitialized -Wmissing-prototypes $(PROFLAG) $(PROTOFLAG)
|
12
graphics/mpeg_encode/patches/patch-bframe_c
Normal file
12
graphics/mpeg_encode/patches/patch-bframe_c
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- bframe.c.orig Sun Jun 10 01:34:25 2001
|
||||
+++ bframe.c Sun Jun 10 01:35:03 2001
|
||||
@@ -543,7 +543,9 @@ GenBFrame(bb, curr, prev, next)
|
||||
BlockToData(curr->decoded_cr, dec[5], y>>1, x>>1);
|
||||
}
|
||||
} else if (dct_data[y][x].useMotion == SKIP) {
|
||||
+#ifdef BUGGY_CODE
|
||||
skip_block:
|
||||
+#endif
|
||||
numSkipped++;
|
||||
mbAddrInc++;
|
||||
|
11
graphics/mpeg_encode/patches/patch-bitio_c
Normal file
11
graphics/mpeg_encode/patches/patch-bitio_c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- bitio.c.orig Sun Jun 10 01:26:59 2001
|
||||
+++ bitio.c Sun Jun 10 01:28:08 2001
|
||||
@@ -80,6 +80,8 @@
|
||||
*==============*/
|
||||
|
||||
#include <assert.h>
|
||||
+#include <time.h>
|
||||
+#include <unistd.h>
|
||||
#include "all.h"
|
||||
#include "byteorder.h"
|
||||
#include "bitio.h"
|
20
graphics/mpeg_encode/patches/patch-combine_c
Normal file
20
graphics/mpeg_encode/patches/patch-combine_c
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- combine.c.orig Mon Aug 7 23:42:51 1995
|
||||
+++ combine.c Tue Oct 13 00:41:51 2009
|
||||
@@ -133,7 +133,7 @@ GOPStoMPEG(numGOPS, outputFileName, outputFilePtr)
|
||||
BitBucket *bb;
|
||||
char fileName[1024];
|
||||
char inputFileName[1024];
|
||||
- FILE *inputFile;
|
||||
+ FILE *inputFile=NULL;
|
||||
int q;
|
||||
|
||||
{
|
||||
@@ -235,7 +235,7 @@ FramesToMPEG(numFrames, outputFileName, outputFile, pa
|
||||
BitBucket *bb;
|
||||
char fileName[1024];
|
||||
char inputFileName[1024];
|
||||
- FILE *inputFile;
|
||||
+ FILE *inputFile=NULL;
|
||||
int pastRefNum = -1;
|
||||
int futureRefNum = -1;
|
||||
int q;
|
12
graphics/mpeg_encode/patches/patch-docs_mpeg_encode_1
Normal file
12
graphics/mpeg_encode/patches/patch-docs_mpeg_encode_1
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- docs/mpeg_encode.1.orig Wed Mar 29 23:15:09 1995
|
||||
+++ docs/mpeg_encode.1 Sat Apr 4 10:10:52 2015
|
||||
@@ -109,8 +109,7 @@ INPUT_DIR <directory>
|
||||
.RS
|
||||
all input files must reside in this directory. If you want to refer to the
|
||||
current directory, use '.' (an empty INPUT_DIR value would refer to the root
|
||||
-directory). If input files will be coming in from standard input, use
|
||||
-'stdin'.
|
||||
+directory). If input files will be coming in from standard input, use 'stdin'.
|
||||
.RE
|
||||
.HP
|
||||
INPUT
|
15
graphics/mpeg_encode/patches/patch-headers_libpnmrw_h
Normal file
15
graphics/mpeg_encode/patches/patch-headers_libpnmrw_h
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- headers/libpnmrw.h.orig Wed Aug 9 17:17:41 1995
|
||||
+++ headers/libpnmrw.h Sat May 22 16:16:24 2010
|
||||
@@ -19,10 +19,8 @@
|
||||
** malloc.h at all. A sad situation. If you have compilation problems
|
||||
** that point here, feel free to tweak or remove these declarations.
|
||||
*/
|
||||
-#include <malloc.h>
|
||||
-#if !defined(sco) && !defined(sgi) && !defined(IRIX)
|
||||
-extern char* malloc();
|
||||
-#endif
|
||||
+#include <stdlib.h>
|
||||
+
|
||||
/* End of configurable definitions. */
|
||||
|
||||
|
15
graphics/mpeg_encode/patches/patch-jpeg_Makefile
Normal file
15
graphics/mpeg_encode/patches/patch-jpeg_Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- jpeg/Makefile.orig Fri Aug 4 19:27:00 1995
|
||||
+++ jpeg/Makefile Sun Jun 10 01:30:05 2001
|
||||
@@ -21,10 +21,10 @@ manprefix =
|
||||
manext = 1
|
||||
|
||||
# The name of your C compiler:
|
||||
-CC= gcc
|
||||
+CC?= gcc
|
||||
|
||||
# You may need to adjust these cc options:
|
||||
-CFLAGS= -O -I$(srcdir)
|
||||
+CFLAGS+= -I$(srcdir)
|
||||
# Generally, we recommend defining any configuration symbols in jconfig.h,
|
||||
# NOT via -D switches here.
|
||||
# However, any special defines for ansi2knr.c may be included here:
|
31
graphics/mpeg_encode/patches/patch-jpeg_c
Normal file
31
graphics/mpeg_encode/patches/patch-jpeg_c
Normal file
|
@ -0,0 +1,31 @@
|
|||
--- jpeg.c.orig Sat Aug 5 01:35:07 1995
|
||||
+++ jpeg.c Tue Oct 13 00:42:55 2009
|
||||
@@ -65,6 +65,7 @@
|
||||
*==============*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <unistd.h>
|
||||
#include "all.h"
|
||||
#include "mtypes.h"
|
||||
#include "frames.h"
|
||||
@@ -77,7 +78,7 @@
|
||||
|
||||
/* make it happier.... */
|
||||
#undef DCTSIZE2
|
||||
-#include "jpeg/jpeglib.h"
|
||||
+#include "jpeglib.h"
|
||||
|
||||
|
||||
#define HEADER_SIZE 607 /*JFIF header size used on output images*/
|
||||
@@ -514,7 +515,11 @@ ReadJPEG(mf, fp)
|
||||
#ifdef JPEG4
|
||||
buffer_height = 8; /* could be 2, 4,8 rows high */
|
||||
#else
|
||||
+#if JPEG_LIB_VERSION < 70
|
||||
buffer_height = cinfo.max_v_samp_factor * cinfo.min_DCT_scaled_size;
|
||||
+#else
|
||||
+ buffer_height = cinfo.max_v_samp_factor * cinfo.min_DCT_v_scaled_size;
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
for(cp=0,compptr = cinfo.comp_info;cp<cinfo.num_components;
|
30
graphics/mpeg_encode/patches/patch-libpnmrw_c
Normal file
30
graphics/mpeg_encode/patches/patch-libpnmrw_c
Normal file
|
@ -0,0 +1,30 @@
|
|||
--- libpnmrw.c.orig Thu Aug 17 00:24:26 1995
|
||||
+++ libpnmrw.c Wed Mar 16 21:10:23 2016
|
||||
@@ -27,6 +27,7 @@
|
||||
/* #define MSDOS */
|
||||
#endif
|
||||
|
||||
+#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include "libpnmrw.h"
|
||||
|
||||
@@ -126,8 +127,9 @@ static void
|
||||
pm_perror( reason )
|
||||
char* reason;
|
||||
{
|
||||
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
|
||||
extern char* sys_errlist[];
|
||||
- extern int errno;
|
||||
+#endif
|
||||
char* e;
|
||||
|
||||
e = sys_errlist[errno];
|
||||
@@ -361,7 +363,7 @@ bit* bitrow;
|
||||
int cols, format;
|
||||
{
|
||||
register int col, bitshift, b;
|
||||
- register int item;
|
||||
+ register int item = 0;
|
||||
register bit* bP;
|
||||
|
||||
switch ( format )
|
11
graphics/mpeg_encode/patches/patch-mfwddct_c
Normal file
11
graphics/mpeg_encode/patches/patch-mfwddct_c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- mfwddct.c.orig Sun Jun 10 01:24:55 2001
|
||||
+++ mfwddct.c Sun Jun 10 01:28:21 2001
|
||||
@@ -371,7 +371,7 @@ Block block, dest;
|
||||
s += trans_coef[i][k] * tmp[8*k+j];
|
||||
|
||||
if (collect_quant) {
|
||||
- fprintf(collect_quant_fp, "%d %lf\n", 8*i+j, s);
|
||||
+ fprintf(collect_quant_fp, "%d %f\n", 8*i+j, s);
|
||||
}
|
||||
if (DoLaplace) {
|
||||
L1[LaplaceCnum][i*8+j] += s*s;
|
14
graphics/mpeg_encode/patches/patch-opts_c
Normal file
14
graphics/mpeg_encode/patches/patch-opts_c
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- opts.c.orig Tue Aug 15 14:34:09 1995
|
||||
+++ opts.c Sun Jun 10 01:38:32 2001
|
||||
@@ -38,7 +38,11 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "opts.h"
|
||||
+#ifdef __OpenBSD__
|
||||
+#include <stdlib.h>
|
||||
+#else
|
||||
#include <malloc.h>
|
||||
+#endif
|
||||
#include <math.h>
|
||||
|
||||
/*==============*
|
21
graphics/mpeg_encode/pkg/DESCR
Normal file
21
graphics/mpeg_encode/pkg/DESCR
Normal file
|
@ -0,0 +1,21 @@
|
|||
From the README:
|
||||
|
||||
MPEG-1 Video Software Encoder
|
||||
(Version 1.5; February 1, 1995)
|
||||
|
||||
Lawrence A. Rowe, Kevin Gong, Eugene Hung, Ketan Patel, Steve Smoot
|
||||
and Dan Wallach
|
||||
Computer Science Division-EECS, Univ. of Calif. at Berkeley
|
||||
|
||||
This directory contains the freely distributed Berkeley MPEG-1 Video
|
||||
Encoder. The encoder implements the standard described in the ISO/IEC
|
||||
International Standard 11172-2. The code has been compiled and tested
|
||||
on the following platforms:
|
||||
|
||||
DECstation 5000 and Alpha
|
||||
HP PA-RISC (HP/UX 9.X) (i.e., HP 9000/7XX and 9000/3XX)
|
||||
SGI Indigo running IRIX 5.0.1
|
||||
Sun Sparc (SunOS 4.X)
|
||||
|
||||
This is *not* bug-free software. In particular, I've had problems using
|
||||
odd-sized input frames. Other than that, it works OK.
|
5
graphics/mpeg_encode/pkg/PLIST
Normal file
5
graphics/mpeg_encode/pkg/PLIST
Normal file
|
@ -0,0 +1,5 @@
|
|||
@bin bin/mpeg_encode
|
||||
@man man/man1/mpeg_encode.1
|
||||
share/doc/mpeg_encode/
|
||||
share/doc/mpeg_encode/template.param
|
||||
share/doc/mpeg_encode/users-guide.ps
|
Loading…
Add table
Add a link
Reference in a new issue