Wed Aug 23 13:48:35 2023 UTC ()
graphics/inkscape: Fix build on NetBSD 9


(pho)
diff -r1.271 -r1.272 pkgsrc/graphics/inkscape/Makefile

cvs diff -r1.271 -r1.272 pkgsrc/graphics/inkscape/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/inkscape/Makefile 2023/08/14 05:24:34 1.271
+++ pkgsrc/graphics/inkscape/Makefile 2023/08/23 13:48:34 1.272
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.271 2023/08/14 05:24:34 wiz Exp $ 1# $NetBSD: Makefile,v 1.272 2023/08/23 13:48:34 pho Exp $
2 2
3DISTNAME= inkscape-1.3 3DISTNAME= inkscape-1.3
4PKGREVISION= 1 4PKGREVISION= 1
5CATEGORIES= graphics 5CATEGORIES= graphics
6MASTER_SITES= https://media.inkscape.org/dl/resources/file/ 6MASTER_SITES= https://media.inkscape.org/dl/resources/file/
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8 8
9MAINTAINER= reed@reedmedia.net 9MAINTAINER= reed@reedmedia.net
10HOMEPAGE= https://www.inkscape.org/ 10HOMEPAGE= https://www.inkscape.org/
11COMMENT= Scalable Vector Graphics (SVG) editor 11COMMENT= Scalable Vector Graphics (SVG) editor
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14.if !exists(/usr/bin/iconv) 14.if !exists(/usr/bin/iconv)
@@ -23,26 +23,34 @@ DEPENDS+= ${PYPKGPREFIX}-scour-[0-9]*:. @@ -23,26 +23,34 @@ DEPENDS+= ${PYPKGPREFIX}-scour-[0-9]*:.
23 23
24WRKSRC= ${WRKDIR}/inkscape-1.3_2023-07-21_0e150ed6c4 24WRKSRC= ${WRKDIR}/inkscape-1.3_2023-07-21_0e150ed6c4
25 25
26CPPFLAGS.NetBSD+= -Urounddown 26CPPFLAGS.NetBSD+= -Urounddown
27CPPFLAGS.NetBSD+= -Uroundup 27CPPFLAGS.NetBSD+= -Uroundup
28 28
29# This should be resolved in CMakeLists.txt. 29# This should be resolved in CMakeLists.txt.
30LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/inkscape 30LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/inkscape
31 31
32USE_LANGUAGES= c c++ 32USE_LANGUAGES= c c++
33USE_CXX_FEATURES+= c++17 33USE_CXX_FEATURES+= c++17
34USE_LIBTOOL= yes 34USE_LIBTOOL= yes
35USE_PKGLOCALEDIR= yes 35USE_PKGLOCALEDIR= yes
 36# GCC 7 is not good enough. It chokes on ${WRKSRC}/src/object/sp-factory.cpp:
 37# > static Func constexpr null = [] () -> SPObject* { return nullptr; };
 38# by emitting duplicate definitions for the same static data member. This
 39# is because its C++17 support is incomplete and does not treat constexpr
 40# data members as inline symbols. GCC 8 is also not good enough because it
 41# fails to infer the type of std::uniform_real_distribution() used in
 42# ${WRKSRC}/src/ui/tools/booleans-subitems.cpp.
 43GCC_REQD+= 9
36# GNU make (gmake) is required for handling whitespace in filename. 44# GNU make (gmake) is required for handling whitespace in filename.
37USE_TOOLS+= gmake 45USE_TOOLS+= gmake
38USE_TOOLS+= msgfmt msgmerge perl pkg-config 46USE_TOOLS+= msgfmt msgmerge perl pkg-config
39 47
40REPLACE_PERL+= man/fix-roff-punct 48REPLACE_PERL+= man/fix-roff-punct
41REPLACE_PERL+= share/extensions/*.p[lm] 49REPLACE_PERL+= share/extensions/*.p[lm]
42REPLACE_PERL+= share/templates/create_defaults.pl 50REPLACE_PERL+= share/templates/create_defaults.pl
43 51
44UNLIMIT_RESOURCES= datasize 52UNLIMIT_RESOURCES= datasize
45 53
46PYTHON_VERSIONS_INCOMPATIBLE= 27 38 54PYTHON_VERSIONS_INCOMPATIBLE= 27 38
47 55
48SUBST_CLASSES+= pypath 56SUBST_CLASSES+= pypath