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