freebsd-ports/multimedia/dvbcut/Makefile

53 lines
1.7 KiB
Makefile
Raw Normal View History

# Created by: se@FreeBSD.org
# $FreeBSD$
PORTNAME= dvbcut
PORTVERSION= 0.6.1
2012-06-01 07:26:28 +02:00
PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= http://www.mr511.de/dvbcut/
MAINTAINER= se@FreeBSD.org
COMMENT= Qt application for cutting of MPEG PS and MPEG TS streams (DVB)
2012-06-04 14:06:17 +02:00
LICENSE= GPLv2
BUILD_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
2012-06-04 14:06:17 +02:00
LIB_DEPENDS= a52:${PORTSDIR}/audio/liba52 \
ao:${PORTSDIR}/audio/libao \
mad:${PORTSDIR}/audio/libmad \
avutil:${PORTSDIR}/multimedia/ffmpeg
RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_GCC= any
USES= cmake
2013-10-04 18:20:34 +02:00
USE_QT4= gui qt3support xml moc_build qmake_build rcc_build uic_build
CXXFLAGS+= -I${LOCALBASE}/include \
-I${LOCALBASE}/include/libavcodec \
-I${LOCALBASE}/include/libavformat \
-I${LOCALBASE}/include/libswscale
BROKEN= Does not compile due to FFMPEG update - will be fixed soon
pre-patch:
cd ${WRKSRC} && ${BZCAT} ${FILESDIR}/use-qt4.diff.bz2 | ${PATCH} -p2
post-build:
$(SED) -e 's;@prefix@/dvbcut/share/icons;'${PREFIX}/share/icons/dvbcut';' \
< ${WRKSRC}/dvbcut.desktop.in \
> ${WRKSRC}/dvbcut.desktop
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/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/
2012-06-04 14:06:17 +02:00
.include <bsd.port.mk>