summaryrefslogtreecommitdiffstats
path: root/base/udev/Pkgfile
diff options
context:
space:
mode:
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