blob: 7351fde7631707c5f5fd90d4644e1ab8928480b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# 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
PORTVERSION= 2.4.2
CATEGORIES= multimedia audio
MASTER_SITES= http://www.bunkus.org/videotools/mkvtoolnix/sources/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Tools to extract from/get info about/create Matroska media streams
LIB_DEPENDS= FLAC.10:${PORTSDIR}/audio/flac \
ebml:${PORTSDIR}/textproc/libebml \
expat.6:${PORTSDIR}/textproc/expat2 \
lzo2.2:${PORTSDIR}/archivers/lzo2 \
matroska.0:${PORTSDIR}/multimedia/libmatroska \
vorbis.4:${PORTSDIR}/audio/libvorbis \
ogg.5:${PORTSDIR}/audio/libogg \
pcrecpp.0:${PORTSDIR}/devel/pcre \
boost_regex:${PORTSDIR}/devel/boost
USE_BZIP2= yes
USE_GMAKE= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib -lmagic -lz
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-lzo --enable-bz2 --disable-qt
MAN1= mkvextract.1 mkvinfo.1 mkvmerge.1
.ifndef(WITHOUT_WXGTK)
USE_WX= yes
WX_UNICODE= yes
WX_CONF_ARGS= absolute
MAN1+= mmg.1
PLIST_SUB+= GUI=""
.else
PLIST_SUB+= GUI="@comment "
.endif
post-patch:
${REINPLACE_CMD} -e \
's|BOOSTLIBDIR/libboost_regex\*\.{so,a,dylib}\*|BOOSTLIBDIR/libboost_regex.so|' \
${WRKSRC}/configure
pre-configure::
.ifndef(WITHOUT_WXGTK)
@${ECHO_MSG} "===>"
@${ECHO_MSG} "===> You can disable wxGTK2 support by defining"
@${ECHO_MSG} "===> WITHOUT_WXGTK"
@${ECHO_MSG} "===>"
.endif
pre-install:
@${INSTALL} -d ${DATADIR}/
.include <bsd.port.mk>
|