cleaning
[inkscape-1.0-freebsd.git] / Makefile
index d9cb5480be7c4662794733afb70cc2587b6783b0..3358fffd43d879da0b331fcb146a11d16a17c094 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,8 +6,8 @@ PORTVERSION=    1
 PORTREVISION=  0
 CATEGORIES=    graphics gnome
 MASTER_SITES=https://inkscape.org/gallery/item/18460/
+DISTNAME=${PORTNAME}-1.0_2020-05-01_4035a4fb49
 DISTFILES=inkscape-${PORTVERSION}.${PORTREVISION}.tar.xz
-DISTNAME=${PORTNAME}-${PORTVERSION}.${PORTREVISION}_2020-05-01_4035a4fb49
 
 MAINTAINER=    gnome@FreeBSD.org
 COMMENT=       Full featured open source SVG editor
@@ -36,12 +36,18 @@ LIB_DEPENDS=        \
        libharfbuzz.so:print/harfbuzz \
        libfontconfig.so:x11-fonts/fontconfig \
        libpng.so:graphics/png \
+       libfreetype.so:print/freetype2 \
+       libenchant-2.so:textproc/enchant2
 
 USES=  compiler:c++11-lib cmake \
                iconv:wchar_t jpeg pathfix pkgconfig python:3.5+ \
-               shebangfix tar:xz xorg
+               shebangfix tar:xz xorg \
+               desktop-file-utils
+
 USE_GNOME=     gtkmm30 libxml2 libxslt cairo pango
-USE_XORG=      x11 xext ice
+USE_XORG=      x11 xext ice sm
+
+USE_LDCONFIG=  yes
 INSTALLS_ICONS=        yes
 
 SHEBANG_FILES= \
@@ -89,21 +95,21 @@ LCMS_DESC=                  LCMS support
 LCMS_CMAKE_BOOL=       ENABLE_LCMS
 LCMS_LIB_DEPENDS=      liblcms2.so:graphics/lcms2
 
-GTKSPELL_DESC=         Support of GTK spell    
+GTKSPELL_DESC=         Support of GTK spell
 GTKSPELL_CMAKE_BOOL=   WITH_GTKSPELL
-GTKSPELL_LIB_DEPEND  libgtkspell3-3.so:textproc/gtkspell3
+GTKSPELL_LIB_DEPENDS=  libgtkspell3-3.so:textproc/gtkspell3
 
 OPENMP_DESC=           OpenMP support
 OPENMP_USES=           compiler:openmp
 OPENMP_USES_OFF=       compiler:c++11-lib
 OPENMP_CMAKE_BOOL=     WITH_OPENMP
 
-IMAGEMAGICK_DESC=      Support of ImageMagick for raster extensions and image import resolution (requires ImageMagick 7; set to OFF if you prefer GraphicsMagick)
-IMAGEMAGICK_DEPENDS+=  libMagick++-7.so:/ImageMagick7
+IMAGEMAGICK_DESC=      Support of ImageMagick for raster extensions and image import resolution
+IMAGEMAGICK_LIB_DEPENDS=       libMagick++-6.so:graphics/ImageMagick6
 IMAGEMAGICK_CMAKE_BOOL=WITH_IMAGE_MAGICK
 
-GRAPHICSMAGICK_DESC=   support of GraphicsMagick for raster extensions and image import resolution
-GRAPHICSMAGICK_DEPENDS=        libGraphicsMagick++.so:graphics/GraphicsMagick
+GRAPHICSMAGICK_DESC=   support of GraphicsMagick for raster extensions and image import resolution
+GRAPHICSMAGICK_LIB_DEPENDS=    libGraphicsMagick++.so:graphics/GraphicsMagick
 GRAPHICSMAGICK_CMAKE_BOOL=WITH_GRAPHICS_MAGICK
 
 NLS_DESC       =       Native Language Support
@@ -111,8 +117,11 @@ NLS_CMAKE_BOOL=            WITH_NLS
 NLS_USES=              gettext
 
 post-patch:
-# Third entry in the table of interpreters is basename of executable
-       @${REINPLACE_CMD} -e 's|python|${PYTHON_VERSION}|3' \
-               ${WRKSRC}/src/extension/implementation/script.cpp
+       @${REINPLACE_CMD} -e 's|web-set-att|web_set_att|g' \
+               ${WRKSRC}/po/*.po
+       @${REINPLACE_CMD} -e 's|web-transmit-att|web_transmit_att|g' \
+               ${WRKSRC}/po/*.po
+       @${REINPLACE_CMD} -e 's|COMMAND python3|COMMAND ${PYTHON_VERSION}|g' \
+               ${WRKSRC}/share/*/CMakeLists.txt
 
 .include <bsd.port.mk>