From fcbf4a8c96b749578d85771fb32bc8c91a4872a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 17 Oct 2015 01:15:35 +0200 Subject: [PATCH] evolution-data-server: cross gen. iconv-detect.h --- srcpkgs/evolution-data-server/template | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/srcpkgs/evolution-data-server/template b/srcpkgs/evolution-data-server/template index 87d2fee059f..8a7e7e7d7a6 100644 --- a/srcpkgs/evolution-data-server/template +++ b/srcpkgs/evolution-data-server/template @@ -28,14 +28,13 @@ else fi pre_configure() { - case "$XBPS_TARGET_MACHINE" in - *-musl) # Create iconv-detect.h for musl libc + if [ "$CROSS_BUILD" ]; then + # Create iconv-detect.h for cross builds echo '/* This is an auto-generated header, DO NOT EDIT! */' > iconv-detect.h echo >>iconv-detect.h echo '#define ICONV_ISO_D_FORMAT "iso-%d-%d"' >>iconv-detect.h echo '#define ICONV_ISO_S_FORMAT "iso-%d-%s"' >>iconv-detect.h - ;; - esac + fi } post_install() { # Fix broken pkg-config