CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
eudev: added autoreconf to use newer aclocal version anb fixed WORK directory var...
authorVictor Martinez <pitillo@ono.com>
Sun, 6 Mar 2016 19:31:39 +0000 (19:31 +0000)
committerVictor Martinez <pitillo@ono.com>
Sun, 6 Mar 2016 19:31:39 +0000 (19:31 +0000)
eudev/Pkgfile

index d9fca65231b67dc552fbf15a724b1ecb855c816d..ff0f94e55b4398976fb8409606ed0316b8f2f751 100644 (file)
@@ -17,9 +17,6 @@ build () {
   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 \
@@ -30,8 +27,9 @@ build () {
               --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
@@ -40,6 +38,7 @@ build () {
   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 \
@@ -52,12 +51,12 @@ build () {
 
   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}}