ports: Add glib-networking port
This commit is contained in:
Executable
+30
@@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash ../install.sh
|
||||||
|
|
||||||
|
NAME='glib-networking'
|
||||||
|
VERSION='2.80.1'
|
||||||
|
DOWNLOAD_URL="https://download.gnome.org/sources/glib-networking/${VERSION%.*}/glib-networking-$VERSION.tar.xz#b80e2874157cd55071f1b6710fa0b911d5ac5de106a9ee2a4c9c7bee61782f8e"
|
||||||
|
DEPENDENCIES=('glib' 'openssl')
|
||||||
|
CONFIGURE_OPTIONS=(
|
||||||
|
'-Dprefix=/usr'
|
||||||
|
'-Dbuildtype=release'
|
||||||
|
'-Dlibproxy=disabled'
|
||||||
|
'-Dgnome_proxy=disabled'
|
||||||
|
'-Dgnutls=disabled'
|
||||||
|
'-Dopenssl=enabled'
|
||||||
|
)
|
||||||
|
|
||||||
|
configure() {
|
||||||
|
meson setup \
|
||||||
|
--reconfigure \
|
||||||
|
--cross-file "$MESON_CROSS_FILE" \
|
||||||
|
"${CONFIGURE_OPTIONS[@]}" \
|
||||||
|
build || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
meson compile -C build || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
install() {
|
||||||
|
meson install --destdir="$DESTDIR" -C build || exit 1
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
diff -ruN glib-networking-2.80.1/meson.build glib-networking-2.80.1-banan_os/meson.build
|
||||||
|
--- glib-networking-2.80.1/meson.build 2025-01-08 23:51:06.000000000 +0200
|
||||||
|
+++ glib-networking-2.80.1-banan_os/meson.build 2026-08-24 21:00:58.043148228 +0300
|
||||||
|
@@ -63,8 +63,7 @@
|
||||||
|
gobject_dep = dependency('gobject-2.0')
|
||||||
|
gmodule_dep = dependency('gmodule-2.0')
|
||||||
|
|
||||||
|
-gio_module_dir = gio_dep.get_variable('giomoduledir',
|
||||||
|
- pkgconfig_define: ['libdir', join_paths(prefix, libdir)])
|
||||||
|
+gio_module_dir = join_paths(prefix, libdir, 'gio', 'modules')
|
||||||
|
assert(gio_module_dir != '', 'GIO_MODULE_DIR is missing from gio-2.0.pc')
|
||||||
|
|
||||||
|
# *** Checks for LibProxy ***
|
||||||
Reference in New Issue
Block a user