aboutsummaryrefslogtreecommitdiff
path: root/graphics/qiviewer
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2013-11-22 12:55:00 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2013-11-22 12:55:00 +0000
commit5898d7df5c5c0c4c33faa934a38001e755f6d900 (patch)
treeedc1328e7d68e649db202ae07c396b88869f73de /graphics/qiviewer
parent14b67ba33b83fe27381b6547b20370f812a4da0f (diff)
Notes
Diffstat (limited to 'graphics/qiviewer')
-rw-r--r--graphics/qiviewer/Makefile18
1 files changed, 3 insertions, 15 deletions
diff --git a/graphics/qiviewer/Makefile b/graphics/qiviewer/Makefile
index 3f85ee1ad670..03f90752e338 100644
--- a/graphics/qiviewer/Makefile
+++ b/graphics/qiviewer/Makefile
@@ -12,10 +12,10 @@ COMMENT= Fast and lightweight image viewer
LICENSE= GPLv2
+USES= qmake
USE_BZIP2= yes
-USE_QT4= gui xml dbus imageformats linguist_build qmake_build \
+USE_QT4= gui xml dbus imageformats_run linguist_build \
moc_build rcc_build uic_build
-QMAKEFLAGS+= PREFIX="${PREFIX}"
PLIST_FILES= bin/qiviewer \
share/applications/qiviewer.desktop \
@@ -29,19 +29,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}/src
OPTIONS_DEFINE= WEBP
WEBP_DESC= Support for WebP image format (experimental)
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MWEBP}
-QMAKEFLAGS+= CONFIG+=enable-webp
-PLIST_SUB+= WEBP=""
-.else
-PLIST_SUB+= WEBP="@comment "
-.endif
-
-do-configure:
- @cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS}
+WEBP_QMAKE_ON= CONFIG+=enable-webp
post-configure:
${REINPLACE_CMD} -e 's|lrelease|lrelease-qt4|g' \