diff options
author | arved <arved@FreeBSD.org> | 2003-01-03 21:13:33 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2003-01-03 21:13:33 +0800 |
commit | 961c406f7285e6b741eabcf409d0639aaa65e8ab (patch) | |
tree | e2bce78ecb1b4f1a410ba443f5716c9a0279e22e | |
parent | 41de90c98e96c918f45b332bb549d799708fdbd2 (diff) | |
download | freebsd-ports-graphics-961c406f7285e6b741eabcf409d0639aaa65e8ab.tar.gz freebsd-ports-graphics-961c406f7285e6b741eabcf409d0639aaa65e8ab.tar.zst freebsd-ports-graphics-961c406f7285e6b741eabcf409d0639aaa65e8ab.zip |
Update to 0.9
PR: 46496
Submitted by: KATO Tsuguru <tkato@prontomail.com>
-rw-r--r-- | graphics/tosvcd/Makefile | 18 | ||||
-rw-r--r-- | graphics/tosvcd/distinfo | 2 | ||||
-rw-r--r-- | graphics/tosvcd/files/patch-decode.c | 16 | ||||
-rw-r--r-- | graphics/tosvcd/files/patch-makefile | 40 | ||||
-rw-r--r-- | graphics/tosvcd/files/patch-tosvcd.c | 17 | ||||
-rw-r--r-- | multimedia/tosvcd/Makefile | 18 | ||||
-rw-r--r-- | multimedia/tosvcd/distinfo | 2 | ||||
-rw-r--r-- | multimedia/tosvcd/files/patch-decode.c | 16 | ||||
-rw-r--r-- | multimedia/tosvcd/files/patch-makefile | 40 | ||||
-rw-r--r-- | multimedia/tosvcd/files/patch-tosvcd.c | 17 |
10 files changed, 112 insertions, 74 deletions
diff --git a/graphics/tosvcd/Makefile b/graphics/tosvcd/Makefile index 9834157c101..1357f3241d4 100644 --- a/graphics/tosvcd/Makefile +++ b/graphics/tosvcd/Makefile @@ -7,7 +7,7 @@ # PORTNAME= tosvcd -PORTVERSION= 0.7 +PORTVERSION= 0.9 CATEGORIES= graphics MASTER_SITES= http://muse.seh.de/tosvcd/ @@ -17,18 +17,10 @@ RUN_DEPNDS= mpeg2enc:${PORTSDIR}/multimedia/mjpegtools \ vcdimager:${PORTSDIR}/graphics/vcdimager USE_BZIP2= yes -USE_REINPLACE= yes -MAKEFILE= makefile USE_GMAKE= yes - -post-patch: - @${REINPLACE_CMD} -e "s|^CFLAGS =|CFLAGS+=|" \ - -e "s|^CFLAGS +=|#CFLAGS +=|g" \ - -e "s|-lpthread|${PTHREAD_LIBS}|g" \ - ${WRKSRC}/${MAKEFILE} - @${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|" ${WRKSRC}/decode.c - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/tosvcd ${PREFIX}/bin +MAKEFILE= makefile +MAKE_ENV= CC="${CXX}" CFLAGS="${CXXFLAGS}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" .include <bsd.port.mk> diff --git a/graphics/tosvcd/distinfo b/graphics/tosvcd/distinfo index 87b0a1b5992..2cb73a19ca8 100644 --- a/graphics/tosvcd/distinfo +++ b/graphics/tosvcd/distinfo @@ -1 +1 @@ -MD5 (tosvcd-0.7.tar.bz2) = d821ed70eed67dae5fbbc041217f327f +MD5 (tosvcd-0.9.tar.bz2) = 696c55f668e2019ffa87d9e11902451a diff --git a/graphics/tosvcd/files/patch-decode.c b/graphics/tosvcd/files/patch-decode.c index 9c13da9dfde..d7d17986f22 100644 --- a/graphics/tosvcd/files/patch-decode.c +++ b/graphics/tosvcd/files/patch-decode.c @@ -1,6 +1,14 @@ ---- decode.c.orig Fri Oct 25 16:01:13 2002 -+++ decode.c Fri Oct 25 16:01:31 2002 -@@ -21,7 +21,7 @@ +--- decode.c.orig Wed Dec 4 22:40:42 2002 ++++ decode.c Sat Dec 14 07:25:35 2002 +@@ -8,7 +8,6 @@ + #include "mm_accel.h" + #include "attributes.h" + #include "mmx.h" +-#include "malloc.h" + + extern FILE* log; + +@@ -21,7 +20,7 @@ Mpeg2dec::Mpeg2dec(uint32_t mm_accel) { config.flags = mm_accel; @@ -9,7 +17,7 @@ memset(picture, 0, sizeof (picture_t)); frames = 0; frame_ptr[0] = 0; -@@ -66,7 +66,7 @@ +@@ -63,7 +62,7 @@ int size = width() * height() / 4; if (frames) free(frames); diff --git a/graphics/tosvcd/files/patch-makefile b/graphics/tosvcd/files/patch-makefile index 6c4b3a971be..6adf8cd3506 100644 --- a/graphics/tosvcd/files/patch-makefile +++ b/graphics/tosvcd/files/patch-makefile @@ -1,11 +1,39 @@ ---- makefile.orig Fri Oct 25 16:04:05 2002 -+++ makefile Fri Oct 25 16:04:25 2002 -@@ -21,7 +21,7 @@ +--- makefile.orig Wed Dec 4 22:40:42 2002 ++++ makefile Sat Dec 14 07:27:00 2002 +@@ -1,15 +1,15 @@ + # use intel compiler 0.6.x + INTEL = no + +-CFLAGS = -DVERSION="\"0.9\"" ++CFLAGS += -DVERSION="\"0.9\"" + + ifeq ($(INTEL),yes) + #CC = icc -I/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -Kc++ -O -tpp6 -xiMK + CC = icc -Kc++ -O -tpp6 -xiMK + #CC = icc + else +-CC = g++ +-CFLAGS += -g -Wall -O3 -fno-exceptions -fno-rtti ++CC ?= g++ ++CFLAGS += -fno-exceptions -fno-rtti ${PTHREAD_CFLAGS} + endif + + SRC = tosvcd decode header idct idct_mmx motion_comp +@@ -20,15 +20,13 @@ + all: tosvcd tosvcd: $(OBJ) - $(CC) -o tosvcd $(OBJ) -lpthread +- $(CC) -o tosvcd $(OBJ) -lpthread - su -c "cp tosvcd /usr/bin" -+# su -c "cp tosvcd /usr/bin" ++ $(CC) -o tosvcd $(OBJ) ${PTHREAD_LIBS} t: - ./tosvcd -o reeperbahn /video0/Auf_der_Reeperbahn_nachts_um_halb_eins/2002-03-09.15:21.50.50.rec + ./tosvcd -o mafia /home/ws/videos/Mafia/2002-10-21.00:33.50.50.rec + + install:: +- su -c "mv /usr/bin/tosvcd /usr/bin/tosvcd.old" +- su -c "cp tosvcd /usr/bin" ++ ${BSD_INSTALL_PROGRAM} tosvcd ${PREFIX}/bin + + clean: + rm *.o diff --git a/graphics/tosvcd/files/patch-tosvcd.c b/graphics/tosvcd/files/patch-tosvcd.c index bb1c44b9f66..26d7214618c 100644 --- a/graphics/tosvcd/files/patch-tosvcd.c +++ b/graphics/tosvcd/files/patch-tosvcd.c @@ -1,6 +1,6 @@ ---- tosvcd.c.orig Fri Sep 13 10:08:52 2002 -+++ tosvcd.c Mon Nov 18 16:56:27 2002 -@@ -24,14 +24,12 @@ +--- tosvcd.c.orig Mon Dec 9 18:24:57 2002 ++++ tosvcd.c Sat Dec 14 07:21:57 2002 +@@ -20,14 +20,12 @@ #include <fcntl.h> #include <errno.h> #include <string.h> @@ -15,13 +15,4 @@ +#include <sys/wait.h> #include <glob.h> - -@@ -1322,7 +1320,7 @@ - // catch all signals - //--------------------------------------------------- - #if 1 -- for (int i = 0; i < _NSIG; ++i) { -+ for (int i = 0; i < NSIG; ++i) { - if (i != SIGABRT) - signal(i, catchSignal); - } + #include "mm_accel.h" diff --git a/multimedia/tosvcd/Makefile b/multimedia/tosvcd/Makefile index 9834157c101..1357f3241d4 100644 --- a/multimedia/tosvcd/Makefile +++ b/multimedia/tosvcd/Makefile @@ -7,7 +7,7 @@ # PORTNAME= tosvcd -PORTVERSION= 0.7 +PORTVERSION= 0.9 CATEGORIES= graphics MASTER_SITES= http://muse.seh.de/tosvcd/ @@ -17,18 +17,10 @@ RUN_DEPNDS= mpeg2enc:${PORTSDIR}/multimedia/mjpegtools \ vcdimager:${PORTSDIR}/graphics/vcdimager USE_BZIP2= yes -USE_REINPLACE= yes -MAKEFILE= makefile USE_GMAKE= yes - -post-patch: - @${REINPLACE_CMD} -e "s|^CFLAGS =|CFLAGS+=|" \ - -e "s|^CFLAGS +=|#CFLAGS +=|g" \ - -e "s|-lpthread|${PTHREAD_LIBS}|g" \ - ${WRKSRC}/${MAKEFILE} - @${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|" ${WRKSRC}/decode.c - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/tosvcd ${PREFIX}/bin +MAKEFILE= makefile +MAKE_ENV= CC="${CXX}" CFLAGS="${CXXFLAGS}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" .include <bsd.port.mk> diff --git a/multimedia/tosvcd/distinfo b/multimedia/tosvcd/distinfo index 87b0a1b5992..2cb73a19ca8 100644 --- a/multimedia/tosvcd/distinfo +++ b/multimedia/tosvcd/distinfo @@ -1 +1 @@ -MD5 (tosvcd-0.7.tar.bz2) = d821ed70eed67dae5fbbc041217f327f +MD5 (tosvcd-0.9.tar.bz2) = 696c55f668e2019ffa87d9e11902451a diff --git a/multimedia/tosvcd/files/patch-decode.c b/multimedia/tosvcd/files/patch-decode.c index 9c13da9dfde..d7d17986f22 100644 --- a/multimedia/tosvcd/files/patch-decode.c +++ b/multimedia/tosvcd/files/patch-decode.c @@ -1,6 +1,14 @@ ---- decode.c.orig Fri Oct 25 16:01:13 2002 -+++ decode.c Fri Oct 25 16:01:31 2002 -@@ -21,7 +21,7 @@ +--- decode.c.orig Wed Dec 4 22:40:42 2002 ++++ decode.c Sat Dec 14 07:25:35 2002 +@@ -8,7 +8,6 @@ + #include "mm_accel.h" + #include "attributes.h" + #include "mmx.h" +-#include "malloc.h" + + extern FILE* log; + +@@ -21,7 +20,7 @@ Mpeg2dec::Mpeg2dec(uint32_t mm_accel) { config.flags = mm_accel; @@ -9,7 +17,7 @@ memset(picture, 0, sizeof (picture_t)); frames = 0; frame_ptr[0] = 0; -@@ -66,7 +66,7 @@ +@@ -63,7 +62,7 @@ int size = width() * height() / 4; if (frames) free(frames); diff --git a/multimedia/tosvcd/files/patch-makefile b/multimedia/tosvcd/files/patch-makefile index 6c4b3a971be..6adf8cd3506 100644 --- a/multimedia/tosvcd/files/patch-makefile +++ b/multimedia/tosvcd/files/patch-makefile @@ -1,11 +1,39 @@ ---- makefile.orig Fri Oct 25 16:04:05 2002 -+++ makefile Fri Oct 25 16:04:25 2002 -@@ -21,7 +21,7 @@ +--- makefile.orig Wed Dec 4 22:40:42 2002 ++++ makefile Sat Dec 14 07:27:00 2002 +@@ -1,15 +1,15 @@ + # use intel compiler 0.6.x + INTEL = no + +-CFLAGS = -DVERSION="\"0.9\"" ++CFLAGS += -DVERSION="\"0.9\"" + + ifeq ($(INTEL),yes) + #CC = icc -I/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -Kc++ -O -tpp6 -xiMK + CC = icc -Kc++ -O -tpp6 -xiMK + #CC = icc + else +-CC = g++ +-CFLAGS += -g -Wall -O3 -fno-exceptions -fno-rtti ++CC ?= g++ ++CFLAGS += -fno-exceptions -fno-rtti ${PTHREAD_CFLAGS} + endif + + SRC = tosvcd decode header idct idct_mmx motion_comp +@@ -20,15 +20,13 @@ + all: tosvcd tosvcd: $(OBJ) - $(CC) -o tosvcd $(OBJ) -lpthread +- $(CC) -o tosvcd $(OBJ) -lpthread - su -c "cp tosvcd /usr/bin" -+# su -c "cp tosvcd /usr/bin" ++ $(CC) -o tosvcd $(OBJ) ${PTHREAD_LIBS} t: - ./tosvcd -o reeperbahn /video0/Auf_der_Reeperbahn_nachts_um_halb_eins/2002-03-09.15:21.50.50.rec + ./tosvcd -o mafia /home/ws/videos/Mafia/2002-10-21.00:33.50.50.rec + + install:: +- su -c "mv /usr/bin/tosvcd /usr/bin/tosvcd.old" +- su -c "cp tosvcd /usr/bin" ++ ${BSD_INSTALL_PROGRAM} tosvcd ${PREFIX}/bin + + clean: + rm *.o diff --git a/multimedia/tosvcd/files/patch-tosvcd.c b/multimedia/tosvcd/files/patch-tosvcd.c index bb1c44b9f66..26d7214618c 100644 --- a/multimedia/tosvcd/files/patch-tosvcd.c +++ b/multimedia/tosvcd/files/patch-tosvcd.c @@ -1,6 +1,6 @@ ---- tosvcd.c.orig Fri Sep 13 10:08:52 2002 -+++ tosvcd.c Mon Nov 18 16:56:27 2002 -@@ -24,14 +24,12 @@ +--- tosvcd.c.orig Mon Dec 9 18:24:57 2002 ++++ tosvcd.c Sat Dec 14 07:21:57 2002 +@@ -20,14 +20,12 @@ #include <fcntl.h> #include <errno.h> #include <string.h> @@ -15,13 +15,4 @@ +#include <sys/wait.h> #include <glob.h> - -@@ -1322,7 +1320,7 @@ - // catch all signals - //--------------------------------------------------- - #if 1 -- for (int i = 0; i < _NSIG; ++i) { -+ for (int i = 0; i < NSIG; ++i) { - if (i != SIGABRT) - signal(i, catchSignal); - } + #include "mm_accel.h" |