aboutsummaryrefslogtreecommitdiff
path: root/graphics/inkscape/Makefile
blob: a320b5e54a57cb6339c3c98d6e54b32369e06a07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
# $FreeBSD$

PORTNAME=	inkscape
PORTVERSION=	0.92.0
CATEGORIES=	graphics gnome
MASTER_SITES=	https://media.inkscape.org/dl/resources/file/ \
		LOCAL/kwm

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Full featured open source SVG editor

LICENSE=	GPLv2+ GPLv3+ LGPL21 MPL
LICENSE_COMB=	multi
LICENSE_FILE_GPLv2=	${WRKSRC}/GPL2.txt
LICENSE_FILE_GPLv3=	${WRKSRC}/GPL3.txt
LICENSE_FILE_LGPL2=	${WRKRSC}/LGPL2.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 \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libpotrace.so:graphics/libpotrace \
		libpng.so:graphics/png \
		libMagick++-6.so:graphics/ImageMagick
#aspell?
#RUN_DEPENDS=	p5-XML-XQL>=0:textproc/p5-XML-XQL

USE_GNOME=	gtkmm24 libxslt
USES=		compiler:c++11-lib cmake cpe desktop-file-utils \
		gmake iconv jpeg pathfix perl5 pkgconfig python:2 \
		shebangfix tar:bzip2
USE_XORG=	x11
INSTALLS_ICONS=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CMAKE_ARGS+=	-DWITH_GNOME_VFS:BOOL=NO

python_CMD?=	${LOCALBASE}/bin/python2
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 python2|g' \
		${WRKSRC}/share/*/CMakeLists.txt

.include <bsd.port.mk>