summaryrefslogtreecommitdiff
path: root/graphics/gd/options.mk
diff options
context:
space:
mode:
authorkim <kim>2017-04-15 15:50:42 +0000
committerkim <kim>2017-04-15 15:50:42 +0000
commite75537d6c7199e338f1e1c167dffc5f0cd82689d (patch)
tree71c2ba2a73cbb23a774f1fb9a1dcf2fa56f01ade /graphics/gd/options.mk
parent7d971450111e200903a41900cbcbee8826b74e7f (diff)
downloadpkgsrc-e75537d6c7199e338f1e1c167dffc5f0cd82689d.tar.gz
Make tiff option when building gd, as tiff has many long-standing
vulnerabilities. Still enabled by default, as before. Ok by wiz@. Fixes PR pkg/52148 and adds tiff to PKG_SUGGESTED_OPTIONS.
Diffstat (limited to 'graphics/gd/options.mk')
-rw-r--r--graphics/gd/options.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/graphics/gd/options.mk b/graphics/gd/options.mk
index df703e21f23..e11c0fdb675 100644
--- a/graphics/gd/options.mk
+++ b/graphics/gd/options.mk
@@ -1,10 +1,18 @@
-# $NetBSD: options.mk,v 1.5 2016/08/02 18:29:21 adam Exp $
+# $NetBSD: options.mk,v 1.6 2017/04/15 15:50:42 kim Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gd
-PKG_SUPPORTED_OPTIONS= x11
+PKG_SUPPORTED_OPTIONS= tiff x11
+PKG_SUGGESTED_OPTIONS= tiff
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Mtiff)
+.include "../../graphics/tiff/buildlink3.mk"
+CONFIGURE_ARGS+= --with-tiff=${BUILDLINK_PREFIX.tiff}
+.else
+CONFIGURE_ARGS+= --without-tiff
+.endif
+
.if !empty(PKG_OPTIONS:Mx11)
.include "../../x11/libXpm/buildlink3.mk"
CONFIGURE_ENV+= X11BASE=${X11BASE}