2014-02-16 16:38:02 +01:00
|
|
|
# Description: Userspace device management daemon
|
|
|
|
# URL: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
|
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
|
|
# Depends on: kmod-32 eudev
|
|
|
|
|
|
|
|
name=eudev-32
|
2015-05-05 14:43:03 +02:00
|
|
|
version=3.0
|
2014-02-16 16:38:02 +01:00
|
|
|
release=1
|
2015-05-05 14:43:03 +02:00
|
|
|
source=(http://dev.gentoo.org/~blueness/eudev/eudev-$version.tar.gz
|
|
|
|
eudev-remove_gperf_dep.patch
|
|
|
|
keyboard-keys.tar.xz)
|
2014-02-16 16:38:02 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd eudev-$version
|
|
|
|
|
2015-05-05 14:43:03 +02:00
|
|
|
# See https://github.com/gentoo/eudev/issues/75
|
|
|
|
# remove build-time dependency to gperf for now
|
|
|
|
cp $SRC/keyboard-keys-{from,to}-name.h src/udev
|
|
|
|
patch -p1 -i $SRC/eudev-remove_gperf_dep.patch
|
|
|
|
|
|
|
|
# needed for static linking, e.g. dmsetup.static
|
2014-02-16 16:38:02 +01:00
|
|
|
sed -i '/^Libs:/s/-ludev/-ludev -lrt/' src/libudev/libudev.pc.in
|
2015-05-05 14:43:03 +02:00
|
|
|
|
|
|
|
autoreconf --force --install
|
2014-02-16 16:38:02 +01:00
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libdir=/usr/lib32 \
|
2014-08-12 12:54:22 +02:00
|
|
|
--sbindir=/sbin --bindir=/sbin \
|
2014-02-16 16:38:02 +01:00
|
|
|
--sysconfdir=/etc \
|
2014-08-12 12:54:22 +02:00
|
|
|
--with-rootprefix= \
|
|
|
|
--with-rootlibdir=/usr/lib32 \
|
|
|
|
--libexecdir=/usr/lib32 \
|
2014-02-16 16:38:02 +01:00
|
|
|
--disable-introspection \
|
|
|
|
--disable-gudev \
|
|
|
|
--disable-manpages \
|
2015-05-05 14:43:03 +02:00
|
|
|
--enable-split-usr
|
2014-02-16 16:38:02 +01:00
|
|
|
|
2014-06-15 21:18:34 +02:00
|
|
|
make CFLAGS="$CFLAGS -D_GNU_SOURCE"
|
2014-02-16 16:38:02 +01:00
|
|
|
make install DESTDIR=$PKG
|
|
|
|
|
2014-08-12 12:54:22 +02:00
|
|
|
rm -r $PKG/etc $PKG/sbin $PKG/usr/{include,lib32/udev,share}
|
2014-02-16 16:38:02 +01:00
|
|
|
}
|