2019-01-16 02:11:59 +01:00
|
|
|
# Created by: Ade Lovett <ade@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= librsvg
|
2020-07-04 10:43:59 +02:00
|
|
|
PORTVERSION= 2.48.8
|
2019-01-16 02:11:59 +01:00
|
|
|
CATEGORIES= graphics gnome
|
2019-05-15 05:13:13 +02:00
|
|
|
MASTER_SITES= GNOME
|
2019-01-16 02:11:59 +01:00
|
|
|
PKGNAMESUFFIX= 2-rust
|
2019-05-15 05:13:13 +02:00
|
|
|
DIST_SUBDIR= gnome2
|
2019-01-16 02:11:59 +01:00
|
|
|
|
|
|
|
MAINTAINER= tobik@FreeBSD.org
|
|
|
|
COMMENT= Library for parsing and rendering SVG vector-graphic files
|
|
|
|
|
|
|
|
LICENSE= LGPL20
|
|
|
|
|
2020-03-19 08:55:52 +01:00
|
|
|
BUILD_DEPENDS= ${RUST_DEFAULT}>=1.39.0:lang/${RUST_DEFAULT} \
|
2019-01-16 02:11:59 +01:00
|
|
|
valac:lang/vala
|
2020-03-19 08:55:52 +01:00
|
|
|
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
|
|
|
libfreetype.so:print/freetype2 \
|
2020-04-01 08:10:40 +02:00
|
|
|
libharfbuzz.so:print/harfbuzz \
|
2020-03-19 08:55:52 +01:00
|
|
|
libpng.so:graphics/png
|
2019-01-16 02:11:59 +01:00
|
|
|
|
|
|
|
USES= gettext gmake gnome libtool pkgconfig tar:xz
|
2020-03-19 08:55:52 +01:00
|
|
|
USE_GNOME= cairo gdkpixbuf2 gnomeprefix libxml2 pango introspection:build
|
2019-01-16 02:11:59 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2020-03-19 08:55:52 +01:00
|
|
|
CONFIGURE_ARGS= --disable-Bsymbolic \
|
2019-01-16 02:11:59 +01:00
|
|
|
--disable-dependency-tracking \
|
2020-03-19 08:55:52 +01:00
|
|
|
--disable-static \
|
|
|
|
--enable-vala
|
2019-01-16 02:11:59 +01:00
|
|
|
# Make sure it uses the Rust toolchain from ports.
|
|
|
|
CONFIGURE_ENV= CARGO=${LOCALBASE}/bin/cargo \
|
|
|
|
RUSTC=${LOCALBASE}/bin/rustc
|
2020-03-30 08:46:29 +02:00
|
|
|
MAKE_ENV= CARGO_BUILD_JOBS=${MAKE_JOBS_NUMBER} \
|
|
|
|
RUSTC=${LOCALBASE}/bin/rustc
|
2019-07-30 19:59:29 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2019-10-24 09:38:50 +02:00
|
|
|
TEST_TARGET= check
|
2019-01-16 02:11:59 +01:00
|
|
|
|
|
|
|
CONFLICTS_INSTALL= librsvg2
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
# Disable vendor checksums
|
|
|
|
@${REINPLACE_CMD} -e 's/"files":{[^}]*}/"files":{}/' \
|
|
|
|
${WRKSRC}/vendor/*/.cargo-checksum.json
|
2019-02-23 15:19:40 +01:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/cargo update
|
2019-01-16 02:11:59 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|