diff --git a/srcpkgs/gmime/files/musl-iconv-detect.h b/srcpkgs/gmime/files/musl-iconv-detect.h new file mode 100644 index 00000000000..9f431bf9ff0 --- /dev/null +++ b/srcpkgs/gmime/files/musl-iconv-detect.h @@ -0,0 +1,5 @@ +/* This is an auto-generated header, DO NOT EDIT! */ + +#define ICONV_ISO_INT_FORMAT "iso-%u-%u" +#define ICONV_ISO_STR_FORMAT "iso-%u-%s" +#define ICONV_10646 "UCS-4BE" diff --git a/srcpkgs/gmime/template b/srcpkgs/gmime/template index 92f73d150b7..697cbd0ab67 100644 --- a/srcpkgs/gmime/template +++ b/srcpkgs/gmime/template @@ -1,7 +1,7 @@ # Template file for 'gmime' pkgname=gmime version=2.6.23 -revision=3 +revision=4 build_style=gnu-configure build_helper="gir" configure_args="--disable-static --disable-mono --enable-smime @@ -27,8 +27,12 @@ if [ "$CROSS_BUILD" ]; then fi pre_build() { - if [ "$CROSS_BUILD" ]; then - cp ${FILESDIR}/*.h ${wrksrc} + if [ -z "$CROSS_BUILD" ]; then + : + elif [ "$XBPS_TARGET_LIBC" = musl ]; then + cp ${FILESDIR}/musl-iconv-detect.h ${wrksrc}/iconv-detect.h + else + cp ${FILESDIR}/iconv-detect.h ${wrksrc} fi }