aboutsummaryrefslogtreecommitdiff
path: root/multimedia/dvbcut/Makefile
blob: f5be84cb02dfd753b756f7c702950a5bc104cf3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Created by: se@FreeBSD.org
# $FreeBSD$

PORTNAME=	dvbcut
PORTVERSION=	0.7.2
PORTREVISION=	2
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=	7d0fc2b

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=	QT5

QT4_USES=	qt:4
QT4_USE=	QT=corelib,gui,xml,qt3support,linguisttools_build,moc_build,rcc_build,uic_build
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/

.include <bsd.port.mk>