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
|
2010-06-09 11:04:43 +02:00
|
|
|
PORTVERSION= 3.4.0
|
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 \
|
2009-12-22 12:25:39 +01:00
|
|
|
ebml.0:${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 \
|
2010-06-06 22:44:03 +02:00
|
|
|
ogg.7:${PORTSDIR}/audio/libogg \
|
2009-12-22 12:25:39 +01:00
|
|
|
boost_regex.4:${PORTSDIR}/devel/boost-libs
|
2004-02-24 03:19:55 +01:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2009-04-09 23:14:44 +02:00
|
|
|
USE_GETTEXT= 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
|
2010-06-09 11:04:43 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2010-02-02 23:42:59 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
|
|
|
ac_cv_path_PO4A=no
|
2009-12-22 12:25:39 +01:00
|
|
|
CONFIGURE_ARGS= --enable-lzo --enable-bz2 --disable-qt \
|
|
|
|
--with-boost=${LOCALBASE} \
|
2010-02-02 23:42:59 +01:00
|
|
|
--with-boost-filesystem=boost_filesystem \
|
|
|
|
--with-boost-system=boost_system \
|
2009-12-22 12:25:39 +01:00
|
|
|
--with-boost-regex=boost_regex
|
2009-03-26 04:03:17 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2004-02-24 03:19:55 +01:00
|
|
|
|
2009-12-22 12:25:39 +01:00
|
|
|
MAN1= mkvextract.1 mkvinfo.1 mkvmerge.1 mkvpropedit.1
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not install on sparc64
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(BATCH)
|
|
|
|
MAKE_ENV+= V=1
|
|
|
|
.endif
|
2005-09-18 00:41:08 +02:00
|
|
|
|
2004-08-24 01:12:51 +02:00
|
|
|
.ifndef(WITHOUT_WXGTK)
|
2010-03-02 21:35:31 +01:00
|
|
|
USE_WX= 2.8+
|
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
|
2010-02-02 23:42:59 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-gui
|
2009-02-14 02:56:52 +01:00
|
|
|
PLIST_SUB+= GUI="@comment "
|
2004-08-24 01:12:51 +02:00
|
|
|
.endif
|
|
|
|
|
2009-02-14 02:56:52 +01:00
|
|
|
post-patch:
|
2009-12-22 12:25:39 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|"-O3"|""|g' ${WRKSRC}/configure
|
2009-02-14 02:56:52 +01:00
|
|
|
|
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
|
|
|
|
|
2009-03-16 10:57:01 +01:00
|
|
|
.include <bsd.port.post.mk>
|