summaryrefslogtreecommitdiffstats
path: root/base/udev/Pkgfile
diff options
context:
space:
mode:
authorsibelle <lesibel at gmail dot com>2010-11-20 20:16:13 +0100
committersibelle <lesibel at gmail dot com>2010-11-20 20:16:13 +0100
commitfbe6c8bdae26849b5ed5f46951668106c03114aa (patch)
tree034f737a811d0abe8e975a781413f30051aa896e /base/udev/Pkgfile
parent46f74fb23a0b5bce0d0122408a2b631d691184e9 (diff)
downloadnutyx-extra-fbe6c8bdae26849b5ed5f46951668106c03114aa.tar.gz
nutyx-extra-fbe6c8bdae26849b5ed5f46951668106c03114aa.tar.bz2
nutyx-extra-fbe6c8bdae26849b5ed5f46951668106c03114aa.tar.xz
nutyx-extra-fbe6c8bdae26849b5ed5f46951668106c03114aa.zip
udev, ajout du check de glib
Diffstat (limited to 'base/udev/Pkgfile')
-rw-r--r--base/udev/Pkgfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/base/udev/Pkgfile b/base/udev/Pkgfile
index bcab91016..9b9cebffb 100644
--- a/base/udev/Pkgfile
+++ b/base/udev/Pkgfile
@@ -11,7 +11,11 @@ _lfs_release=20100128
source=(ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/$name-$version.tar.bz2 \
http://www.linuxfromscratch.org/lfs/downloads/development/udev-config-${_lfs_release}.tar.bz2)
build() {
-
+if ( pkginfo -i|grep "^glib " > /dev/null) then
+ EXTRA="--with-pci-ids-path=/usr/share/pci.ids.gz"
+else
+ EXTRA="--disable-extras --disable-introspection"
+fi
cd udev-$version
install -dv $PKG/lib/{firmware,udev/devices/{pts,shm}}
@@ -26,7 +30,7 @@ ln -s /proc/kcore $PKG/lib/udev/devices/core
--sysconfdir=/etc --sbindir=/sbin \
--with-rootlibdir=/lib --libexecdir=/lib/udev \
--docdir=/usr/share/doc/udev-$version \
- --with-pci-ids-path=/usr/share/pci.ids.gz
+ $EXTRA
make