mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
9bf6a99963
PR: 267622
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
PORTNAME= librsvg
|
|
PORTVERSION= 2.54.5
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics gnome
|
|
MASTER_SITES= GNOME
|
|
PKGNAMESUFFIX= 2-rust
|
|
DIST_SUBDIR= gnome2
|
|
|
|
MAINTAINER= desktop@FreeBSD.org
|
|
COMMENT= Library for parsing and rendering SVG vector-graphic files
|
|
WWW= https://live.gnome.org/LibRsvg
|
|
|
|
LICENSE= LGPL20
|
|
|
|
BUILD_DEPENDS= ${RUST_DEFAULT}>=1.39.0:lang/${RUST_DEFAULT} \
|
|
rst2man:textproc/py-docutils
|
|
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2 \
|
|
libharfbuzz.so:print/harfbuzz \
|
|
libpng.so:graphics/png
|
|
|
|
USES= 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
|
|
# Make sure it uses the Rust toolchain from ports.
|
|
CONFIGURE_ENV= CARGO=${LOCALBASE}/bin/cargo \
|
|
RUSTC=${LOCALBASE}/bin/rustc \
|
|
RUSTFLAGS="${RUSTFLAGS} -C linker=${CC:Q} ${LDFLAGS:C/.+/-C link-arg=&/}"
|
|
MAKE_ENV= CARGO_BUILD_JOBS=${MAKE_JOBS_NUMBER} \
|
|
RUSTC=${LOCALBASE}/bin/rustc \
|
|
RUSTFLAGS="${RUSTFLAGS} -C linker=${CC:Q} ${LDFLAGS:C/.+/-C link-arg=&/}"
|
|
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:
|
|
# Disable vendor checksums
|
|
@${REINPLACE_CMD} -e 's/"files":{[^}]*}/"files":{}/' \
|
|
${WRKSRC}/vendor/*/.cargo-checksum.json
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/cargo update
|
|
|
|
.include <bsd.port.mk>
|