3d6b1678b8
- Update to 0.18.2 - Add Qt5 option and switch to it by default (as it was done in 0.18.0). - Fix Qt4 dependencies (qt4-linguist -> qt4-linguisttools, drop qt4-designer) - Don't build debug & release at the same time (and add DEBUG option) - Use ${DATADIR} variable. - Add LICENSE_FILE. PR: 202336 Submitted by: s3erios@gmail.com Approved by: coder@tuxfamily.org (maintainer)
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# Created by: lbartoletti <coder@tuxfamily.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= quiterss
|
|
PORTVERSION= 0.18.2
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://quiterss.org/files/${PORTVERSION}/
|
|
DISTNAME= QuiteRSS-${PORTVERSION}-src
|
|
|
|
MAINTAINER= coder@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
|
|
USE_SQLITE= yes
|
|
INSTALLS_ICONS= yes
|
|
|
|
OPTIONS_DEFINE= DEBUG
|
|
OPTIONS_SINGLE= GUI
|
|
OPTIONS_SINGLE_GUI= QT4 QT5
|
|
OPTIONS_DEFAULT= QT5
|
|
|
|
QT4_USE= QT4=moc_build,rcc_build,uic_build,linguisttools_build
|
|
QT4_USE+= QT4=corelib,gui,network,xml,webkit,phonon,sql,sql-sqlite3_run
|
|
|
|
QT5_USE= QT5=buildtools_build,linguisttools_build,core,xml,gui,widgets
|
|
QT5_USE+= QT5=network,multimedia,printsupport,webkit,sql,sql-sqlite3_run
|
|
|
|
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>
|