freebsd-ports/multimedia/dvbcut/Makefile

62 lines
1.8 KiB
Makefile
Raw Normal View History

# Created by: se@FreeBSD.org
# $FreeBSD$
PORTNAME= dvbcut
PORTVERSION= 0.7.3
2018-09-02 17:01:24 +02:00
DISTVERSIONPREFIX= v
PORTREVISION= 3
CATEGORIES= multimedia
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: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}
USES= compiler:c++11-lang desktop-file-utils pkgconfig \
qmake:outsource shared-mime-info
USE_GITHUB= yes
GH_ACCOUNT= bernhardu
GH_PROJECT= dvbcut-deb
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_DEFINE= QT5
OPTIONS_DEFAULT= QT5
QT5_USES= qt:5
QT5_USE= QT=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/dvbcut/icons/
${INSTALL_DATA} ${WRKSRC}/dvbcut.svg ${STAGEDIR}${PREFIX}/share/dvbcut/icons/
${INSTALL_DATA} ${WRKSRC}/icons/* ${STAGEDIR}${PREFIX}/share/dvbcut/icons/
${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>