mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
2345064b6a
This port is no longer based on the Qt3 version of dvbcut plus a large patch to make it build on Qt4 with the Qt3 emulation layer. A fork that uses native Qt4 calls is used instead. The generated files moc_progressstatusbar.cpp and moc_progresswindow.cpp trigger an internal error in clang, if compiled with optimization. This bug has been accepted as 18098 in the llvm bug tracker. To work around this problem, the above mentioned two files are compiled with -O0 appended to the compiler flages. The post-configure target in the ports Makefile is to be removed, when a fixed version of clang is distributed in all FreeBSD releases supported by the ports infrastructure.
59 lines
1.8 KiB
Makefile
59 lines
1.8 KiB
Makefile
# Created by: se@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dvbcut
|
|
PORTVERSION= 0.6.2.a1
|
|
CATEGORIES= multimedia
|
|
|
|
MAINTAINER= se@FreeBSD.org
|
|
COMMENT= Qt application for cutting of MPEG PS and MPEG TS streams (DVB)
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer \
|
|
ffmpeg:${PORTSDIR}/multimedia/ffmpeg \
|
|
pkg-config:${PORTSDIR}/devel/pkgconf
|
|
LIB_DEPENDS= a52:${PORTSDIR}/audio/liba52 \
|
|
ao:${PORTSDIR}/audio/libao \
|
|
mad:${PORTSDIR}/audio/libmad \
|
|
avutil:${PORTSDIR}/multimedia/ffmpeg
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= nextghost
|
|
GH_PROJECT= dvbcut-qt4
|
|
GH_TAGNAME= ${GH_COMMIT}
|
|
GH_COMMIT= 81c31ed
|
|
|
|
WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}
|
|
|
|
USES= qmake
|
|
USE_QT4= gui linguist moc_build rcc_build uic_build
|
|
INSTALLS_ICONS= yes
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include \
|
|
-I${LOCALBASE}/include/libavcodec \
|
|
-I${LOCALBASE}/include/libavformat \
|
|
-I${LOCALBASE}/include/libswscale
|
|
|
|
post-configure:
|
|
${REINPLACE_CMD} -e '/CXX.*moc_progress/s/ -o / -O0 -o /' ${WRKSRC}/src/Makefile
|
|
|
|
post-build:
|
|
${SED} -e 's;@prefix@;${PREFIX};' \
|
|
< ${WRKSRC}/dvbcut.desktop.in \
|
|
> ${WRKSRC}/dvbcut.desktop
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/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>
|