aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/inkscape/Makefile
blob: 21c55be3399e04c8bb007bb94eaaf4df5dfc5a8e (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
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
# $FreeBSD$

PORTNAME=   inkscape
PORTVERSION=    0.91
PORTREVISION=   12
CATEGORIES= graphics gnome
MASTER_SITES=   https://inkscape.global.ssl.fastly.net/media/resources/file/ \
        LOCAL/kwm

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

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 \
        liblcms.so:graphics/lcms \
        libpng.so:graphics/png \
        libMagick++-6.so:graphics/ImageMagick
#RUN_DEPENDS=   p5-XML-XQL>=0:textproc/p5-XML-XQL

USE_GNOME=  gtkmm24 intlhack libxslt
USES=       compiler:c++11-lib cpe desktop-file-utils gettext gmake iconv \
        libtool pathfix perl5 pkgconfig python:run shebangfix tar:bzip2
GNU_CONFIGURE=  yes
INSTALLS_ICONS= yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS= --without-gnome-vfs

python_CMD?=    ${LOCALBASE}/bin/python2
SHEBANG_FILES=  cxxtest/cxxtestgen.pl share/extensions/*.p[lm] \
        share/extensions/*.py share/extensions/genpofiles.sh

OPTIONS_DEFINE= POPPLER OPENMP VISIO CDR DBUS WPG
OPTIONS_DEFAULT=POPPLER VISIO CDR WPG
OPTIONS_SUB=    yes

CDR_DESC=       Support for CorelDRAW diagrams
CDR_CONFIGURE_ENABLE=   cdr
CDR_LIB_DEPENDS=    librevenge-stream-0.0.so:textproc/librevenge \
            libcdr-0.1.so:graphics/libcdr01

DBUS_CONFIGURE_ENABLE=  dbusapi
DBUS_LIB_DEPENDS=   libdbus-glib-1.so:devel/dbus-glib

OPENMP_USES=        compiler:openmp
OPENMP_USES_OFF=    compiler:features

POPPLER_DESC=       PDF preview rendering
POPPLER_CONFIGURE_ENABLE=   poppler-cairo
POPPLER_LIB_DEPENDS=    libpoppler-glib.so:graphics/poppler-glib

VISIO_DESC=     Support for Microsoft Visio diagrams
VISIO_CONFIGURE_ENABLE= visio
VISIO_LIB_DEPENDS=  librevenge-stream-0.0.so:textproc/librevenge \
            libvisio-0.1.so:textproc/libvisio01

WPG_DESC=       Support for WordPerfect graphics
WPG_CONFIGURE_ENABLE=   wpg
WPG_LIB_DEPENDS=    libwpg-0.3.so:graphics/libwpg03

.include <bsd.port.pre.mk>

.if ${CHOSEN_COMPILER_TYPE} == clang
CPPFLAGS+=  -Wno-mismatched-tags -Wno-unknown-attributes
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-ldl||g' \
        ${WRKSRC}/configure

.include <bsd.port.post.mk>