d9cb5480be7c4662794733afb70cc2587b6783b0
[inkscape-1.0-freebsd.git] / Makefile
1 # Created by: Alexander Nedotsukov <bland@FreeBSD.org>
2 # $FreeBSD: head/graphics/inkscape/Makefile 533681 2020-05-02 10:00:12Z tcberner $
3
4 PORTNAME=       inkscape
5 PORTVERSION=    1
6 PORTREVISION=   0
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
11
12 MAINTAINER=     gnome@FreeBSD.org
13 COMMENT=        Full featured open source SVG editor
14
15 LICENSE=        GPLv2 GPLv2+ GPLv3 GPLv3+ LGPL21 LGPL3 LGPL3+ MPL11
16 LICENSE_COMB=   multi
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
25
26 BUILD_DEPENDS=  ${LOCALBASE}/include/boost/concept_check.hpp:devel/boost-libs
27
28 LIB_DEPENDS=    \
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 \
33         libgsl.so:math/gsl \
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
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
45 INSTALLS_ICONS= yes
46
47 SHEBANG_FILES=  \
48                 share/extensions/genpofiles.sh \
49                 man/fix-roff-punct
50
51 RUN_DEPENDS=    ${PYNUMPY} \
52                 ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
53                 ${PYTHON_PKGNAMEPREFIX}scour>0:textproc/py-scour@${PY_FLAVOR}
54
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
58 OPTIONS_SUB=    yes
59
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
64
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
69
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
74
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
79
80 WPG_DESC=               Support for WordPerfect graphics
81 WPG_CMAKE_BOOL=         WITH_LIBWPG
82 WPG_LIB_DEPENDS=        libwpg-0.3.so:graphics/libwpg03
83
84 SVG2_DESC=              Support for new SVG2 features
85 SVG2_CMAKE_BOOL=                WITH_LIBWPG
86 SVG2_USE=                       GNOME=librsvg2,cairo
87
88 LCMS_DESC=                      LCMS support
89 LCMS_CMAKE_BOOL=        ENABLE_LCMS
90 LCMS_LIB_DEPENDS=       liblcms2.so:graphics/lcms2
91
92 GTKSPELL_DESC=          Support of GTK spell    
93 GTKSPELL_CMAKE_BOOL=    WITH_GTKSPELL
94 GTKSPELL_LIB_DEPEND=    libgtkspell3-3.so:textproc/gtkspell3
95
96 OPENMP_DESC=            OpenMP support
97 OPENMP_USES=            compiler:openmp
98 OPENMP_USES_OFF=        compiler:c++11-lib
99 OPENMP_CMAKE_BOOL=      WITH_OPENMP
100
101 IMAGEMAGICK_DESC=       Support of ImageMagick for raster extensions and image import resolution (requires ImageMagick 7; set to OFF if you prefer GraphicsMagick)
102 IMAGEMAGICK_DEPENDS+=   libMagick++-7.so:/ImageMagick7
103 IMAGEMAGICK_CMAKE_BOOL=WITH_IMAGE_MAGICK
104
105 GRAPHICSMAGICK_DESC=    support of GraphicsMagick for raster extensions and image import resolution" 
106 GRAPHICSMAGICK_DEPENDS= libGraphicsMagick++.so:graphics/GraphicsMagick
107 GRAPHICSMAGICK_CMAKE_BOOL=WITH_GRAPHICS_MAGICK
108
109 NLS_DESC        =       Native Language Support
110 NLS_CMAKE_BOOL=         WITH_NLS
111 NLS_USES=               gettext
112
113 post-patch:
114 # Third entry in the table of interpreters is basename of executable
115         @${REINPLACE_CMD} -e 's|python|${PYTHON_VERSION}|3' \
116                 ${WRKSRC}/src/extension/implementation/script.cpp
117
118 .include <bsd.port.mk>