summaryrefslogtreecommitdiffstats
path: root/graphics/librsvg2/Makefile
blob: 6058972a02c8e036f76e94845b42d41ae6f5c2b4 (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
# Created by: Ade Lovett <ade@FreeBSD.org>
# $FreeBSD$
#   $MCom$

PORTNAME=   librsvg
PORTVERSION=    2.40.3
CATEGORIES= graphics gnome
MASTER_SITES=   GNOME
PKGNAMESUFFIX=  2
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Library for parsing and rendering SVG vector-graphic files

LIB_DEPENDS=    libfreetype.so:${PORTSDIR}/print/freetype2 \
        libcroco-0.6.so:${PORTSDIR}/textproc/libcroco
RUN_DEPENDS=    gtk-engines2>=2.7.5_1:${PORTSDIR}/x11-themes/gtk-engines2

USES=       gettext gmake libtool pathfix pkgconfig tar:xz
USE_GNOME=  gnomehier gnomeprefix libgsf gtk20 introspection:build
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
CONFIGURE_ARGS= --with-svgz \
        --disable-vala \
        --with-croco \
        --disable-Bsymbolic \
        --enable-gtk-theme

post-patch:
    @${REINPLACE_CMD} -e 's|GTK3_REQUIRED=3.[0-9].[0-9]|GTK3_REQUIRED=9.90.0|g' \
        ${WRKSRC}/configure

.include <bsd.port.mk>