enchant2
[inkscape-1.0-freebsd.git] / Makefile
index d9cb5480be7c4662794733afb70cc2587b6783b0..46ffa46583207e0ab257bd8534e007415595a9b7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,12 +36,16 @@ 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
+
 INSTALLS_ICONS=        yes
 
 SHEBANG_FILES= \
@@ -91,19 +95,19 @@ LCMS_LIB_DEPENDS=   liblcms2.so:graphics/lcms2
 
 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 +115,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>