1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/graphics/inkscape/Makefile
Niclas Zeising be6c15b5c6 Add USES=xorg USES=gl, ports categories g
Add USES=xorg and USES=gl to ports in categories starting with 'g'.
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-05 22:16:14 +00:00

99 lines
3.2 KiB
Makefile

# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
# $FreeBSD$
PORTNAME= inkscape
PORTVERSION= 0.92.4
PORTREVISION= 11
CATEGORIES= graphics gnome
MASTER_SITES= https://media.inkscape.org/dl/resources/file/
MAINTAINER= gnome@FreeBSD.org
COMMENT= Full featured open source SVG editor
LICENSE= GPLv2+ GPLv3+ LGPL21 MPL11
LICENSE_COMB= multi
LICENSE_FILE_GPLv2+ = ${WRKSRC}/GPL2.txt
LICENSE_FILE_GPLv3+ = ${WRKSRC}/GPL3.txt
LICENSE_FILE_LGPL21= ${WRKSRC}/LGPL2.1.txt
BUILD_DEPENDS= ${LOCALBASE}/include/boost/concept_check.hpp:devel/boost-libs
LIB_DEPENDS= libpopt.so:devel/popt \
libgc.so:devel/boehm-gc \
libgsl.so:math/gsl \
libgtkspell.so:textproc/gtkspell \
liblcms2.so:graphics/lcms2 \
libfribidi.so:converters/fribidi \
libaspell.so:textproc/aspell \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libpotrace.so:graphics/libpotrace \
libpng.so:graphics/png \
libMagick++-6.so:graphics/ImageMagick6
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 cpe desktop-file-utils gnome \
iconv:wchar_t jpeg pathfix pkgconfig python:2.7 \
shebangfix tar:bzip2 xorg
USE_GNOME= gtkmm24 libxml2 libxslt
USE_XORG= x11
INSTALLS_ICONS= yes
CMAKE_ARGS+= -DWITH_GNOME_VFS:BOOL=NO
SHEBANG_FILES= cxxtest/cxxtestgen.pl share/extensions/*.p[lm] \
share/extensions/*.py share/extensions/genpofiles.sh \
fix-roff-punct
OPTIONS_DEFINE= POPPLER VISIO CDR DBUS WPG
OPTIONS_DEFAULT=POPPLER VISIO CDR WPG
OPTIONS_SUB= yes
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_CMAKE_BOOL= WITH_DBUS
DBUS_LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \
libdbus-1.so:devel/dbus
#OPENMP_USES= compiler:openmp
#OPENMP_USES_OFF= compiler:c++11-lib
#OPENMP_CMAKE_BOOL= WITH_OPENMP
CMAKE_ARGS+= -DWITH_OPENMP:BOOL=NO
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
WPG_DESC= Support for WordPerfect graphics
WPG_CMAKE_BOOL= WITH_LIBWPG
WPG_LIB_DEPENDS= libwpg-0.3.so:graphics/libwpg03
# temporary until the build works for the !NLS case
USES+= gettext
#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
# Obtained from Arch Linux
@${REINPLACE_CMD} -e 's|gTrue|true|g' -e 's|gFalse|false|g' -e 's|GBool|bool|g' \
${WRKSRC}/src/extension/internal/pdfinput/pdf-parser.*
# Fix with poppler 0.73
@${REINPLACE_CMD} -E '/#include "goo\/gtypes.h"/d' \
${WRKSRC}/src/extension/internal/pdfinput/pdf-parser.h
.include <bsd.port.mk>