X-Git-Url: http://popeye.lapinbilly.eu/git/?p=inkscape-1.0-freebsd.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=a4166d93d37c0ca949805a3bae342c3f63f41757;hp=0000000000000000000000000000000000000000;hb=0031019286e1e7aa6340da32139ec3ca048e9dd0;hpb=b41a04a982322c1974113f3250f9241063969547 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a4166d9 --- /dev/null +++ b/Makefile @@ -0,0 +1,107 @@ +# Created by: Alexander Nedotsukov +# $FreeBSD: head/graphics/inkscape/Makefile 533681 2020-05-02 10:00:12Z tcberner $ + +PORTNAME= inkscape +PORTVERSION=1.0 +PORTREVISION=1 +CATEGORIES= graphics gnome +MASTER_SITES=https://inkscape.org/gallery/item/18460/ +DISTNAME=inkscape-1.0 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Full featured open source SVG editor + +LICENSE= GPLv2+ GPLv3+ LGPL21 MPL11 +LICENSE_COMB= multi +LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENSES/GPL-2.0.txt +LICENSE_FILE_GPLv3+ = ${WRKSRC}/LICENSES/GPL-3.0.txt +LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSES/LGPL-2.1.txt +LICENSE_FILE_MPL11= ${WRKSRC}/LICENSES/MPL-1.1.txt + +#BUILD_DEPENDS= ${LOCALBASE}/include/boost/concept_check.hpp:devel/boost-libs +LIB_DEPENDS= \ + libgsl.so:math/gsl \ + libpotrace.so:graphics/libpotrace \ + libpng.so:graphics/png \ + +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scour>0:textproc/py-scour@${PY_FLAVOR} + +USES= compiler:c++11-lib cmake \ + iconv:wchar_t jpeg pathfix pkgconfig python:3.7 \ + shebangfix tar:xz xorg +USE_GNOME= gtkmm30 libxml2 libxslt +USE_XORG= x11 +INSTALLS_ICONS= yes + +SHEBANG_FILES= \ + share/extensions/genpofiles.sh \ + man/fix-roff-punct + +#option(WITH_LPETOOL "Compile with LPE Tool" OFF) +#option(LPE_ENABLE_TEST_EFFECTS "Compile with test experimental LPEs enabled" OFF) + + +OPTIONS_DEFINE= POPPLER VISIO CDR DBUS WPG LCMS SVG2 OPENMP IMAGEMAGICK GRAPHICSMAGICK NLS +OPTIONS_DEFAULT=POPPLER VISIO CDR WPG LCMS SVG2 OPENMP IMAGEMAGICK NLS +OPTIONS_SUB= yes + +POPPLER_DESC= PDF preview rendering +POPPLER_CMAKE_BOOL= ENABLE_POPPLER ENABLE_POPPLER_CAIRO +POPPLER_LIB_DEPENDS= libpoppler.so:graphics/poppler \ + libpoppler-glib.so:graphics/poppler-glib + +VISIO_DESC= Support for Microsoft Visio diagrams +VISIO_CMAKE_BOOL= WITH_LIBVISIO +VISIO_LIB_DEPENDS= librevenge-stream-0.0.so:textproc/librevenge \ + libvisio-0.1.so:textproc/libvisio01 + +CDR_DESC= Support for CorelDRAW diagrams +CDR_CMAKE_BOOL= WITH_LIBCDR +CDR_LIB_DEPENDS= librevenge-stream-0.0.so:textproc/librevenge \ + libcdr-0.1.so:graphics/libcdr01 + +DBUS_DESC = Support for DBus interface +DBUS_CMAKE_BOOL= WITH_DBUS +DBUS_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \ + libdbus-1.so:devel/dbus + +WPG_DESC= Support for WordPerfect graphics +WPG_CMAKE_BOOL= WITH_LIBWPG +WPG_LIB_DEPENDS= libwpg-0.3.so:graphics/libwpg03 + +SVG2_DESC= Support for new SVG2 features +SVG2_CMAKE_BOOL= WITH_LIBWPG +SVG2_USE= GNOME=librsvg2,cairo + +LCMS_DESC= LCMS support +LCMS_CMAKE_BOOL= ENABLE_LCMS +LCMS_LIB_DEPENDS= liblcms2.so:graphics/lcms2 + +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+= convert:graphics/ImageMagick7 +IMAGEMAGICK_CMAKE_BOOL=WITH_IMAGE_MAGICK + +GRAPHICSMAGICK_DESC= support of GraphicsMagick for raster extensions and image import resolution" +GRAPHICSMAGICK_USES= graphics/GraphicsMagick7 +GRAPHICSMAGICK_CMAKE_BOOL=WITH_GRAPHICS_MAGICK +# temporary until the build works for the !NLS case +#USES+= gettext +NLS_DESC = Native Language Support +NLS_CMAKE_BOOL= WITH_NLS +NLS_USES= gettext + +#post-patch: +# @${REINPLACE_CMD} -e 's|COMMAND python|COMMAND ${PYTHON_VERSION}|g' \ +# ${WRKSRC}/share/*/CMakeLists.txt +# # 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 + +.include