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/
11 MAINTAINER= gnome@FreeBSD.org
12 COMMENT= Full featured open source SVG editor
14 LICENSE= GPLv2+ GPLv3+ LGPL21 MPL11
16 LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENSES/GPL-2.0.txt
17 LICENSE_FILE_GPLv3+ = ${WRKSRC}/LICENSES/GPL-3.0.txt
18 LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSES/LGPL-2.1.txt
19 LICENSE_FILE_MPL11= ${WRKSRC}/LICENSES/MPL-1.1.txt
21 #BUILD_DEPENDS= ${LOCALBASE}/include/boost/concept_check.hpp:devel/boost-libs
24 libpotrace.so:graphics/libpotrace \
25 libpng.so:graphics/png \
27 RUN_DEPENDS= ${PYNUMPY} \
28 ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
29 ${PYTHON_PKGNAMEPREFIX}scour>0:textproc/py-scour@${PY_FLAVOR}
31 USES= compiler:c++11-lib cmake \
32 iconv:wchar_t jpeg pathfix pkgconfig python:3.7 \
33 shebangfix tar:xz xorg
34 USE_GNOME= gtkmm30 libxml2 libxslt
39 share/extensions/genpofiles.sh \
42 #option(WITH_LPETOOL "Compile with LPE Tool" OFF)
43 #option(LPE_ENABLE_TEST_EFFECTS "Compile with test experimental LPEs enabled" OFF)
46 OPTIONS_DEFINE= POPPLER VISIO CDR DBUS WPG LCMS SVG2 OPENMP IMAGEMAGICK GRAPHICSMAGICK NLS
47 OPTIONS_DEFAULT=POPPLER VISIO CDR WPG LCMS SVG2 OPENMP IMAGEMAGICK NLS
50 POPPLER_DESC= PDF preview rendering
51 POPPLER_CMAKE_BOOL= ENABLE_POPPLER ENABLE_POPPLER_CAIRO
52 POPPLER_LIB_DEPENDS= libpoppler.so:graphics/poppler \
53 libpoppler-glib.so:graphics/poppler-glib
55 VISIO_DESC= Support for Microsoft Visio diagrams
56 VISIO_CMAKE_BOOL= WITH_LIBVISIO
57 VISIO_LIB_DEPENDS= librevenge-stream-0.0.so:textproc/librevenge \
58 libvisio-0.1.so:textproc/libvisio01
60 CDR_DESC= Support for CorelDRAW diagrams
61 CDR_CMAKE_BOOL= WITH_LIBCDR
62 CDR_LIB_DEPENDS= librevenge-stream-0.0.so:textproc/librevenge \
63 libcdr-0.1.so:graphics/libcdr01
65 DBUS_DESC = Support for DBus interface
66 DBUS_CMAKE_BOOL= WITH_DBUS
67 DBUS_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
68 libdbus-1.so:devel/dbus
70 WPG_DESC= Support for WordPerfect graphics
71 WPG_CMAKE_BOOL= WITH_LIBWPG
72 WPG_LIB_DEPENDS= libwpg-0.3.so:graphics/libwpg03
74 SVG2_DESC= Support for new SVG2 features
75 SVG2_CMAKE_BOOL= WITH_LIBWPG
76 SVG2_USE= GNOME=librsvg2,cairo
78 LCMS_DESC= LCMS support
79 LCMS_CMAKE_BOOL= ENABLE_LCMS
80 LCMS_LIB_DEPENDS= liblcms2.so:graphics/lcms2
82 OPENMP_DESC= OpenMP support
83 OPENMP_USES= compiler:openmp
84 OPENMP_USES_OFF= compiler:c++11-lib
85 OPENMP_CMAKE_BOOL= WITH_OPENMP
87 IMAGEMAGICK_DESC= Support of ImageMagick for raster extensions and image import resolution (requires ImageMagick 7; set to OFF if you prefer GraphicsMagick)
88 IMAGEMAGICK_DEPENDS+= convert:graphics/ImageMagick7
89 IMAGEMAGICK_CMAKE_BOOL=WITH_IMAGE_MAGICK
91 GRAPHICSMAGICK_DESC= support of GraphicsMagick for raster extensions and image import resolution"
92 GRAPHICSMAGICK_USES= graphics/GraphicsMagick7
93 GRAPHICSMAGICK_CMAKE_BOOL=WITH_GRAPHICS_MAGICK
94 # temporary until the build works for the !NLS case
96 NLS_DESC = Native Language Support
97 NLS_CMAKE_BOOL= WITH_NLS
101 # @${REINPLACE_CMD} -e 's|COMMAND python|COMMAND ${PYTHON_VERSION}|g' \
102 # ${WRKSRC}/share/*/CMakeLists.txt
103 # # Third entry in the table of interpreters is basename of executable
104 # @${REINPLACE_CMD} -e 's|python|${PYTHON_VERSION}|3' \
105 # ${WRKSRC}/src/extension/implementation/script.cpp
107 .include <bsd.port.mk>