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 DISTNAME=${PORTNAME}-1.0_2020-05-01_4035a4fb49
10 DISTFILES=inkscape-${PORTVERSION}.${PORTREVISION}.tar.xz
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 \
39 libfreetype.so:print/freetype2 \
40 libenchant-2.so:textproc/enchant2
42 USES= compiler:c++11-lib cmake \
43 iconv:wchar_t jpeg pathfix pkgconfig python:3.5+ \
44 shebangfix tar:xz xorg \
47 USE_GNOME= gtkmm30 libxml2 libxslt cairo pango
48 USE_XORG= x11 xext ice sm
54 share/extensions/genpofiles.sh \
57 RUN_DEPENDS= ${PYNUMPY} \
58 ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
59 ${PYTHON_PKGNAMEPREFIX}scour>0:textproc/py-scour@${PY_FLAVOR}
61 OPTIONS_DEFINE= POPPLER VISIO CDR DBUS WPG LCMS SVG2 OPENMP IMAGEMAGICK GRAPHICSMAGICK NLS GTKSPELL
62 OPTIONS_DEFAULT=POPPLER VISIO CDR WPG LCMS SVG2 IMAGEMAGICK NLS GTKSPELL
63 OPTIONS_DEFAULT_amd64= OPENMP
66 POPPLER_DESC= PDF preview rendering
67 POPPLER_CMAKE_BOOL= ENABLE_POPPLER ENABLE_POPPLER_CAIRO
68 POPPLER_LIB_DEPENDS= libpoppler.so:graphics/poppler \
69 libpoppler-glib.so:graphics/poppler-glib
71 VISIO_DESC= Support for Microsoft Visio diagrams
72 VISIO_CMAKE_BOOL= WITH_LIBVISIO
73 VISIO_LIB_DEPENDS= librevenge-stream-0.0.so:textproc/librevenge \
74 libvisio-0.1.so:textproc/libvisio01
76 CDR_DESC= Support for CorelDRAW diagrams
77 CDR_CMAKE_BOOL= WITH_LIBCDR
78 CDR_LIB_DEPENDS= librevenge-stream-0.0.so:textproc/librevenge \
79 libcdr-0.1.so:graphics/libcdr01
81 DBUS_DESC = Support for DBus interface
82 DBUS_CMAKE_BOOL= WITH_DBUS
83 DBUS_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
84 libdbus-1.so:devel/dbus
86 WPG_DESC= Support for WordPerfect graphics
87 WPG_CMAKE_BOOL= WITH_LIBWPG
88 WPG_LIB_DEPENDS= libwpg-0.3.so:graphics/libwpg03
90 SVG2_DESC= Support for new SVG2 features
91 SVG2_CMAKE_BOOL= WITH_LIBWPG
92 SVG2_USE= GNOME=librsvg2,cairo
94 LCMS_DESC= LCMS support
95 LCMS_CMAKE_BOOL= ENABLE_LCMS
96 LCMS_LIB_DEPENDS= liblcms2.so:graphics/lcms2
98 GTKSPELL_DESC= Support of GTK spell
99 GTKSPELL_CMAKE_BOOL= WITH_GTKSPELL
100 GTKSPELL_LIB_DEPENDS= libgtkspell3-3.so:textproc/gtkspell3
102 OPENMP_DESC= OpenMP support
103 OPENMP_USES= compiler:openmp
104 OPENMP_USES_OFF= compiler:c++11-lib
105 OPENMP_CMAKE_BOOL= WITH_OPENMP
107 IMAGEMAGICK_DESC= Support of ImageMagick for raster extensions and image import resolution
108 IMAGEMAGICK_LIB_DEPENDS= libMagick++-6.so:graphics/ImageMagick6
109 IMAGEMAGICK_CMAKE_BOOL=WITH_IMAGE_MAGICK
111 GRAPHICSMAGICK_DESC= support of GraphicsMagick for raster extensions and image import resolution
112 GRAPHICSMAGICK_LIB_DEPENDS= libGraphicsMagick++.so:graphics/GraphicsMagick
113 GRAPHICSMAGICK_CMAKE_BOOL=WITH_GRAPHICS_MAGICK
115 NLS_DESC = Native Language Support
116 NLS_CMAKE_BOOL= WITH_NLS
120 @${REINPLACE_CMD} -e 's|web-set-att|web_set_att|g' \
122 @${REINPLACE_CMD} -e 's|web-transmit-att|web_transmit_att|g' \
124 @${REINPLACE_CMD} -e 's|COMMAND python3|COMMAND ${PYTHON_VERSION}|g' \
125 ${WRKSRC}/share/*/CMakeLists.txt
127 .include <bsd.port.mk>