openbsd-ports/multimedia/mkvtoolnix/Makefile
benoit ed02b2e5e7 - update mkvtoolnix to 4.0.0
- update patches
- use new WANTLIB/LIB_DEPENDS style

initial diff from brad, ok ajacoutot@
2010-07-17 22:52:50 +00:00

89 lines
2.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.22 2010/07/17 22:52:50 benoit Exp $
COMMENT = create, alter and inspect Matroska files
DISTNAME = mkvtoolnix-4.0.0
CATEGORIES = multimedia x11
HOMEPAGE = http://www.bunkus.org/videotools/mkvtoolnix/
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# 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
FLAVORS = no_x11
FLAVOR ?=
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS += --disable-gui --disable-wxwidgets
.else
USE_X11 = Yes
LIB_DEPENDS += 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:wxWidgets-gtk2->=2.8.10:x11/wxWidgets
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>