diff options
author | tnn <tnn@pkgsrc.org> | 2021-09-24 05:47:00 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2021-09-24 05:47:00 +0000 |
commit | d5539ad96a6ea18f42dcff6f345fb1f50b599e79 (patch) | |
tree | 96141632c4ca052f7b825781c5cd2a08c3c7d66c | |
parent | 4facdc7ae8a6b1516fe71ec0d2283aa26660d430 (diff) | |
download | pkgsrc-d5539ad96a6ea18f42dcff6f345fb1f50b599e79.tar.gz |
librsvg: apply band-aid for build breakage with rust-1.54.0 on aarch64
Tested on NetBSD/aarch64 and macOS/aarch64
-rw-r--r-- | graphics/librsvg/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/graphics/librsvg/Makefile b/graphics/librsvg/Makefile index 2c79414c365..f0898ad28e0 100644 --- a/graphics/librsvg/Makefile +++ b/graphics/librsvg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.133 2021/08/20 02:54:51 gutteridge Exp $ +# $NetBSD: Makefile,v 1.134 2021/09/24 05:47:00 tnn Exp $ DISTNAME= librsvg-2.50.7 CATEGORIES= graphics gnome @@ -26,6 +26,20 @@ TEST_TARGET= check .include "cargo-depends.mk" +.include "../../mk/bsd.prefs.mk" + +# librsvg broken with rustc-1.54.0. Temp fix for pkgsrc freeze. +.if \ + !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64) || \ + !empty(MACHINE_PLATFORM:MDarwin-*-aarch64) +RUSTFLAGS+= -C target-feature=-lse +PKG_LIBTOOL= ${WRKDIR}/libtool +pre-configure: + sed 's,$$AR t "$$f_ex_an_ar_oldlib",& | grep -v lse.o,' \ + < ${PREFIX}/bin/libtool > ${WRKDIR}/libtool + chmod +x ${WRKDIR}/libtool +.endif + BUILDLINK_DEPMETHOD.gobject-introspection+= build .include "../../devel/gobject-introspection/buildlink3.mk" BUILDLINK_API_DEPENDS.glib2+= glib2>=2.50.0 |