pkgsrc-Bugs archive

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

pkg/52149: make tiff optional for libwebp



>Number:         52149
>Category:       pkg
>Synopsis:       make tiff optional for libwebp
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 09 23:05:00 +0000 2017
>Originator:     Kimmo Suominen
>Release:        NetBSD 7.0.2
>Organization:
	
>Environment:
	
	
System: NetBSD equinoxe.gw.com 7.0.2 NetBSD 7.0.2 (XEN3_DOMU.201610210724Z) amd64
Architecture: x86_64
Machine: amd64
>Description:
        Make tiff option when building libwebp, as tiff has many long-standing
        vulnerabilities.
>How-To-Repeat:
	
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/libwebp/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- Makefile	28 Feb 2017 14:40:47 -0000	1.21
+++ Makefile	9 Apr 2017 23:01:06 -0000
@@ -1,6 +1,7 @@
 # $NetBSD: Makefile,v 1.21 2017/02/28 14:40:47 ryoon Exp $
 
 DISTNAME=	libwebp-0.6.0
+PKGREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	http://downloads.webmproject.org/releases/webp/
 
@@ -9,6 +10,8 @@
 COMMENT=	WebP image format library and tools
 LICENSE=	modified-bsd
 
+.include "options.mk"
+
 USE_LIBTOOL=	yes
 GNU_CONFIGURE=	yes
 
@@ -29,6 +32,5 @@
 
 .include "../../graphics/giflib/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
-.include "../../graphics/tiff/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: options.mk
===================================================================
RCS file: options.mk
diff -N options.mk
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ options.mk	9 Apr 2017 23:01:06 -0000
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.libwebp
+PKG_SUPPORTED_OPTIONS=	tiff
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtiff)
+.include "../../graphics/tiff/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--disable-tiff
+.endif

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index