blob: cf0e9b03b176f75a6d3fb9583cdeac111cbbc0be (
plain)
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
|
# 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= liba52.so:${PORTSDIR}/audio/liba52 \
libao.so:${PORTSDIR}/audio/libao \
libmad.so:${PORTSDIR}/audio/libmad \
libavutil.so:${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>
|