Mercurial > vanilla
changeset 661:0f1ac9efd918
lib/glib: make util-linux optional dependency
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 30 Jul 2019 21:00:00 +0200 |
parents | 6900637ca719 |
children | 35d2c89c496a |
files | lib/glib/glib.sh |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/glib/glib.sh Tue Jul 30 20:33:00 2019 +0200 +++ b/lib/glib/glib.sh Tue Jul 30 21:00:00 2019 +0200 @@ -22,14 +22,22 @@ PKGSUMMARY="general purpose low level C library" PKGDOWNLOAD="https://download.gnome.org/sources/$PKGNAME/2.60/$PKGNAME-$PKGVERSION.tar.xz" PKGDEPENDS="dev/meson lib/pcre compression/zlib" -PKGOPTIONS="NLS SELINUX" +PKGOPTIONS="MOUNT NLS SELINUX" : ${CC:=clang} : ${CFLAGS:=-O2} : ${LDFLAGS:=} +: ${MOUNT:=yes} : ${NLS:=yes} : ${SELINUX:=no} +if [ "$MOUNT" = "yes" ]; then + PKGDEPENDS="core/util-linux $PKGDEPENDS" + with_mount="-D libmount=true" +else + with_mount="-D libmount=false" +fi + if [ "$NLS" = "yes" ]; then with_nls="-D nls=enabled" else @@ -56,6 +64,7 @@ --buildtype release \ --default-library shared \ -D libdir=lib \ + $with_mount \ $with_nls \ $with_selinux \ . build