blob: b857c2bec49241a1314da6a76ac9cf7f0cb82a9e (
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
|
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
# $FreeBSD$
PORTNAME= inkscape
PORTVERSION= 0.48.4
PORTREVISION= 4
CATEGORIES= graphics gnome
MASTER_SITES= SF
MASTER_SITE_SUBDIR=${PORTNAME:tl}/${PORTNAME:tl}/${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
COMMENT= Full featured open source SVG editor
BUILD_DEPENDS= ${LOCALBASE}/include/boost/concept_check.hpp:${PORTSDIR}/devel/boost-libs
LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt \
libgc.so:${PORTSDIR}/devel/boehm-gc \
libgsl.so:${PORTSDIR}/math/gsl \
libgtkspell.so:${PORTSDIR}/textproc/gtkspell \
liblcms.so:${PORTSDIR}/graphics/lcms \
libwpg-0.2.so:${PORTSDIR}/graphics/libwpg \
libpng15.so:${PORTSDIR}/graphics/png \
libMagick++.so:${PORTSDIR}/graphics/ImageMagick
RUN_DEPENDS= p5-XML-XQL>=0:${PORTSDIR}/textproc/p5-XML-XQL
USE_BZIP2= yes
USE_GNOME= gtkmm24 intlhack libxslt
USES= desktop-file-utils gettext gmake pathfix perl5 shebangfix
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
python_OLD_CMD?=/usr/bin/env python
python_CMD?= ${LOCALBASE}/bin/python2
SHEBANG_FILES= cxxtest/cxxtestgen.pl share/extensions/*.p[lm] \
share/extensions/*.py
OPTIONS_DEFINE= GNOMEVFS POPPLER
OPTIONS_DEFAULT=POPPLER
POPPLER_DESC= PDF preview rendering
GNOMEVFS_DESC= Use gnomevfs for loading files
.include <bsd.port.options.mk>
_CCVERSION!= ${CC} --version
.if ${_CCVERSION:Mclang}
CPPFLAGS+= -Wno-mismatched-tags
.endif
.if ${PORT_OPTIONS:MGNOMEVFS}
USE_GNOME+= gnomevfs2
CONFIGURE_ARGS+= --with-gnome-vfs
.else
CONFIGURE_ARGS+= --without-gnome-vfs
.endif
.if ${PORT_OPTIONS:MPOPPLER}
LIB_DEPENDS+= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib
CONFIGURE_ARGS+= --enable-poppler-cairo
.else
CONFIGURE_ARGS+= --enable-poppler-cairo=no
.endif
post-patch:
@${REINPLACE_CMD} -e 's|libpng >= 1.2|libpng15 >= 1.2|g' \
-e 's|-ldl||g' \
${WRKSRC}/configure
.if ! ${PORT_OPTIONS:MPOPPLER}
@${REINPLACE_CMD} -e 's|poppler|pdisable|g' \
${WRKSRC}/configure
.endif
.include <bsd.port.mk>
|