freebsd-ports/graphics/librsvg2-rust/Makefile
Mikael Urankar d9b97de179 lang/rust: Update to 1.47.0
- Add powerpc64le arch (submitted by bdragon in D26711)
  - Disable DOCS, same problem fixed in r546048

  - Update devel/racer to 2.1.36
  - Import upstream patch to fix www/firefox
    (https://hg.mozilla.org/integration/autoland/rev/e2cede25c027)
  - Import gentoo patches to fix www/firefox-esr, www/cliqz and mail/thunderbird
    (https://dev.gentoo.org/~whissi/mozilla/patchsets/firefox-esr-78-patches-03.tar.xz : 0036, 0037 and 0038)
  - Force rebuild all consumers to catch regressions

Changelog:
  https://github.com/rust-lang/rust/releases/tag/1.47.0

Differential Revision:	https://reviews.freebsd.org/D26721
2020-10-13 08:36:35 +00:00

51 lines
1.3 KiB
Makefile

# Created by: Ade Lovett <ade@FreeBSD.org>
# $FreeBSD$
PORTNAME= librsvg
PORTVERSION= 2.50.0
PORTREVISION= 1
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
LICENSE= LGPL20
BUILD_DEPENDS= ${RUST_DEFAULT}>=1.39.0:lang/${RUST_DEFAULT} \
valac:lang/vala
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz \
libpng.so:graphics/png
USES= compiler:c11 gettext gmake gnome libtool pkgconfig tar:xz
USE_GNOME= cairo gdkpixbuf2 gnomeprefix libxml2 pango introspection:build
USE_LDCONFIG= yes
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
MAKE_ENV= CARGO_BUILD_JOBS=${MAKE_JOBS_NUMBER} \
RUSTC=${LOCALBASE}/bin/rustc
INSTALL_TARGET= install-strip
TEST_TARGET= check
CONFLICTS_INSTALL= librsvg2
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>