2004-02-24 03:19:55 +01:00
|
|
|
# New ports collection makefile for: mkvtoolnix
|
|
|
|
# Date created: Tue Feb 24 02:09:12 UTC 2004
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mkvtoolnix
|
2005-12-12 21:02:36 +01:00
|
|
|
PORTVERSION= 1.6.5
|
2004-02-24 03:19:55 +01:00
|
|
|
CATEGORIES= multimedia audio
|
2004-10-15 02:45:05 +02:00
|
|
|
MASTER_SITES= http://www.bunkus.org/videotools/mkvtoolnix/sources/ \
|
|
|
|
http://www.bunkus.org/videotools/mkvtoolnix/sources/old/
|
2004-02-24 03:19:55 +01:00
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
COMMENT= Tools to extract from/get info about/create Matroska media streams
|
|
|
|
|
2005-03-16 15:50:13 +01:00
|
|
|
LIB_DEPENDS= FLAC.7:${PORTSDIR}/audio/flac \
|
2005-10-17 03:53:39 +02:00
|
|
|
ebml:${PORTSDIR}/textproc/libebml \
|
2004-03-27 06:32:32 +01:00
|
|
|
expat.5:${PORTSDIR}/textproc/expat2 \
|
2005-12-12 21:02:36 +01:00
|
|
|
lzo2.2:${PORTSDIR}/archivers/lzo2 \
|
2005-10-17 03:53:39 +02:00
|
|
|
matroska.0:${PORTSDIR}/multimedia/libmatroska \
|
2004-02-24 03:19:55 +01:00
|
|
|
vorbis.3:${PORTSDIR}/audio/libvorbis
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2004-03-27 06:32:32 +01:00
|
|
|
USE_GMAKE= yes
|
2004-02-24 03:19:55 +01:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-extra-includes=${LOCALBASE}/include \
|
|
|
|
--with-extra-libs=${LOCALBASE}/lib
|
|
|
|
|
2004-03-27 06:32:32 +01:00
|
|
|
MAN1= base64tool.1 mkvextract.1 mkvinfo.1 mkvmerge.1
|
2004-08-24 01:12:51 +02:00
|
|
|
PLIST_FILES= bin/base64tool bin/mkvextract bin/mkvinfo bin/mkvmerge
|
2004-02-24 03:19:55 +01:00
|
|
|
|
2005-09-18 00:41:08 +02:00
|
|
|
# data files
|
|
|
|
FILES_DATA= \
|
|
|
|
mkvmerge-gui.hhc \
|
|
|
|
mkvmerge-gui.hhk \
|
|
|
|
mkvmerge-gui.hhp \
|
2005-12-12 21:02:36 +01:00
|
|
|
mkvmerge-gui.html
|
|
|
|
IMAGES_DATA= \
|
2005-09-18 00:41:08 +02:00
|
|
|
addingremovingattachments.gif \
|
|
|
|
addremovefiles.gif \
|
|
|
|
attachmentoptions.gif \
|
|
|
|
audiotrackoptions.gif \
|
|
|
|
chaptereditor.gif \
|
|
|
|
jobmanager.gif \
|
|
|
|
movietitle.gif \
|
|
|
|
muxingwindow.gif \
|
|
|
|
selectmkvmergeexecutable.gif \
|
|
|
|
splitting.gif \
|
|
|
|
textsubtitlestrackoptions.gif \
|
|
|
|
trackselection.gif \
|
|
|
|
videotrackoptions.gif
|
2005-12-12 21:02:36 +01:00
|
|
|
PLIST_DIRS+= \
|
|
|
|
%%DATADIR%%/images \
|
|
|
|
%%DATADIR%%
|
2005-09-18 00:41:08 +02:00
|
|
|
.for file in ${FILES_DATA}
|
|
|
|
PLIST_FILES+= %%DATADIR%%/${file}
|
|
|
|
.endfor
|
2005-12-12 21:02:36 +01:00
|
|
|
.for file in ${IMAGES_DATA}
|
|
|
|
PLIST_FILES+= %%DATADIR%%/images/${file}
|
|
|
|
.endfor
|
2005-09-18 00:41:08 +02:00
|
|
|
|
2005-12-12 21:02:36 +01:00
|
|
|
WXGTK_CONFIG= wxgtk2u-2.6-config
|
2004-02-24 03:19:55 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-08-24 01:12:51 +02:00
|
|
|
.ifndef(WITHOUT_WXGTK)
|
2005-12-12 21:02:36 +01:00
|
|
|
LIB_DEPENDS+= wx_gtk2u_core-2.6.0:${PORTSDIR}/x11-toolkits/wxgtk26-unicode
|
2004-08-24 01:12:51 +02:00
|
|
|
|
|
|
|
MAN1+= mmg.1
|
|
|
|
PLIST_FILES+= bin/mmg
|
|
|
|
.endif
|
|
|
|
|
2004-05-13 10:54:50 +02:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= "Does not compile on sparc64"
|
|
|
|
.endif
|
|
|
|
|
2004-03-14 11:22:53 +01:00
|
|
|
.if ${OSVERSION} < 500000
|
2004-12-11 22:50:01 +01:00
|
|
|
BROKEN= "Does not compile on FreeBSD 4.x"
|
2004-03-14 11:22:53 +01:00
|
|
|
CFLAGS+= -DNO_WSTRING
|
|
|
|
.endif
|
|
|
|
|
2004-08-24 01:12:51 +02:00
|
|
|
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
|
2005-03-10 03:47:40 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
|
|
|
|
${WRKSRC}/src/common/os.cpp
|
2004-08-24 01:12:51 +02:00
|
|
|
|
2005-09-18 00:41:08 +02:00
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
|
2004-02-24 03:19:55 +01:00
|
|
|
.include <bsd.port.post.mk>
|