1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/multimedia/dvbcut/Makefile
Stefan Eßer a04f98fb3e Update to version 0.7.0, which appears to be another fork of the no longer
maintained version 0.5.4 (or the already forked 0.6.2).
This version adds support for qt5 (port option, default remains at qt4) and
is claimed to be compatible with ffmpeg-3.x (not verified, yet).

PR:		214193
Reported by:	jbeich (ffmpeg-3 exp-run)
2016-11-14 07:51:32 +00:00

61 lines
1.8 KiB
Makefile

# Created by: se@FreeBSD.org
# $FreeBSD$
PORTNAME= dvbcut
PORTVERSION= 0.7.0
CATEGORIES= multimedia
MAINTAINER= se@FreeBSD.org
COMMENT= Qt application for cutting of MPEG PS and MPEG TS streams (DVB)
LICENSE= GPLv2
BUILD_DEPENDS= mplayer:multimedia/mplayer \
ffmpeg:multimedia/ffmpeg
LIB_DEPENDS= liba52.so:audio/liba52 \
libao.so:audio/libao \
libmad.so:audio/libmad \
libavutil.so:multimedia/ffmpeg
RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_GITHUB= yes
GH_ACCOUNT= bernhardu
GH_PROJECT= dvbcut-deb
GH_TAGNAME= 381549c
USES= qmake:outsource pkgconfig desktop-file-utils shared-mime-info
CXXFLAGS+= -I${LOCALBASE}/include \
-I${LOCALBASE}/include/libavcodec \
-I${LOCALBASE}/include/libavformat \
-I${LOCALBASE}/include/libswscale \
-D DVBCUT_VERSION=$(PORTVERSION)
QMAKE_SOURCE_PATH=${WRKSRC}/src
QMAKE_ARGS= LRELEASE="${LRELEASE}"
OPTIONS_RADIO= QT
OPTIONS_RADIO_QT= QT4 QT5
OPTIONS_DEFAULT= QT4
QT4_USE= QT4=corelib,gui,xml,qt3support,linguisttools_build,moc_build,rcc_build,uic_build
QT5_USE= QT5=core,gui,widgets,xml,buildtools_build,linguisttools_build GL=gl
post-build:
@${SED} -e 's;@prefix@;${PREFIX};' \
< ${WRKSRC}/dvbcut.desktop.in \
> ${WRKSRC}/dvbcut.desktop
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/.build/dvbcut ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/dvbcut.1 ${STAGEDIR}${MANPREFIX}/man/man1/
${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/dvbcut.desktop ${STAGEDIR}${PREFIX}/share/applications/
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/dvbcut
${INSTALL_DATA} ${WRKSRC}/dvbcut.svg ${STAGEDIR}${PREFIX}/share/icons/dvbcut/
${INSTALL_DATA} ${WRKSRC}/icons/* ${STAGEDIR}${PREFIX}/share/icons/dvbcut/
${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/packages
${INSTALL_DATA} ${WRKSRC}/dvbcut.xml ${STAGEDIR}${PREFIX}/share/mime/packages/
.include <bsd.port.mk>