engauge-digitizer: build without log4cpp on clangarm64

This commit is contained in:
مهدي شينون (Mehdi Chinoune)
2024-07-13 10:25:08 +01:00
parent a6102376f7
commit 3356f49232

View File

@@ -4,7 +4,7 @@ _realname=engauge-digitizer
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=12.1
pkgrel=1
pkgrel=2
pkgdesc="Extracts data points from images of graphs. (mingw-w64)"
arch=('any')
mingw_arch=('ucrt64' 'clang64' 'clangarm64')
@@ -16,7 +16,7 @@ msys2_references=(
license=('spdx:GPL-2.0-or-later')
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-fftw"
"${MINGW_PACKAGE_PREFIX}-log4cpp"
$([[ ${CARCH} == aarch64 ]] || echo "${MINGW_PACKAGE_PREFIX}-log4cpp")
"${MINGW_PACKAGE_PREFIX}-openjpeg2"
"${MINGW_PACKAGE_PREFIX}-poppler-qt5"
"${MINGW_PACKAGE_PREFIX}-qt5-base"
@@ -44,6 +44,10 @@ build() {
_extra_config+=(CONFIG+=release)
fi
if [[ ${CARCH} == aarch64 ]]; then
_extra_config+=("CONFIG+=log4cpp_null")
fi
OPENJPEG_INCLUDE=$(${MINGW_PREFIX}/bin/pkgconf --variable includedir libopenjp2) \
OPENJPEG_LIB=${MINGW_PREFIX}/lib \
POPPLER_INCLUDE=$(${MINGW_PREFIX}/bin/pkgconf --cflags-only-I poppler-qt5 | cut -d ' ' -f 1 | sed 's/^-I//') \