aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--multimedia/mkvtoolnix/Makefile36
-rw-r--r--multimedia/mkvtoolnix/distinfo4
-rw-r--r--multimedia/mkvtoolnix/pkg-plist5
3 files changed, 30 insertions, 15 deletions
diff --git a/multimedia/mkvtoolnix/Makefile b/multimedia/mkvtoolnix/Makefile
index 36546ada90b5..ffdd865041ff 100644
--- a/multimedia/mkvtoolnix/Makefile
+++ b/multimedia/mkvtoolnix/Makefile
@@ -6,15 +6,13 @@
#
PORTNAME= mkvtoolnix
-PORTVERSION= 0.9.2
+PORTVERSION= 0.9.4
CATEGORIES= multimedia audio
-MASTER_SITES= http://www.bunkus.org/videotools/mkvtoolnix/sources/
+MASTER_SITES= http://www.bunkus.org/videotools/mkvtoolnix/sources/old/
MAINTAINER= lioux@FreeBSD.org
COMMENT= Tools to extract from/get info about/create Matroska media streams
-BROKEN= Unfetchable
-
BUILD_DEPENDS= ${LOCALBASE}/lib/libmatroska.a:${PORTSDIR}/multimedia/libmatroska \
${LOCALBASE}/lib/libebml.a:${PORTSDIR}/textproc/libebml
LIB_DEPENDS= FLAC.5:${PORTSDIR}/audio/flac \
@@ -30,15 +28,19 @@ CONFIGURE_ARGS= --with-extra-includes=${LOCALBASE}/include \
--with-extra-libs=${LOCALBASE}/lib
MAN1= base64tool.1 mkvextract.1 mkvinfo.1 mkvmerge.1
+PLIST_FILES= bin/base64tool bin/mkvextract bin/mkvinfo bin/mkvmerge
-post-patch:
-# disable GNU auto* tools
- @${FIND} ${WRKSRC} -type f -name "Makefile.in" | ${XARGS} \
- -n 10 ${REINPLACE_CMD} -E -e \
- 's!^(ACLOCAL|AUTOCONF|AUTOMAKE|AUTOHEADER).+$$!\1=${TRUE}!'
+WXGTK_CONFIG= wxgtk2-2.4-config
.include <bsd.port.pre.mk>
+.ifndef(WITHOUT_WXGTK)
+LIB_DEPENDS+= wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2
+
+MAN1+= mmg.1
+PLIST_FILES+= bin/mmg
+.endif
+
.if ${ARCH} == "sparc64"
BROKEN= "Does not compile on sparc64"
.endif
@@ -47,4 +49,20 @@ BROKEN= "Does not compile on sparc64"
CFLAGS+= -DNO_WSTRING
.endif
+pre-everything::
+.ifndef(WITHOUT_WXGTK)
+ @${ECHO_MSG} "===>"
+ @${ECHO_MSG} "===> You can disable wxGTK2 support by defining"
+ @${ECHO_MSG} "===> WITHOUT_WXGTK"
+ @${ECHO_MSG} "===>"
+.endif
+
+post-patch:
+# disable GNU auto* tools
+ @${FIND} ${WRKSRC} -type f -name "Makefile.in" | ${XARGS} \
+ -n 10 ${REINPLACE_CMD} -E -e \
+ 's!^(ACLOCAL|AUTOCONF|AUTOMAKE|AUTOHEADER).+$$!\1=${TRUE}!'
+ @${REINPLACE_CMD} -e 's|wx-config|${WXGTK_CONFIG}|' \
+ ${WRKSRC}/configure
+
.include <bsd.port.post.mk>
diff --git a/multimedia/mkvtoolnix/distinfo b/multimedia/mkvtoolnix/distinfo
index 957419ebad45..4a5c40d3110f 100644
--- a/multimedia/mkvtoolnix/distinfo
+++ b/multimedia/mkvtoolnix/distinfo
@@ -1,2 +1,2 @@
-MD5 (mkvtoolnix-0.9.2.tar.bz2) = 418ecec8f247f53d8a7b49e3e2d8d8a8
-SIZE (mkvtoolnix-0.9.2.tar.bz2) = 481348
+MD5 (mkvtoolnix-0.9.4.tar.bz2) = 9b2194fa0d78670d18e6aff0359b7dc1
+SIZE (mkvtoolnix-0.9.4.tar.bz2) = 499321
diff --git a/multimedia/mkvtoolnix/pkg-plist b/multimedia/mkvtoolnix/pkg-plist
index cc2fc4ee8d9f..8b137891791f 100644
--- a/multimedia/mkvtoolnix/pkg-plist
+++ b/multimedia/mkvtoolnix/pkg-plist
@@ -1,4 +1 @@
-bin/base64tool
-bin/mkvextract
-bin/mkvinfo
-bin/mkvmerge
+