1 # Description: Hardware Abstraction Layer
2 # URL: http://www.freedesktop.org/wiki/Software/hal
3 # Packager: Matt Housh, jaeger at crux dot nu
4 # Maintainer: Lucas Hazel, lucas at die dot net dot au
5 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
6 # Depends on: dbus-glib hal-info
11 source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \
16 export DBUS_LIBS="-L$CLFS/usr/lib -ldbus-1 -lrt -lpthread"
17 export DBUS_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/dbus-1.0 -I$CLFS/usr/lib/dbus-1.0/include -I$CLFS/usr/include/dbus-1.0/dbus"
18 export GLIB_LIBS="-L$CLFS/usr/lib -lglib-2.0 -ldbus-glib-1 -ldbus-1 -lgobject-2.0"
19 export GLIB_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/lib/glib-2.0/include -I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/include/dbus-1.0 "
20 export BLKID_LIBS="-L$CLFS/usr/lib -lblkid -luuid"
21 export BLKID_CFLAGS="-I$CLFS/usr/include/blkid -I$CLFS/usr/include/uuid"
23 sed -i -e 's/USE_NLS=yes/USE_NLS=no/' \
24 -e 's/ENABLE_NLS 1/ENABLE_NLS 0/' configure
26 ./configure --build=$CHOST \
30 --libexecdir=/usr/lib/$name \
31 --localstatedir=/var \
32 --with-hal-user=haldaemon \
33 --with-hal-group=haldaemon \
34 --with-dbus-sys=/usr/etc/dbus-1/system.d \
35 --with-udev-prefix=/lib \
36 --with-hwdata=/usr/share \
37 --disable-policy-kit \
40 sed -i -e '/device-manager/d' tools/Makefile
43 make DESTDIR=$PKG install
45 install -D -o root -g root -m 0755 $SRC/rc.hald \
47 rm -rf $PKG/usr/share/{doc,locale}
48 rm -rf $PKG/usr/share/gtk-doc
49 cp $SRC/hal.conf $PKG/usr/etc/dbus-1/system.d/
50 mkdir -p $PKG/var/lib/hal
51 chown haldaemon:haldaemon $PKG/var/lib/hal