aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/smtube/Makefile
blob: 2b843280f82f1eb0ffde47b316ce3bb9e5664356 (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
# Created by: Pawel Pekala <pawel@FreeBSD.org>
# $FreeBSD$

PORTNAME=   smtube
PORTVERSION=    1.2
CATEGORIES= multimedia
MASTER_SITES=   SF/smplayer/SMTube/${PORTVERSION}/

MAINTAINER= pawel@FreeBSD.org
COMMENT=    SMPlayer YouTube browser

RUN_DEPENDS=    ${LOCALBASE}/bin/smplayer:${PORTSDIR}/multimedia/smplayer
LIB_DEPENDS=    pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
        pcre:${PORTSDIR}/devel/pcre \
        png15:${PORTSDIR}/graphics/png \
        freetype:${PORTSDIR}/print/freetype2 \
        expat:${PORTSDIR}/textproc/expat2 \
        fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
        xcb:${PORTSDIR}/x11/libxcb

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
USE_ICONV=  yes
USE_XORG=   ice sm x11 xau xdmcp xext xrender
USE_QT4=    linguist_build moc_build qmake_build rcc_build uic_build \
        corelib gui network xml
INSTALLS_ICONS= yes

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|qmake|${QMAKE}|g' \
        -e 's|lrelease|${QT_PREFIX}/bin/lrelease-qt4|g' \
        -e 's|PREFIX=/usr/local|PREFIX=${PREFIX}|g' \
        -e 's|$$(PREFIX)/share/smtube|${DATADIR}|g' \
        ${WRKSRC}/Makefile

.if ${PORT_OPTIONS:MDOCS}
    @${REINPLACE_CMD} -e 's|$$(PREFIX)/share/doc/smtube|${DOCSDIR}|' \
        ${WRKSRC}/Makefile
PORTDOCS=   *
.else
    @${REINPLACE_CMD} -e '/DOC_PATH/d' ${WRKSRC}/Makefile
.endif

do-build:
    cd ${WRKSRC} && ${MAKE}

.include <bsd.port.mk>