cd $name-$version
sed -i '/^Libs:/s/-ludev/-ludev -lrt/' src/libudev/libudev.pc.in
- # Forcing libtool to prioritize our sysroot
- sed "s|lt_sysroot=|lt_sysroot=$CLFS|g" -i m4/libtool.m4
-
./configure --build=$CHOST \
--host=$CTARGET \
--prefix=/usr \
--libexecdir=/lib \
--disable-introspection \
--disable-manpages \
- --enable-split-usr
-
+ --enable-split-usr \
+ --with-sysroot=$CLFS
+
make CFLAGS="$CFLAGS -D_GNU_SOURCE"
make install DESTDIR=$PKG
make -C man install DESTDIR=$PKG
pushd $SRC/$name-$version-host
unset CC CXX AR AS RANLIB LD CFLAGS CXXFLAGS LDFLAGS
+ autoreconf -vi
./configure --prefix=/usr \
--sbindir=/sbin --bindir=/sbin \
--sysconfdir=/etc \
make CFLAGS="$CFLAGS -L/usr/lib -I/usr/include -D_GNU_SOURCE"
- cp src/udev/udevadm $WORK/
+ cp src/udev/udevadm $PKGMK_WORK_DIR/
popd
# create binary hwdb
LD_LIBRARY_PATH=$PKG/lib \
- $WORK/udevadm hwdb --update --root=$PKG
+ $PKGMK_WORK_DIR/udevadm hwdb --update --root=$PKG
# Devices
mkdir -p $PKG/lib/{firmware,udev/devices/{pts,shm}}