1 # Created by: Alexander Nedotsukov <bland@FreeBSD.org>
2 # $FreeBSD: head/graphics/inkscape/Makefile 533681 2020-05-02 10:00:12Z tcberner $
7 CATEGORIES= graphics gnome
8 MASTER_SITES=https://inkscape.org/gallery/item/18460/
9 DISTFILES=inkscape-${PORTVERSION}.${PORTREVISION}.tar.xz
10 DISTNAME=${PORTNAME}-${PORTVERSION}.${PORTREVISION}_2020-05-01_4035a4fb49
12 MAINTAINER= gnome@FreeBSD.org
13 COMMENT= Full featured open source SVG editor
15 LICENSE= GPLv2 GPLv2+ GPLv3 GPLv3+ LGPL21 LGPL3 LGPL3+ MPL11
17 LICENSE_FILE_GPLv2 = ${WRKSRC}/LICENSES/GPL-2.0.txt
18 LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENSES/GPL-2.0-or-later.txt
19 LICENSE_FILE_GPLv3 = ${WRKSRC}/LICENSES/GPL-3.0.txt
20 LICENSE_FILE_GPLv3+ = ${WRKSRC}/LICENSES/GPL-3.0-or-later.txt
21 LICENSE_FILE_LGPL21 = ${WRKSRC}/LICENSES/LGPL-2.1.txt
22 LICENSE_FILE_LGPL3 = ${WRKSRC}/LICENSES/LGPL-3.0.txt
23 LICENSE_FILE_LGPL3+ = ${WRKSRC}/LICENSES/LGPL-3.0-or-later.txt
24 LICENSE_FILE_MPL11 = ${WRKSRC}/LICENSES/MPL-1.1.txt
26 BUILD_DEPENDS= ${LOCALBASE}/include/boost/concept_check.hpp:devel/boost-libs
29 libdouble-conversion.so:devel/double-conversion \
30 libsigc-2.0.so:devel/libsigc++20 \
31 libgdl-3.so:x11-toolkits/gdl \
32 libgc.so:devel/boehm-gc \
34 libpotrace.so:graphics/libpotrace \
35 libsoup-2.4.so:devel/libsoup \
36 libharfbuzz.so:print/harfbuzz \
37 libfontconfig.so:x11-fonts/fontconfig \
38 libpng.so:graphics/png \
40 USES= compiler:c++11-lib cmake \
41 iconv:wchar_t jpeg pathfix pkgconfig python:3.5+ \
42 shebangfix tar:xz xorg
43 USE_GNOME= gtkmm30 libxml2 libxslt cairo pango
44 USE_XORG= x11 xext ice
48 share/extensions/genpofiles.sh \
51 RUN_DEPENDS= ${PYNUMPY} \
52 ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
53 ${PYTHON_PKGNAMEPREFIX}scour>0:textproc/py-scour@${PY_FLAVOR}
55 OPTIONS_DEFINE= POPPLER VISIO CDR DBUS WPG LCMS SVG2 OPENMP IMAGEMAGICK GRAPHICSMAGICK NLS GTKSPELL
56 OPTIONS_DEFAULT=POPPLER VISIO CDR WPG LCMS SVG2 IMAGEMAGICK NLS GTKSPELL
57 OPTIONS_DEFAULT_amd64= OPENMP
60 POPPLER_DESC= PDF preview rendering
61 POPPLER_CMAKE_BOOL= ENABLE_POPPLER ENABLE_POPPLER_CAIRO
62 POPPLER_LIB_DEPENDS= libpoppler.so:graphics/poppler \
63 libpoppler-glib.so:graphics/poppler-glib
65 VISIO_DESC= Support for Microsoft Visio diagrams
66 VISIO_CMAKE_BOOL= WITH_LIBVISIO
67 VISIO_LIB_DEPENDS= librevenge-stream-0.0.so:textproc/librevenge \
68 libvisio-0.1.so:textproc/libvisio01
70 CDR_DESC= Support for CorelDRAW diagrams
71 CDR_CMAKE_BOOL= WITH_LIBCDR
72 CDR_LIB_DEPENDS= librevenge-stream-0.0.so:textproc/librevenge \
73 libcdr-0.1.so:graphics/libcdr01
75 DBUS_DESC = Support for DBus interface
76 DBUS_CMAKE_BOOL= WITH_DBUS
77 DBUS_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
78 libdbus-1.so:devel/dbus
80 WPG_DESC= Support for WordPerfect graphics
81 WPG_CMAKE_BOOL= WITH_LIBWPG
82 WPG_LIB_DEPENDS= libwpg-0.3.so:graphics/libwpg03
84 SVG2_DESC= Support for new SVG2 features
85 SVG2_CMAKE_BOOL= WITH_LIBWPG
86 SVG2_USE= GNOME=librsvg2,cairo
88 LCMS_DESC= LCMS support
89 LCMS_CMAKE_BOOL= ENABLE_LCMS
90 LCMS_LIB_DEPENDS= liblcms2.so:graphics/lcms2
92 GTKSPELL_DESC= Support of GTK spell
93 GTKSPELL_CMAKE_BOOL= WITH_GTKSPELL
94 GTKSPELL_LIB_DEPENDS= libgtkspell3-3.so:textproc/gtkspell3
96 OPENMP_DESC= OpenMP support
97 OPENMP_USES= compiler:openmp
98 OPENMP_USES_OFF= compiler:c++11-lib
99 OPENMP_CMAKE_BOOL= WITH_OPENMP
101 IMAGEMAGICK_DESC= Support of ImageMagick for raster extensions and image import resolution
102 IMAGEMAGICK_LIB_DEPENDS= libMagick++-6.so:graphics/ImageMagick6
103 IMAGEMAGICK_CMAKE_BOOL=WITH_IMAGE_MAGICK
105 GRAPHICSMAGICK_DESC= support of GraphicsMagick for raster extensions and image import resolution
106 GRAPHICSMAGICK_LIB_DEPENDS= libGraphicsMagick++.so:graphics/GraphicsMagick
107 GRAPHICSMAGICK_CMAKE_BOOL=WITH_GRAPHICS_MAGICK
109 NLS_DESC = Native Language Support
110 NLS_CMAKE_BOOL= WITH_NLS
114 @${REINPLACE_CMD} -e 's|web-set-att|web_set_att|g' \
116 @${REINPLACE_CMD} -e 's|web-transmit-att|web_transmit_att|g' \
119 .include <bsd.port.mk>