From 2510f84a7d605de43ae5f7d5113b4738afb5b4d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 12 Apr 2021 08:42:29 +0700 Subject: [PATCH] Haru: fix cross build --- srcpkgs/Haru/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/Haru/template b/srcpkgs/Haru/template index 80db1e0e89f..d1207b72b88 100644 --- a/srcpkgs/Haru/template +++ b/srcpkgs/Haru/template @@ -13,6 +13,11 @@ homepage="http://libharu.org/" distfiles="https://github.com/libharu/libharu/archive/RELEASE_${version//./_}.tar.gz" checksum=8f9e68cc5d5f7d53d1bc61a1ed876add1faf4f91070dbc360d8b259f46d9a4d2 +if [ "$CROSS_BUILD" ]; then + configure_args="--with-zlib=${XBPS_CROSS_BASE}/usr" + configure_args+=" --with-png=${XBPS_CROSS_BASE}/usr" +fi + pre_configure() { make -f build.mk }