summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2006-01-05 20:59:46 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2006-01-05 20:59:46 +0000
commit9b7d382ebc09a22fe2c3c3a216667528d4c8654a (patch)
treee5af45bfda41bbcbd4bdf009e9f06814b742f3c4 /multimedia
parentReconnect linux_kdump. (diff)
New port qvamps version 0.20: Dvd rip gui written in qt that uses
vamps and dvdauthor
Notes
Notes: svn path=/head/; revision=152827
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/qvamps/Makefile103
-rw-r--r--multimedia/qvamps/distinfo3
-rw-r--r--multimedia/qvamps/files/patch-Makefile34
-rw-r--r--multimedia/qvamps/files/patch-qvamps19
-rw-r--r--multimedia/qvamps/pkg-descr24
6 files changed, 184 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 6dec60ee1a2c..77a04f77e947 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -155,6 +155,7 @@
SUBDIR += qdvdauthor
SUBDIR += quodlibet
SUBDIR += quark
+ SUBDIR += qvamps
SUBDIR += recmpeg
SUBDIR += replex
SUBDIR += ruby-gst
diff --git a/multimedia/qvamps/Makefile b/multimedia/qvamps/Makefile
new file mode 100644
index 000000000000..6c172b19a6ab
--- /dev/null
+++ b/multimedia/qvamps/Makefile
@@ -0,0 +1,103 @@
+# New ports collection makefile for: qvamps
+# Date created: Thu Jan 5 20:49:59 UTC 2006
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= qvamps
+PORTVERSION= 0.20
+CATEGORIES= multimedia
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
+MASTER_SITE_SUBDIR= vamps
+
+MAINTAINER= lioux@FreeBSD.org
+COMMENT= Dvd rip gui written in qt that uses vamps and dvdauthor
+
+BUILD_DEPENDS= puic:${PORTSDIR}/x11-toolkits/p5-qt \
+ swig:${PORTSDIR}/devel/swig13
+LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread
+RUN_DEPENDS= puic:${PORTSDIR}/x11-toolkits/p5-qt \
+ vamps:${PORTSDIR}/multimedia/vamps
+
+USE_GMAKE= yes
+USE_PERL5= yes
+USE_REINPLACE= yes
+MAKE_ENV= \
+ CC="${CC}" \
+ LDFLAGS="${LDFLAGS}"
+
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+PLIST_FILES= bin/qvamps \
+ lib/qvamps/LibDvdRead.so \
+ %%DATADIR%%/lib/DesignerMimeSourceFactory_qvamps.pm \
+ %%DATADIR%%/lib/DvdIfoRead.pm \
+ %%DATADIR%%/lib/DvdMaker.pm \
+ %%DATADIR%%/lib/FpcMgr.pm \
+ %%DATADIR%%/lib/Iso639.pm \
+ %%DATADIR%%/lib/LibDvdRead.pm \
+ %%DATADIR%%/lib/MainWindow.pm \
+ %%DATADIR%%/lib/MenuDisplay.pm \
+ %%DATADIR%%/lib/MenuPreview.pm \
+ %%DATADIR%%/lib/MenuTableItems.pm \
+ %%DATADIR%%/lib/MenuWriter.pm \
+ %%DATADIR%%/lib/QVamps.pm \
+ %%DATADIR%%/lib/TitleListItems.pm \
+ %%DATADIR%%/lib/VTSList.pm \
+ %%DATADIR%%/lib/VTSListItems.pm \
+ %%DATADIR%%/lib/XmlWriter.pm \
+ %%DATADIR%%/lib/mainwindow.ui.pm \
+ %%DATADIR%%/lib/menupreview.ui.pm \
+ %%DATADIR%%/lib/vtslist.ui.pm \
+ %%DATADIR%%/penguin.jpg \
+ %%DATADIR%%/penguin_ntsc.mpg \
+ %%DATADIR%%/penguin_pal.mpg \
+ %%DATADIR%%/silence.mpa \
+ %%DATADIR%%/translations/xx.qm
+PLIST_DIRS= %%DATADIR%%/translations \
+ %%DATADIR%%/lib \
+ %%DATADIR%% \
+ lib/qvamps
+
+post-patch:
+ @${REINPLACE_CMD} -E \
+ -e 's|puic|${LOCALBASE}/bin/puic|' \
+ -e 's|swig|${LOCALBASE}/bin/swig|' \
+ -e 's|\$$\(PREFIX\)/share/qvamps|%%DATADIR%%|' \
+ -e 's|[[:space:]]perl[[:space:]]| ${PERL} |' \
+ ${BUILD_WRKSRC}/${MAKEFILE}
+.for file in fakelupd.pl qvamps
+ ${REINPLACE_CMD} -E \
+ -e 's|/usr/bin/perl|${PERL}|' \
+ ${WRKSRC}/${file}
+.endfor
+
+do-install:
+# application
+ @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+# shared multimedia files
+.for extension in jpg mpa mpg
+ @${MKDIR} ${DATADIR}
+ @${INSTALL_DATA} ${WRKSRC}/*.${extension} ${DATADIR}
+.endfor
+# shared perl modules
+ @${MKDIR} ${DATADIR}/lib
+ @${INSTALL_DATA} ${WRKSRC}/*pm ${DATADIR}/lib
+# shared library
+ @${MKDIR} ${PREFIX}/lib/${PORTNAME}
+ @${INSTALL_DATA} ${WRKSRC}/LibDvdRead.so ${PREFIX}/lib/${PORTNAME}
+# translations
+ @${MKDIR} ${DATADIR}/translations
+ @${INSTALL_DATA} ${WRKSRC}/xx.qm ${DATADIR}/translations
+
+.include <bsd.port.pre.mk>
+
+.if defined(STRIP) && ${STRIP} != ""
+MAKE_ENV+= STRIP="${STRIP_CMD}"
+.else
+MAKE_ENV+= STRIP="${TRUE}"
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/qvamps/distinfo b/multimedia/qvamps/distinfo
new file mode 100644
index 000000000000..0f031254e12c
--- /dev/null
+++ b/multimedia/qvamps/distinfo
@@ -0,0 +1,3 @@
+MD5 (qvamps-0.20.tar.gz) = ed50d03f1b05f50f7ee2d7e43084cb39
+SHA256 (qvamps-0.20.tar.gz) = 00990b5156c97ebe2e9f176d4af95b387d13c02b3323fdaa8ec0dfbac6c14d3b
+SIZE (qvamps-0.20.tar.gz) = 281879
diff --git a/multimedia/qvamps/files/patch-Makefile b/multimedia/qvamps/files/patch-Makefile
new file mode 100644
index 000000000000..4177fec7d1d9
--- /dev/null
+++ b/multimedia/qvamps/files/patch-Makefile
@@ -0,0 +1,34 @@
+--- Makefile.orig Sat Dec 17 17:15:24 2005
++++ Makefile Thu Jan 5 17:55:35 2006
+@@ -15,13 +15,10 @@
+ INC = -I $(shell \
+ perl -e 'use Config; print "$$Config{archlibexp}/CORE\n";')
+ ARCH = $(shell perl -e 'use Config; print "$$Config{archname}\n";')
+-CFLAGS = -fpic -pipe -O2 -fomit-frame-pointer $(INC) -Wall \
+- -Wno-strict-aliasing -Wno-unused-function -Wno-unused-variable \
++CFLAGS += $(INC) \
+ $(shell perl -e 'use Config; print "$$Config{ccflags}\n";')
+-STRIP = strip
+ PUICFL = -p 2
+ INSTALL = install
+-PREFIX = /usr/local
+
+
+ all: LibDvdRead.so DesignerMimeSourceFactory_qvamps.pm xx.qm
+@@ -29,14 +26,14 @@
+
+ # LibDvdRead
+ ifo_read.i: ifo_read.c
+- $(CC) -E -P $< > $@
++ $(CC) $(CFLAGS) -E -P $< > $@
+
+ libdvdread_wrap.c: \
+ libdvdread.i ifo_read.i ignores.i
+ swig -perl -Wall -nodefault $<
+
+ LibDvdRead.so: libdvdread_wrap.o
+- $(CC) -shared -o $@ $< -ldvdread
++ $(CC) $(LDFLAGS) -shared -o $@ $< -ldvdread
+ $(STRIP) $@
+
+ # .pm from .ui.pm
diff --git a/multimedia/qvamps/files/patch-qvamps b/multimedia/qvamps/files/patch-qvamps
new file mode 100644
index 000000000000..538a09b4131c
--- /dev/null
+++ b/multimedia/qvamps/files/patch-qvamps
@@ -0,0 +1,19 @@
+--- qvamps.orig Sat Oct 8 06:04:37 2005
++++ qvamps Thu Jan 5 18:46:57 2006
+@@ -19,14 +19,14 @@
+ {
+ print STDERR "qVamps: loading modules from $qvamps_home/share/lib\n";
+ unshift @INC, "$qvamps_home/share/lib";
+- unshift @INC, "$qvamps_home/lib/$archname";
++ unshift @INC, "$qvamps_home/lib";
+ }
+ elsif ($load_prefix && -e "$load_prefix/share/qvamps")
+ {
+ print STDERR "qVamps: loading modules from " .
+ "$load_prefix/share/qvamps/lib\n";
+ unshift @INC, "$load_prefix/share/qvamps/lib";
+- unshift @INC, "$load_prefix/lib/qvamps/$archname";
++ unshift @INC, "$load_prefix/lib/qvamps";
+ }
+ }
+
diff --git a/multimedia/qvamps/pkg-descr b/multimedia/qvamps/pkg-descr
new file mode 100644
index 000000000000..23d630274b52
--- /dev/null
+++ b/multimedia/qvamps/pkg-descr
@@ -0,0 +1,24 @@
+[ excerpt from developer's www site with modifications ]
+
+The idea was to use the high performance Metakine M2Requantiser to
+create a transcoder for Linux for shrinking the content of a DVD9.
+This would enable backups on cheap single layer DVDRs (double layer
+burners weren't even available that time).
+
+Vamps builds a wrapper around the requantizer to extract the
+elementary MPEG2 video stream from the DVD's program stream, feed
+it through the requantizer and finally re-pack it into the program
+stream again. Besides this, Vamps allows the selection of both audio
+and subtitle streams that should be copied into the output stream.
+This gives another small gain of disk space, since unwanted streams
+may be discarded.
+
+Summed up, Vamps is only a very basic, but nevertheless essential
+tool to transcode DVD videos to a smaller size. Vamps does not need
+to write temporary data files, which is a major pro. Vamps is very
+fast. The downside is, that Vamps is not capable of making DVD
+backups on its own.
+
+WWW: http://vamps.sourceforge.net/
+
+-- lioux@FreeBSD.org