blob: 420ad0edf49111f36d8e8e1400d91124c7dda066 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# $NetBSD: Makefile,v 1.214 2020/08/05 19:59:39 kamil Exp $
DISTNAME= inkscape-1.0
PKGREVISION= 5
CATEGORIES= graphics
MASTER_SITES= https://media.inkscape.org/dl/resources/file/
EXTRACT_SUFX= .tar.xz
MAINTAINER= reed@reedmedia.net
HOMEPAGE= https://www.inkscape.org/
COMMENT= Scalable Vector Graphics (SVG) editor
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/inkscape-1.0_2020-05-01_4035a4fb49
.if !exists(/usr/bin/iconv)
BUILD_DEPENDS+= libiconv-[0-9]*:../../converters/libiconv
.endif
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
# for inkex.py, needed by most python extension scripts
DEPENDS+= ${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml
# for desktop
TOOL_DEPENDS+= gettext-tools-[0-9]*:../../devel/gettext-tools
TOOLS_PLATFORM.msgfmt= # empty
EXTRACT_USING= bsdtar
GCC_REQD+= 4.5.2
# This should be resolved in CMakeLists.txt.
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/inkscape
USE_CMAKE= yes
USE_LANGUAGES= c c++11
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= intltool msgfmt msgmerge perl pkg-config
REPLACE_PERL+= man/fix-roff-punct
REPLACE_PERL+= share/extensions/*.p[lm]
REPLACE_PERL+= share/templates/create_defaults.pl
UNLIMIT_RESOURCES= datasize
LDFLAGS.DragonFly= -lX11
PYTHON_VERSIONS_INCOMPATIBLE= 27
SUBST_CLASSES+= pypath
SUBST_STAGE.pypath= pre-configure
SUBST_FILES.pypath= src/extension/implementation/script.cpp
SUBST_VARS.pypath= PYTHONBIN
SUBST_CLASSES+= pycmd
SUBST_STAGE.pycmd= pre-configure
SUBST_MESSAGE.pycmd= Replacing COMMAND python in CMakeFiles.
SUBST_FILES.pycmd+= share/*/CMakeLists.txt
SUBST_SED.pycmd= -e "s,COMMAND python3,COMMAND ${PYTHONBIN},g"
REPLACE_PYTHON+= share/extensions/*.py
CHECK_INTERPRETER_SKIP+= share/inkscape/extensions/genpofiles.sh
CHECK_INTERPRETER_SKIP+= share/inkscape/extensions/simplepath.rb
CHECK_PORTABILITY_SKIP+= packaging/macosx/Resources/bin/inkscape
CHECK_PORTABILITY_SKIP+= packaging/macosx/ScriptExec/launcher-quartz-no-macintegration.sh
CMAKE_ARGS+= -DPACKAGE_LOCALE_DIR=${PREFIX}/${PKGLOCALEDIR}/locale
MANCOMPRESSED= yes
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
CMAKE_ARGS+= -DIntl_INCLUDE_DIR=${BUILDLINK_PREFIX.gettext}/include
.endif
# There exists some race condition in create_default_templates.py that
# makes default.es_MX.svg sometimes not get installed.
# (gettext translation file dependency not correctly expressed in cmake?)
# Run the script post-build to ensure all files are generated.
post-build:
cd ${WRKSRC} && ${PYTHONBIN} ./share/templates/create_default_templates.py . .
BUILDLINK_API_DEPENDS.boehm-gc+= boehm-gc>=7.4
.include "../../converters/libcdr/buildlink3.mk"
.include "../../converters/librevenge/buildlink3.mk"
.include "../../converters/libvisio/buildlink3.mk"
.include "../../converters/libwpg/buildlink3.mk"
.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/gdl/buildlink3.mk"
.include "../../devel/googletest/buildlink3.mk"
.include "../../devel/libsigc++/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/lcms2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/potrace/buildlink3.mk"
.include "../../math/gsl/buildlink3.mk"
.include "../../math/double-conversion/buildlink3.mk"
.include "../../net/libsoup/buildlink3.mk"
.include "../../print/poppler-glib/buildlink3.mk"
.include "../../print/poppler-includes/buildlink3.mk"
.include "../../textproc/aspell/buildlink3.mk"
.include "../../textproc/gtkspell3/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../x11/gtkmm3/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|