103 lines
2.4 KiB
Makefile
103 lines
2.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.92 2019/07/12 20:47:57 sthen Exp $
|
|
|
|
COMMENT= create, alter and inspect Matroska files
|
|
|
|
DISTNAME= mkvtoolnix-33.0.0
|
|
REVISION= 0
|
|
|
|
CATEGORIES= multimedia x11
|
|
|
|
HOMEPAGE = https://www.bunkus.org/videotools/mkvtoolnix/
|
|
|
|
MAINTAINER = Rafael Sadowski <rsadowski@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} FLAC boost_filesystem-mt boost_regex-mt
|
|
WANTLIB += boost_system-mt c cmark ebml iconv intl m magic matroska
|
|
WANTLIB += ogg vorbis z
|
|
|
|
MASTER_SITES= https://www.bunkus.org/videotools/mkvtoolnix/sources/
|
|
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MODULES= lang/ruby
|
|
|
|
MODRUBY_RUNDEP= No
|
|
|
|
# C++11 / C++14
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
BUILD_DEPENDS= devel/gettext,-tools \
|
|
devel/gtest \
|
|
textproc/docbook \
|
|
textproc/docbook-xsl \
|
|
x11/qt5/qttools
|
|
|
|
LIB_DEPENDS= audio/flac \
|
|
audio/libogg \
|
|
audio/libvorbis \
|
|
devel/boost \
|
|
textproc/cmark \
|
|
devel/gettext,-runtime \
|
|
devel/libmagic \
|
|
multimedia/libmatroska>=1.5.0 \
|
|
textproc/libebml>=1.3.7
|
|
|
|
MAKE_ENV+= V=1
|
|
|
|
CONFIGURE_STYLE= autoconf
|
|
AUTOCONF_VERSION= 2.69
|
|
CONFIGURE_ARGS= --disable-optimization \
|
|
--disable-update-check \
|
|
--with-boost-date-time=boost_date_time-mt \
|
|
--with-boost-filesystem=boost_filesystem-mt \
|
|
--with-boost-libdir=${LOCALBASE}/lib \
|
|
--with-boost-regex=boost_regex-mt \
|
|
--with-boost-system=boost_system-mt \
|
|
--with-docbook-xsl-root=${LOCALBASE}/share/xsl/docbook
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
FLAVORS= no_x11
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mno_x11}
|
|
CONFIGURE_ARGS+= --disable-gui
|
|
.else
|
|
MODULES+= x11/qt5
|
|
WANTLIB += Qt5Concurrent Qt5Core Qt5DBus Qt5Gui Qt5Multimedia
|
|
WANTLIB += Qt5Network Qt5Widgets
|
|
LIB_DEPENDS += x11/qt5/qtmultimedia
|
|
RUN_DEPENDS+= devel/desktop-file-utils \
|
|
misc/shared-mime-info \
|
|
x11/gtk+3,-guic
|
|
CPPFLAGS+= -I${X11BASE}/include
|
|
LDFLAGS+= -L${X11BASE}/lib -L${MODQT5_LIBDIR}
|
|
CONFIGURE_ENV+= LCONVERT="${LOCALBASE}/lib/qt5/bin/lconvert"
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
pre-patch:
|
|
@cd ${WRKSRC}/src/mkvtoolnix-gui/jobs/program_runner/ && \
|
|
cp linux_program_runner.cpp unix_program_runner.cpp && \
|
|
cp linux_program_runner.h unix_program_runner.h
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && \
|
|
env -i ${MAKE_ENV} ${RAKE} -j${MAKE_JOBS} ${MAKE_FLAGS}
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && \
|
|
env -i ${MAKE_ENV} ${RAKE} DESTDIR=${WRKINST} install
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && \
|
|
env -i ${MAKE_ENV} ${RAKE} tests:run_unit
|
|
|
|
.include <bsd.port.mk>
|