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
|
2009-02-14 02:56:52 +01:00
|
|
|
PORTVERSION= 2.4.2
|
2004-02-24 03:19:55 +01:00
|
|
|
CATEGORIES= multimedia audio
|
2007-08-22 14:49:49 +02:00
|
|
|
MASTER_SITES= http://www.bunkus.org/videotools/mkvtoolnix/sources/
|
2004-02-24 03:19:55 +01:00
|
|
|
|
2007-04-01 09:50:30 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2004-02-24 03:19:55 +01:00
|
|
|
COMMENT= Tools to extract from/get info about/create Matroska media streams
|
|
|
|
|
2008-04-07 22:37:23 +02:00
|
|
|
LIB_DEPENDS= FLAC.10:${PORTSDIR}/audio/flac \
|
2005-10-17 03:53:39 +02:00
|
|
|
ebml:${PORTSDIR}/textproc/libebml \
|
2006-01-31 00:20:05 +01:00
|
|
|
expat.6:${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 \
|
2007-07-28 14:27:31 +02:00
|
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis \
|
2006-12-03 16:29:07 +01:00
|
|
|
ogg.5:${PORTSDIR}/audio/libogg \
|
2009-02-14 02:56:52 +01:00
|
|
|
pcrecpp.0:${PORTSDIR}/devel/pcre \
|
|
|
|
boost_regex:${PORTSDIR}/devel/boost
|
2004-02-24 03:19:55 +01:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2004-03-27 06:32:32 +01:00
|
|
|
USE_GMAKE= yes
|
2004-02-24 03:19:55 +01:00
|
|
|
USE_ICONV= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2006-12-03 16:29:07 +01:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib -lmagic -lz
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --enable-lzo --enable-bz2 --disable-qt
|
2004-02-24 03:19:55 +01:00
|
|
|
|
2009-02-14 02:56:52 +01:00
|
|
|
MAN1= mkvextract.1 mkvinfo.1 mkvmerge.1
|
2005-09-18 00:41:08 +02:00
|
|
|
|
2004-08-24 01:12:51 +02:00
|
|
|
.ifndef(WITHOUT_WXGTK)
|
2006-12-03 16:29:07 +01:00
|
|
|
USE_WX= yes
|
2006-12-01 08:39:02 +01:00
|
|
|
WX_UNICODE= yes
|
2006-12-03 16:29:07 +01:00
|
|
|
WX_CONF_ARGS= absolute
|
2004-08-24 01:12:51 +02:00
|
|
|
MAN1+= mmg.1
|
2009-02-14 02:56:52 +01:00
|
|
|
PLIST_SUB+= GUI=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GUI="@comment "
|
2004-08-24 01:12:51 +02:00
|
|
|
.endif
|
|
|
|
|
2009-02-14 02:56:52 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|BOOSTLIBDIR/libboost_regex\*\.{so,a,dylib}\*|BOOSTLIBDIR/libboost_regex.so|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2006-12-03 16:29:07 +01:00
|
|
|
pre-configure::
|
2004-08-24 01:12:51 +02:00
|
|
|
.ifndef(WITHOUT_WXGTK)
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
@${ECHO_MSG} "===> You can disable wxGTK2 support by defining"
|
|
|
|
@${ECHO_MSG} "===> WITHOUT_WXGTK"
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
.endif
|
|
|
|
|
2005-09-18 00:41:08 +02:00
|
|
|
pre-install:
|
2006-12-03 16:29:07 +01:00
|
|
|
@${INSTALL} -d ${DATADIR}/
|
2005-09-18 00:41:08 +02:00
|
|
|
|
2009-03-16 10:57:01 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not install on sparc64
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|