a89a75cd04
from Brad ok landry@ sthen@
92 lines
2.6 KiB
Makefile
92 lines
2.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.28 2012/03/08 12:13:01 ajacoutot Exp $
|
|
|
|
COMMENT = create, alter and inspect Matroska files
|
|
|
|
DISTNAME = mkvtoolnix-4.0.0
|
|
CATEGORIES = multimedia x11
|
|
REVISION = 1
|
|
|
|
HOMEPAGE = http://www.bunkus.org/videotools/mkvtoolnix/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
WANTLIB = boost_system-mt>=1.1 boost_regex-mt>=1.1 \
|
|
boost_filesystem-mt>=1.1 \
|
|
bz2>=10 c ebml expat FLAC>=9 lzo2 m magic>=2 matroska>=1.0 \
|
|
ogg stdc++ vorbis>=8 z pthread
|
|
|
|
MASTER_SITES = ${HOMEPAGE}/sources/
|
|
|
|
EXTRACT_SUFX = .tar.bz2
|
|
|
|
MODULES = devel/gettext
|
|
|
|
LIB_DEPENDS = audio/flac \
|
|
archivers/bzip2 \
|
|
archivers/lzo2 \
|
|
multimedia/libmatroska \
|
|
audio/libvorbis \
|
|
devel/libmagic \
|
|
devel/boost
|
|
|
|
MAKE_FLAGS += V=1
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS += --enable-lzo \
|
|
--enable-bz2 \
|
|
--disable-qt \
|
|
--with-flac \
|
|
--with-boost-libdir=${LOCALBASE}/lib \
|
|
--with-boost-regex=boost_regex-mt \
|
|
--with-boost-filesystem=boost_filesystem-mt
|
|
CONFIGURE_ENV = CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib \
|
|
-lm -lstdc++ -pthread -liconv" \
|
|
ac_cv_has_nl_langinfo=no
|
|
USE_GROFF = Yes
|
|
|
|
FLAVORS = no_x11
|
|
FLAVOR ?=
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
CONFIGURE_ARGS += --disable-gui --disable-wxwidgets
|
|
.else
|
|
LIB_DEPENDS += x11/wxWidgets>=2.8.10
|
|
WANTLIB += wx_base wx_base_net wx_base_odbc wx_base_xml wx_gtk2_adv \
|
|
wx_gtk2_aui wx_gtk2_core wx_gtk2_dbgrid wx_gtk2_html \
|
|
wx_gtk2_qa wx_gtk2_xrc wx_gtk2_richtext
|
|
CONFIGURE_ARGS += --enable-gui --enable-wxwidgets
|
|
.endif
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/man/ja.po
|
|
${INSTALL_DATA_DIR} ${PREFIX}/man/zh_CN.po
|
|
${INSTALL_DATA_DIR} ${PREFIX}/man/man1
|
|
.for i in mkvextract mkvinfo mkvmerge mkvpropedit
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/src/$i ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/doc/man/$i.1 ${PREFIX}/man/man1
|
|
${INSTALL_DATA} ${WRKSRC}/doc/man/ja/$i.1 ${PREFIX}/man/ja.po
|
|
${INSTALL_DATA} ${WRKSRC}/doc/man/zh_CN/$i.1 ${PREFIX}/man/zh_CN.po
|
|
.endfor
|
|
.if !${FLAVOR:L:Mno_x11}
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/src/mmg/mmg ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/doc/man/mmg.1 ${PREFIX}/man/man1
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/mkvtoolnix/images
|
|
${INSTALL_DATA} ${WRKSRC}/doc/guide/en/mkvmerge-gui.* ${PREFIX}/share/mkvtoolnix
|
|
${INSTALL_DATA} ${WRKSRC}/doc/guide/en/images/*.gif ${PREFIX}/share/mkvtoolnix/images
|
|
.endif
|
|
.for l in de ja nl ru uk zh_CN zh_TW
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/locale/$l/LC_MESSAGES
|
|
${INSTALL_DATA} ${WRKSRC}/po/$l.mo ${PREFIX}/share/locale/$l/LC_MESSAGES/mkvtoolnix.mo
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|