pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/netpbm netpbm: Disable jp2 support by default



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9582b5e316a6
branches:  trunk
changeset: 336523:9582b5e316a6
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Jul 16 22:37:17 2019 +0000

description:
netpbm: Disable jp2 support by default

Re-enable it with the 'jasper' option.

Part of the process of trying to minimize the potential impact of a
vulnerable jasper.

Bump PKGREVISION

diffstat:

 graphics/netpbm/Makefile   |  13 ++++++++++---
 graphics/netpbm/options.mk |  12 ++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)

diffs (59 lines):

diff -r 54d9db6f821d -r 9582b5e316a6 graphics/netpbm/Makefile
--- a/graphics/netpbm/Makefile  Tue Jul 16 21:40:28 2019 +0000
+++ b/graphics/netpbm/Makefile  Tue Jul 16 22:37:17 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.219 2018/08/22 09:45:14 wiz Exp $
+# $NetBSD: Makefile,v 1.220 2019/07/16 22:37:17 nia Exp $
 
 DISTNAME=      netpbm-10.79.04
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    graphics
 MASTER_SITES=  #
 # manually created from svn checkout of
@@ -86,6 +86,8 @@
 
 INSTALLATION_DIRS=     ${PKGMANDIR}/man1 ${PKGMANDIR}/man3 ${PKGMANDIR}/man5 share/netpbm
 
+.include "options.mk"
+
 post-extract:
        cd ${WRKSRC} && ${CP} config.mk.in config.mk
        ${ECHO} "CFLAGS_SHLIB = -fPIC" >> ${WRKSRC}/config.mk
@@ -93,6 +95,12 @@
        ${ECHO} "JPEGHDR_DIR = ${BUILDLINK_PREFIX.jpeg}/include" >> ${WRKSRC}/config.mk
        ${ECHO} "TIFFLIB = ${BUILDLINK_PREFIX.tiff}/lib/libtiff.so" >> ${WRKSRC}/config.mk
        ${ECHO} "TIFFHDR_DIR = ${BUILDLINK_PREFIX.tiff}/include" >> ${WRKSRC}/config.mk
+.if !empty(PKG_OPTIONS:Mjasper)
+       ${ECHO} "JASPERLIB = ${BUILDLINK_PREFIX.jasper}/lib/libjasper.so" >> ${WRKSRC}/config.mk
+       ${ECHO} "JASPERHDR_DIR = ${BUILDLINK_PREFIX.jasper}/include" >> ${WRKSRC}/config.mk
+.else
+       ${ECHO} "JASPERLIB = NONE" >> ${WRKSRC}/config.mk
+.endif
        ${ECHO} "ZLIB = ${BUILDLINK_PREFIX.zlib}/lib/libz.so" >> ${WRKSRC}/config.mk
        ${ECHO} "ZHDR_DIR = ${BUILDLINK_PREFIX.zlib}/include" >> ${WRKSRC}/config.mk
 .if ${OPSYS} == "Darwin"
@@ -117,7 +125,6 @@
        ${INSTALL_DATA} ${WRKDIR}/netpbm-userguide/*.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
 
 .include "../../devel/zlib/buildlink3.mk"
-.include "../../graphics/jasper/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
diff -r 54d9db6f821d -r 9582b5e316a6 graphics/netpbm/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/netpbm/options.mk        Tue Jul 16 22:37:17 2019 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2019/07/16 22:37:17 nia Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.netpbm
+PKG_SUPPORTED_OPTIONS= jasper
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=   jasper
+.if !empty(PKG_OPTIONS:Mjasper)
+.include "../../graphics/jasper/buildlink3.mk"
+PLIST.jasper=  yes
+.endif



Home | Main Index | Thread Index | Old Index