aboutsummaryrefslogtreecommitdiffstats
path: root/net/quiterss/Makefile
blob: e98406e6f7b232f38d02a35402a60dd56a3d6533 (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
# Created by: lbartoletti <coder@tuxfamily.org>
# $FreeBSD$

PORTNAME=   quiterss
PORTVERSION=    0.18.12
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   http://quiterss.org/files/${PORTVERSION}/
DISTNAME=   QuiteRSS-${PORTVERSION}-src

MAINTAINER= lbartoletti@tuxfamily.org
COMMENT=    Open-source cross-platform RSS/Atom news feeds reader

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

NO_WRKSUBDIR=   yes

USES=       desktop-file-utils pkgconfig qmake:outsource sqlite

OPTIONS_DEFINE=     DEBUG
OPTIONS_SINGLE=     GUI
OPTIONS_SINGLE_GUI= QT4 QT5
OPTIONS_DEFAULT=    QT5

QT4_USES=   qt:4 qt:4
QT4_USE=    QT=moc_build,rcc_build,uic_build,linguisttools_build
QT4_USE+=   QT=corelib,gui,network,xml,webkit,phonon,sql,sql-sqlite3_run

QT5_USES=   qt:5 qt:5
QT5_USE=    QT=buildtools_build,linguisttools_build,core,xml,gui,widgets
QT5_USE+=   QT=network,multimedia,printsupport,webkit,sql,sql-sqlite3_run

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MQT4}
DEPRECATED=     Qt4 has been EOL since december 2015
EXPIRATION_DATE=    2019-03-15
.endif

post-patch-DEBUG-on:
    @${REINPLACE_CMD} 's|debug_and_release|debug|' \
        ${WRKSRC}/QuiteRSS.pro

post-patch-DEBUG-off:
    @${REINPLACE_CMD} 's|debug_and_release|release|' \
        ${WRKSRC}/QuiteRSS.pro

post-patch:
    @${REINPLACE_CMD} 's|$$$$\[QT_INSTALL_BINS\]/lrelease|${LRELEASE}|' \
        ${WRKSRC}/lang/lang.pri
    @${REINPLACE_CMD} 's|$$$$PREFIX/share/quiterss|${DATADIR}|' \
        ${WRKSRC}/QuiteRSS.pro

.include <bsd.port.mk>