aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-10-12 07:07:23 +0800
committerpav <pav@FreeBSD.org>2004-10-12 07:07:23 +0800
commit5b4c0a7d15c854c948db7f628787d459729caa46 (patch)
treeaaa42fec0f5e28fed37ba9fbf35b6b32d3a5fdbf /multimedia
parent4bfe1ba01951ae66110fbad1014ee4f130c48700 (diff)
downloadfreebsd-ports-gnome-5b4c0a7d15c854c948db7f628787d459729caa46.tar.gz
freebsd-ports-gnome-5b4c0a7d15c854c948db7f628787d459729caa46.tar.zst
freebsd-ports-gnome-5b4c0a7d15c854c948db7f628787d459729caa46.zip
- Add knob for PAL support [1]
- Use DOCSDIR PR: ports/72064 [1] Submitted by: Michael Johnson <ahze@ahze.net>
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/dv2jpg/Makefile16
-rw-r--r--multimedia/dv2jpg/files/patch-makefile12
-rw-r--r--multimedia/dv2jpg/pkg-plist6
3 files changed, 26 insertions, 8 deletions
diff --git a/multimedia/dv2jpg/Makefile b/multimedia/dv2jpg/Makefile
index e9a159125216..f0bf3d1e4780 100644
--- a/multimedia/dv2jpg/Makefile
+++ b/multimedia/dv2jpg/Makefile
@@ -18,11 +18,27 @@ COMMENT= Convert Type-2 DV codec-encoded AVI streams to mjpeg-encoded AVI
LIB_DEPENDS= dv.4:${PORTSDIR}/multimedia/libdv
USE_GNOME= gdkpixbuf
+USE_REINPLACE= yes
MAKEFILE= makefile
+.if defined(WITH_PAL_VIDEO)
+VID_FORMAT= PAL
+.else
+VID_FORMAT= NTSC
+.endif
+
+pre-everything::
+ @${ECHO_MSG} "===> The default video format is NTSC"
+ @${ECHO_MSG} "===> You can change this to PAL by defining"
+ @${ECHO_MSG} "===> WITH_PAL_VIDEO"
+
post-extract:
${RM} ${WRKSRC}/avijoin ${WRKSRC}/dv2jpg ${WRKSRC}/*.o
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%VID_FORMAT%%|${VID_FORMAT}|' \
+ ${WRKSRC}/${MAKEFILE}
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/avijoin ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/dv2jpg ${PREFIX}/bin/
diff --git a/multimedia/dv2jpg/files/patch-makefile b/multimedia/dv2jpg/files/patch-makefile
index 0f7032152835..0ad0bffd902d 100644
--- a/multimedia/dv2jpg/files/patch-makefile
+++ b/multimedia/dv2jpg/files/patch-makefile
@@ -1,6 +1,6 @@
---- makefile.orig Sun Jun 24 11:04:47 2001
-+++ makefile Tue May 6 22:16:26 2003
-@@ -1,6 +1,6 @@
+--- makefile.orig Sat Jun 23 22:04:47 2001
++++ makefile Fri Sep 24 12:05:35 2004
+@@ -1,27 +1,27 @@
-INC=-I/opt/gdk-pixbuf/lib -I/usr/include -I/usr/include/libdv
-LIBS=-ljpeg -lm -lgdk_pixbuf /usr/lib/libdv.a
@@ -8,8 +8,10 @@
+LIBS=-ljpeg -lm -ldv `${GDK_PIXBUF_CONFIG} --libs` -L${LOCALBASE}/lib
# what type of video do you want?
- VIDEO=NTSC
-@@ -9,19 +9,19 @@
+-VIDEO=NTSC
++VIDEO=%%VID_FORMAT%%
+ # VIDEO=PAL
+
all: dv2jpg avijoin
dv2jpg: dv2jpg.o avilib.o dvavilib.o
diff --git a/multimedia/dv2jpg/pkg-plist b/multimedia/dv2jpg/pkg-plist
index d609aef0c7c1..6e03ff4c6493 100644
--- a/multimedia/dv2jpg/pkg-plist
+++ b/multimedia/dv2jpg/pkg-plist
@@ -1,5 +1,5 @@
bin/avijoin
bin/dv2jpg
-%%PORTDOCS%%share/doc/dv2jpg/README.avilib
-%%PORTDOCS%%share/doc/dv2jpg/README.dv2jpg.html
-%%PORTDOCS%%@dirrm share/doc/dv2jpg
+%%PORTDOCS%%%%DOCSDIR%%/README.avilib
+%%PORTDOCS%%%%DOCSDIR%%/README.dv2jpg.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%