aboutsummaryrefslogtreecommitdiffstats
path: root/polish/qnapi/Makefile
blob: 47cdca4c3b5a73c133fda42ab2c24078940916f2 (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
# Created by: Pawel Pekala <c0rn@o2.pl>
# $FreeBSD$

PORTNAME=   qnapi
PORTVERSION=    0.1.6.r2
CATEGORIES= polish multimedia
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${DISTNAME}/
DISTNAME=   ${PORTNAME}-${PORTVERSION:R}-rc2

MAINTAINER= pawel@FreeBSD.org
COMMENT=    Qt4 based subtitle downloader

LICENSE=    GPLv2

LIB_DEPENDS=    pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
        pcre:${PORTSDIR}/devel/pcre \
        png15:${PORTSDIR}/graphics/png \
        freetype:${PORTSDIR}/print/freetype2 \
        expat:${PORTSDIR}/textproc/expat2 \
        xcb:${PORTSDIR}/x11/libxcb \
        fontconfig:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS=    7z:${PORTSDIR}/archivers/p7zip

USE_ICONV=  yes
USE_GETTEXT=    yes
USE_XORG=   ice sm x11 xau xdmcp xext xrender
USE_QT4=    corelib gui network xml qmake_build moc_build uic_build rcc_build
USE_KDE4=   kdehier
QMAKE_ARGS= PREFIX=${PREFIX} KDE4_PREFIX=${KDE4_PREFIX}
MAKE_JOBS_SAFE= yes
INSTALLS_ICONS= yes

MAN1=       qnapi.1
MANCOMPRESSED=  yes
PORTDOCS=   ChangeLog README.pl COPYRIGHT

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} 's|/usr/share/icons/||g' \
        ${WRKSRC}/doc/qnapi.desktop \
        ${WRKSRC}/doc/qnapi-download.desktop \
        ${WRKSRC}/doc/qnapi-download.schemas

pre-build:
    @cd ${WRKSRC} && ${QMAKE} -spec ${QMAKESPEC} ${QMAKEFLAGS} ${QMAKE_ARGS}

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>