1
0
forked from ports/opt

libwnck-gtk3: updated meson syntax

This commit is contained in:
Tim Biermann 2022-01-08 14:55:29 +01:00
parent b60852e79b
commit bc118daf75
3 changed files with 8 additions and 25 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/RdBFgGv2V77bd55zgTTOt6pz5lPg0V+1Z6X5+Lp1m0wC/7bVuzve405cT4nNr6OO1/GK7faQGKDAx+RYw6JhAo=
SHA256 (Pkgfile) = 31b61c131ab3482ad29277e57e28a267d51b3b3b9ac0ed6fec5ba35211c97209
RWSE3ohX2g5d/U6v3KSp70irUbWuz7VIkdt9e6WrXTILOTJmR9FOoKB6GUSvxN2HI76m3/PU4G4CjJj35fUqlMi/om8EcDEKJgs=
SHA256 (Pkgfile) = 34382c8b5c1ed54bfc7732e459de1512bba66dfd520a7f7e2fe637a5391dae0e
SHA256 (.footprint) = c5722e6e8dbcf98499e734083408729356f889a53ab0d3c53da0ba2aada96b66
SHA256 (libwnck-3.36.0.tar.xz) = bc508150b3ed5d22354b0e6774ad4eee465381ebc0ace45eb0e2d3a4186c925f

View File

@ -9,7 +9,12 @@ release=1
source=(https://ftp.gnome.org/pub/gnome/sources/libwnck/${version%.*}/libwnck-$version.tar.xz)
build() {
meson build libwnck-$version --prefix=/usr
meson build libwnck-$version \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build

View File

@ -1,22 +0,0 @@
diff --git a/meson.build b/meson.build
index 6e35c00f77aef272a20c3d473ce50bed0206a08c..28799d8bec46aef4d1b05b44ef557cd387f48a64 100644
--- a/meson.build
+++ b/meson.build
@@ -43,7 +43,7 @@ pkg_deps = [
{'name': 'glib-2.0', 'version': '>= 2.32' },
{'name': 'gobject-2.0', 'version': '>= 2.13.0' },
{'name': 'gtk+-3.0', 'version': '>= 3.22.0' },
- {'name': STARTUP_NOTIFICATION_PACKAGE, 'version': '>= 0.4', 'required': get_option('startup_notification').enabled() },
+ {'name': STARTUP_NOTIFICATION_PACKAGE, 'version': '>= 0.4', 'required': get_option('startup_notification')},
{'name': X11_PACKAGE },
{'name': XRES_PACKAGE, 'required': false},
]
@@ -54,7 +54,7 @@ foreach p: pkg_deps
dep = dependency(pkg, version: p.get('version', []), required: required)
LIBWNCK_DEPS += dep
- if not required and dep.found()
+ if dep.found()
conf.set('HAVE_' + pkg.to_upper().underscorify(), 1)
endif
endforeach