aboutsummaryrefslogtreecommitdiff
path: root/graphics/kf5-kimageformats/Makefile
diff options
context:
space:
mode:
authorAdriaan de Groot <adridg@FreeBSD.org>2017-11-25 20:43:39 +0000
committerAdriaan de Groot <adridg@FreeBSD.org>2017-11-25 20:43:39 +0000
commit6f93e882b2a25ba2038f0f622765cb2158383e21 (patch)
tree1c39665f16f5c8ee6a3596e15350038f8f38cbc6 /graphics/kf5-kimageformats/Makefile
parent1d3e38688318ce112a430600afdb2832348d3f42 (diff)
downloadports-6f93e882b2a25ba2038f0f622765cb2158383e21.tar.gz
ports-6f93e882b2a25ba2038f0f622765cb2158383e21.zip
Update KDE ports that use OpenEXR, to use it optionally. This makes
it easier to switch off if OpenEXR is removed. Reported by: mandree Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13132
Notes
Notes: svn path=/head/; revision=454896
Diffstat (limited to 'graphics/kf5-kimageformats/Makefile')
-rw-r--r--graphics/kf5-kimageformats/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/kf5-kimageformats/Makefile b/graphics/kf5-kimageformats/Makefile
index b28a46d23c89..4d373f80bcca 100644
--- a/graphics/kf5-kimageformats/Makefile
+++ b/graphics/kf5-kimageformats/Makefile
@@ -2,16 +2,23 @@
PORTNAME= kimageformats
DISTVERSION= ${KDE_FRAMEWORKS_VERSION}
+PORTREVISION= 1
CATEGORIES= graphics kde kde-frameworks
MAINTAINER= kde@FreeBSD.org
COMMENT= KF5 library providing support for additional image formats
-LIB_DEPENDS= libIlmImf.so:graphics/OpenEXR \
- libHalf.so:graphics/ilmbase
+LIB_DEPENDS= libHalf.so:graphics/ilmbase
USES= cmake:outsource compiler:c++11-lib kde:5 pkgconfig tar:xz
USE_KDE= archive ecm
USE_QT5= buildtools_build core gui printsupport qmake_build widgets
+OPTIONS_DEFINE= OPENEXR
+OPTIONS_DEFAULT= OPENEXR
+OPTIONS_SUB= yes
+
+OPENEXR_LIB_DEPENDS= libIlmImf.so:graphics/OpenEXR
+OPENEXR_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_OpenEXR
+
.include <bsd.port.mk>