libgxps: Adapt to termux_setup_gir

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-11-06 19:53:34 +09:00
parent d02d32e122
commit 323bfda7fb
2 changed files with 9 additions and 2 deletions

View File

@ -6,9 +6,15 @@ _MAJOR_VERSION=0.3
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.2
TERMUX_PKG_SRCURL=https://download.gnome.org/sources/libgxps/${_MAJOR_VERSION}/libgxps-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=6d27867256a35ccf9b69253eb2a88a32baca3b97d5f4ef7f82e3667fa435251c
TERMUX_PKG_DEPENDS="glib, libcairo, libarchive, littlecms"
TERMUX_PKG_DEPENDS="freetype, glib, libarchive, libcairo, libgxps, libjpeg-turbo, libpng, libtiff, littlecms"
TERMUX_PKG_BUILD_DEPENDS="g-ir-scanner"
TERMUX_PKG_DISABLE_GIR=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Denable-test=false
-Denable-man=true
-Ddisable-introspection=true
-Ddisable-introspection=false
"
termux_step_pre_configure() {
termux_setup_gir
}

View File

@ -9,6 +9,7 @@ termux_setup_gir() {
args="${args// -DENABLE_GOBJECT_INTROSPECTION=ON / -DENABLE_GOBJECT_INTROSPECTION=OFF }"
args="${args// -DENABLE_INTROSPECTION=ON / -DENABLE_INTROSPECTION=OFF }"
args="${args// -Dbuild_introspection_data=true / -Dbuild_introspection_data=false }"
args="${args// -Ddisable-introspection=false / -Ddisable-introspection=true }"
args="${args// -Denable-gir=true / -Denable-gir=false }"
args="${args// -Dgir=true / -Dgir=false }"
args="${args// -Dgobject=enabled / -Dgobject=disabled }"