summaryrefslogtreecommitdiff
path: root/graphics/librsvg2-rust/Makefile
blob: 5ce8c1d69078e598fd6371c5cbd3223ef0928d8c (plain)
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
PORTNAME=	librsvg
PORTVERSION=	2.56.0
PORTREVISION=	1
CATEGORIES=	graphics gnome
MASTER_SITES=	GNOME
PKGNAMESUFFIX=	2-rust
# XXX Teach USES=cargo to have proper default
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	desktop@FreeBSD.org
COMMENT=	Library for parsing and rendering SVG vector-graphic files
WWW=		https://live.gnome.org/LibRsvg

LICENSE=	LGPL20

BUILD_DEPENDS=	rst2man:textproc/py-docutils
LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libharfbuzz.so:print/harfbuzz \
		libpng.so:graphics/png

USES=		cargo compiler:c11 cpe gettext gmake gnome libtool pkgconfig tar:xz vala:build
CPE_VENDOR=	gnome
USE_GNOME=	cairo gdkpixbuf2 libxml2 pango introspection:build
USE_LDCONFIG=	yes

PORTSCOUT=	limitw:1,even
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-Bsymbolic \
		--disable-dependency-tracking \
		--disable-static \
		--enable-vala
CONFIGURE_ENV=	${CARGO_ENV}
MAKE_ENV=	${CARGO_ENV}
CARGO_ENV=	RUST_TARGET=${CARGO_BUILD_TARGET}
CARGO_BUILD=	no
CARGO_INSTALL=	no
CARGO_TEST=	no
INSTALL_TARGET=	install-strip
TEST_TARGET=	check

CONFLICTS_INSTALL=	librsvg2

OPTIONS_DEFINE=	DOCS

DOCS_BUILD_DEPENDS=	gi-docgen:textproc/py-gi-docgen
DOCS_CONFIGURE_ENABLE=	gtk-doc

post-patch:
# Add explicit <triple> subdir for --target from USES=cargo
	@${REINPLACE_CMD} 's/test "x$$cross_compiling" = "xyes"/true/' \
		${WRKSRC}/configure

.include <bsd.port.mk>