| @@ -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 | |
3 | DISTNAME= inkscape-1.3 | | 3 | DISTNAME= inkscape-1.3 |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 1 |
5 | CATEGORIES= graphics | | 5 | CATEGORIES= graphics |
6 | MASTER_SITES= https://media.inkscape.org/dl/resources/file/ | | 6 | MASTER_SITES= https://media.inkscape.org/dl/resources/file/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= reed@reedmedia.net | | 9 | MAINTAINER= reed@reedmedia.net |
10 | HOMEPAGE= https://www.inkscape.org/ | | 10 | HOMEPAGE= https://www.inkscape.org/ |
11 | COMMENT= Scalable Vector Graphics (SVG) editor | | 11 | COMMENT= Scalable Vector Graphics (SVG) editor |
12 | LICENSE= gnu-gpl-v2 | | 12 | LICENSE= 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 | |
24 | WRKSRC= ${WRKDIR}/inkscape-1.3_2023-07-21_0e150ed6c4 | | 24 | WRKSRC= ${WRKDIR}/inkscape-1.3_2023-07-21_0e150ed6c4 |
25 | | | 25 | |
26 | CPPFLAGS.NetBSD+= -Urounddown | | 26 | CPPFLAGS.NetBSD+= -Urounddown |
27 | CPPFLAGS.NetBSD+= -Uroundup | | 27 | CPPFLAGS.NetBSD+= -Uroundup |
28 | | | 28 | |
29 | # This should be resolved in CMakeLists.txt. | | 29 | # This should be resolved in CMakeLists.txt. |
30 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/inkscape | | 30 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/inkscape |
31 | | | 31 | |
32 | USE_LANGUAGES= c c++ | | 32 | USE_LANGUAGES= c c++ |
33 | USE_CXX_FEATURES+= c++17 | | 33 | USE_CXX_FEATURES+= c++17 |
34 | USE_LIBTOOL= yes | | 34 | USE_LIBTOOL= yes |
35 | USE_PKGLOCALEDIR= yes | | 35 | USE_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. |
| | | 43 | GCC_REQD+= 9 |
36 | # GNU make (gmake) is required for handling whitespace in filename. | | 44 | # GNU make (gmake) is required for handling whitespace in filename. |
37 | USE_TOOLS+= gmake | | 45 | USE_TOOLS+= gmake |
38 | USE_TOOLS+= msgfmt msgmerge perl pkg-config | | 46 | USE_TOOLS+= msgfmt msgmerge perl pkg-config |
39 | | | 47 | |
40 | REPLACE_PERL+= man/fix-roff-punct | | 48 | REPLACE_PERL+= man/fix-roff-punct |
41 | REPLACE_PERL+= share/extensions/*.p[lm] | | 49 | REPLACE_PERL+= share/extensions/*.p[lm] |
42 | REPLACE_PERL+= share/templates/create_defaults.pl | | 50 | REPLACE_PERL+= share/templates/create_defaults.pl |
43 | | | 51 | |
44 | UNLIMIT_RESOURCES= datasize | | 52 | UNLIMIT_RESOURCES= datasize |
45 | | | 53 | |
46 | PYTHON_VERSIONS_INCOMPATIBLE= 27 38 | | 54 | PYTHON_VERSIONS_INCOMPATIBLE= 27 38 |
47 | | | 55 | |
48 | SUBST_CLASSES+= pypath | | 56 | SUBST_CLASSES+= pypath |