gpgme: more generic template + fix on 32-bit ppc glibc

[ci skip]
This commit is contained in:
q66 2019-10-10 17:42:12 +02:00 committed by Helmut Pozimski
parent 0df9f83f0c
commit 71edfe3a16
1 changed files with 7 additions and 7 deletions

View File

@ -16,13 +16,13 @@ homepage="https://www.gnupg.org/software/gpgme/index.html"
distfiles="https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2"
checksum=c4e30b227682374c23cddc7fdb9324a99694d907e79242a25a4deeedb393be46
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" ac_cv_sys_file_offset_bits=no";;
i686*|arm*)
CFLAGS="-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1"
CXXFLAGS="${CFLAGS}"
;;
esac
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" ac_cv_sys_file_offset_bits=no"
elif [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
CFLAGS="-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1"
CXXFLAGS="${CFLAGS}"
fi
CXXFLAGS+=" -D_GLIBCXX_USE_C99_STDIO=1"
post_extract() {