From e638b9b3070aabe2aac00ac4897e75a99d159b9a Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Tue, 20 Jan 2004 04:45:05 +0000 Subject: Replex was created to remultiplex transport stream (TS) data taken from a DVB source. The result is supposed to be a program stream (PS) that can be used to be burned to a DVD (with dvdauthor). Replex can also remultiplex other PSs and AVIs with MPEG2 content. WWW: http://www.metzlerbros.org/dvb/ --- multimedia/replex/Makefile | 41 ++++++++++++++++++++++++++++++++++ multimedia/replex/distinfo | 1 + multimedia/replex/files/patch-Makefile | 29 ++++++++++++++++++++++++ multimedia/replex/files/patch-pes.c | 10 +++++++++ multimedia/replex/pkg-descr | 6 +++++ multimedia/replex/pkg-plist | 6 +++++ 6 files changed, 93 insertions(+) create mode 100644 multimedia/replex/Makefile create mode 100644 multimedia/replex/distinfo create mode 100644 multimedia/replex/files/patch-Makefile create mode 100644 multimedia/replex/files/patch-pes.c create mode 100644 multimedia/replex/pkg-descr create mode 100644 multimedia/replex/pkg-plist (limited to 'multimedia/replex') diff --git a/multimedia/replex/Makefile b/multimedia/replex/Makefile new file mode 100644 index 000000000000..f044c0df8ba7 --- /dev/null +++ b/multimedia/replex/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: replex +# Date created: 20 Jan 2004 +# Whom: dirk.meyer@dinoex.sub.org +# +# $FreeBSD$ +# + +PORTNAME= replex +PORTVERSION= 0.0.7 +CATEGORIES= multimedia +MASTER_SITES= http://www.metzlerbros.org/dvb/ + +MAINTAINER= dinoex@FreeBSD.org +COMMENT= Remultiplex an MPEG2 TS into a PS for DVD + +USE_GMAKE= yes +USE_REINPLACE= yes +USE_GETOPT_LONG= yes +CFLAGS+= -I${LOCALBASE}/include -DO_LARGEFILE=0 +MAKE_ENV+= LDFLAGS="${LDFLAGS}" +TOFIX= avi.h element.h mpg_common.h pes.h replex.h ringbuffer.h \ + replex.c ts.c + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libreplex.a ${PREFIX}/lib/ + ${INSTALL_PROGRAM} ${WRKSRC}/replex ${PREFIX}/bin/ +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}/ +.endif + +do-configure: +.if !exists(/usr/include/stdint.h) +.for i in ${TOFIX} + @${REINPLACE_CMD} -e 's|stdint.h|sys/types.h|g' ${WRKSRC}/${i} +.endfor +.endif + +.include diff --git a/multimedia/replex/distinfo b/multimedia/replex/distinfo new file mode 100644 index 000000000000..8474f45255ed --- /dev/null +++ b/multimedia/replex/distinfo @@ -0,0 +1 @@ +MD5 (replex-0.0.7.tar.gz) = 2600aba2bb40b391d6fc27d42ccef36f diff --git a/multimedia/replex/files/patch-Makefile b/multimedia/replex/files/patch-Makefile new file mode 100644 index 000000000000..015b722c4a5e --- /dev/null +++ b/multimedia/replex/files/patch-Makefile @@ -0,0 +1,29 @@ +--- Makefile.orig Sun Dec 28 17:57:19 2003 ++++ Makefile Tue Jan 20 05:17:32 2004 +@@ -2,7 +2,7 @@ + DISTNAME = replex-$(VERSION) + TARNAME = $(DISTNAME).tar.gz + INCS = -I.. +-CFLAGS = -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE ++CFLAGS += -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE + LIBS = -L. + MFLAG = -M + OBJS = element.o pes.o mpg_common.o ts.o ringbuffer.o avi.o multiplex.o +@@ -26,7 +26,7 @@ + ar -rcs libreplex.a $(OBJS) + + replex: libreplex.a replex.o +- $(CC) -o replex replex.o -L. -lreplex ++ $(CC) $(LDFLAGS) -o replex replex.o -L. -lreplex + + dist: $(SRC) $(HEADERS) Makefile + mkdir $(DISTNAME) +@@ -47,7 +47,7 @@ + + + .depend: +- $(CC) $(DEFINES) $(MFLAG) $(SRC) $(CSRC) $(CPPSRC) $(INCS)> .depend ++ $(CC) $(CFLAGS) $(DEFINES) $(MFLAG) $(SRC) $(CSRC) $(CPPSRC) $(INCS)> .depend + + + diff --git a/multimedia/replex/files/patch-pes.c b/multimedia/replex/files/patch-pes.c new file mode 100644 index 000000000000..4c95f268a38b --- /dev/null +++ b/multimedia/replex/files/patch-pes.c @@ -0,0 +1,10 @@ +--- pes.c.orig Sun Dec 28 17:57:19 2003 ++++ pes.c Tue Jan 20 05:15:09 2004 +@@ -26,6 +26,7 @@ + + #include + #include ++#include + #include + #include + diff --git a/multimedia/replex/pkg-descr b/multimedia/replex/pkg-descr new file mode 100644 index 000000000000..a786185bafd5 --- /dev/null +++ b/multimedia/replex/pkg-descr @@ -0,0 +1,6 @@ +Replex was created to remultiplex transport stream (TS) data taken from a DVB +source. The result is supposed to be a program stream (PS) that can be +used to be burned to a DVD (with dvdauthor). +Replex can also remultiplex other PSs and AVIs with MPEG2 content. + +WWW: http://www.metzlerbros.org/dvb/ diff --git a/multimedia/replex/pkg-plist b/multimedia/replex/pkg-plist new file mode 100644 index 000000000000..9030576877ac --- /dev/null +++ b/multimedia/replex/pkg-plist @@ -0,0 +1,6 @@ +bin/replex +lib/libreplex.a +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit v1.2.3