pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/gd Make tiff option when building gd, as tiff...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c76bf9a2b473
branches:  trunk
changeset: 361161:c76bf9a2b473
user:      kim <kim%pkgsrc.org@localhost>
date:      Sat Apr 15 15:50:42 2017 +0000

description:
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:

 graphics/gd/Makefile      |   7 ++-----
 graphics/gd/buildlink3.mk |   7 +++++--
 graphics/gd/options.mk    |  12 ++++++++++--
 3 files changed, 17 insertions(+), 9 deletions(-)

diffs (83 lines):

diff -r 4bd0938ba691 -r c76bf9a2b473 graphics/gd/Makefile
--- a/graphics/gd/Makefile      Sat Apr 15 15:48:12 2017 +0000
+++ b/graphics/gd/Makefile      Sat Apr 15 15:50:42 2017 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.114 2017/02/28 15:19:59 ryoon Exp $
+# $NetBSD: Makefile,v 1.115 2017/04/15 15:50:42 kim Exp $
 
 DISTNAME=      libgd-2.2.4
-#PKGREVISION=  1
 PKGNAME=       ${DISTNAME:S/libgd/gd/}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=libgd/}
 EXTRACT_SUFX=  .tar.xz
@@ -25,7 +24,6 @@
 CONFIGURE_ARGS+=       --with-freetype=${BUILDLINK_PREFIX.freetype2}
 CONFIGURE_ARGS+=       --with-jpeg=${BUILDLINK_PREFIX.jpeg}
 CONFIGURE_ARGS+=       --with-png=${BUILDLINK_PREFIX.png}
-CONFIGURE_ARGS+=       --with-tiff=${BUILDLINK_PREFIX.tiff}
 CONFIGURE_ARGS+=       --with-webp=${BUILDLINK_PREFIX.libwebp}
 CONFIGURE_ARGS+=       --with-zlib=${BUILDLINK_PREFIX.zlib}
 REPLACE_PERL+=         src/bdftogd
@@ -37,7 +35,6 @@
 .include "../../graphics/freetype2/buildlink3.mk"
 .include "../../graphics/libwebp/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
-.include "../../graphics/tiff/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 4bd0938ba691 -r c76bf9a2b473 graphics/gd/buildlink3.mk
--- a/graphics/gd/buildlink3.mk Sat Apr 15 15:48:12 2017 +0000
+++ b/graphics/gd/buildlink3.mk Sat Apr 15 15:50:42 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.40 2017/02/28 15:19:59 ryoon Exp $
+# $NetBSD: buildlink3.mk,v 1.41 2017/04/15 15:50:42 kim Exp $
 
 BUILDLINK_TREE+=       gd
 
@@ -14,6 +14,10 @@
 pkgbase := gd
 .include "../../mk/pkg-build-options.mk"
 
+.if !empty(PKG_BUILD_OPTIONS.gd:Mtiff)
+.include "../../graphics/tiff/buildlink3.mk"
+.endif
+
 .if !empty(PKG_BUILD_OPTIONS.gd:Mx11)
 .include "../../x11/libXpm/buildlink3.mk"
 .endif
@@ -23,7 +27,6 @@
 .include "../../graphics/freetype2/buildlink3.mk"
 .include "../../graphics/libwebp/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
-.include "../../graphics/tiff/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
 .endif # GD_BUILDLINK3_MK
diff -r 4bd0938ba691 -r c76bf9a2b473 graphics/gd/options.mk
--- a/graphics/gd/options.mk    Sat Apr 15 15:48:12 2017 +0000
+++ b/graphics/gd/options.mk    Sat Apr 15 15:50:42 2017 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index