Merge pull request #12607 from hmartinez82/gegl_aarch64
gegl: Support aarch64 build
This commit is contained in:
@@ -5,22 +5,21 @@ _realname=gegl
|
||||
pkgbase="mingw-w64-${_realname}"
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
pkgver=0.4.38
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Generic Graphics Library (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
url="https://gegl.org/"
|
||||
license=('spdx:GPL-3.0-or-later' 'spdx:LGPL-3.0-or-later')
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-asciidoc"
|
||||
"${MINGW_PACKAGE_PREFIX}-cc"
|
||||
"${MINGW_PACKAGE_PREFIX}-gobject-introspection"
|
||||
"${MINGW_PACKAGE_PREFIX}-gtk-doc"
|
||||
"${MINGW_PACKAGE_PREFIX}-luajit"
|
||||
$([[ ${MSYSTEM_CARCH} == aarch64 ]] || echo "${MINGW_PACKAGE_PREFIX}-luajit")
|
||||
"${MINGW_PACKAGE_PREFIX}-pkgconf"
|
||||
"${MINGW_PACKAGE_PREFIX}-ruby"
|
||||
"${MINGW_PACKAGE_PREFIX}-vala"
|
||||
"${MINGW_PACKAGE_PREFIX}-meson"
|
||||
"${MINGW_PACKAGE_PREFIX}-openmp")
|
||||
$([[ ${MINGW_PACKAGE_PREFIX} == *-clang-*86* ]] && echo "${MINGW_PACKAGE_PREFIX}-openmp"))
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-babl"
|
||||
"${MINGW_PACKAGE_PREFIX}-cairo"
|
||||
"${MINGW_PACKAGE_PREFIX}-exiv2"
|
||||
@@ -47,8 +46,18 @@ depends=("${MINGW_PACKAGE_PREFIX}-babl"
|
||||
"${MINGW_PACKAGE_PREFIX}-suitesparse")
|
||||
#options=('!strip' 'debug')
|
||||
noextract=("${_realname}-${pkgver}.tar.xz")
|
||||
source=(https://download.gimp.org/pub/gegl/${pkgver%.*}/${_realname}-${pkgver}.tar.xz)
|
||||
sha256sums=('e4a33c8430a5042fba8439b595348e71870f0d95fbf885ff553f9020c1bed750')
|
||||
source=(https://download.gimp.org/pub/gegl/${pkgver%.*}/${_realname}-${pkgver}.tar.xz
|
||||
001-openmp-openexr.patch::https://gitlab.gnome.org/GNOME/gegl/-/commit/d54fc3ccd37f9d769c9a55bd8ec065330e9654f5.diff)
|
||||
sha256sums=('e4a33c8430a5042fba8439b595348e71870f0d95fbf885ff553f9020c1bed750'
|
||||
'd72a3c2e1b15a4cc0d6ef3f8d7ca9db7c7ed288000d3c1fc3cb8d6b4fe8a180b')
|
||||
|
||||
apply_patch_with_msg() {
|
||||
for _patch in "$@"
|
||||
do
|
||||
msg2 "Applying ${_patch}"
|
||||
patch -Nbp1 -i "${srcdir}/${_patch}"
|
||||
done
|
||||
}
|
||||
|
||||
prepare() {
|
||||
tar -xf "${_realname}-${pkgver}.tar.xz" || true
|
||||
@@ -62,6 +71,9 @@ prepare() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
cp bin/lua/gegl_rectangle.lua bin/lua/gegl_crop.lua
|
||||
cp bin/lua/gegl_vector-stroke.lua bin/lua/gegl_fill-path.lua
|
||||
|
||||
apply_patch_with_msg \
|
||||
001-openmp-openexr.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
@@ -83,6 +95,8 @@ build() {
|
||||
-Dsdl1=disabled \
|
||||
-Dintrospection=true \
|
||||
-Ddocs=false \
|
||||
$([[ ${MSYSTEM_CARCH} == aarch64 ]] && echo "-Dopenmp=disabled") \
|
||||
$([[ ${MSYSTEM_CARCH} == aarch64 ]] && echo "-Dlua=disabled") \
|
||||
../${_realname}-${pkgver}
|
||||
|
||||
${MINGW_PREFIX}/bin/meson.exe compile
|
||||
|
||||
Reference in New Issue
Block a user