pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/netpbm
Module Name: pkgsrc
Committed By: nia
Date: Tue Jul 16 22:37:17 UTC 2019
Modified Files:
pkgsrc/graphics/netpbm: Makefile
Added Files:
pkgsrc/graphics/netpbm: options.mk
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.219 -r1.220 pkgsrc/graphics/netpbm/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/netpbm/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/graphics/netpbm/Makefile
diff -u pkgsrc/graphics/netpbm/Makefile:1.219 pkgsrc/graphics/netpbm/Makefile:1.220
--- pkgsrc/graphics/netpbm/Makefile:1.219 Wed Aug 22 09:45:14 2018
+++ pkgsrc/graphics/netpbm/Makefile Tue Jul 16 22:37:17 2019
@@ -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 @@ SUBST_SED.xopen+= -e '/_POSIX_SOURCE.*fd
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 @@ post-extract:
${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 @@ post-install:
${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"
Added files:
Index: pkgsrc/graphics/netpbm/options.mk
diff -u /dev/null pkgsrc/graphics/netpbm/options.mk:1.1
--- /dev/null Tue Jul 16 22:37:17 2019
+++ pkgsrc/graphics/netpbm/options.mk Tue Jul 16 22:37:17 2019
@@ -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