Commit | Line | Data |
---|---|---|
e6b005a6 VM |
1 | # Description: D-Bus GLib bindings |
2 | # URL: http://freedesktop.org/wiki/Software_2fdbus | |
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 | |
7 | ||
8 | name=dbus-glib | |
9 | version=0.80 | |
10 | release=1 | |
11 | source=(http://dbus.freedesktop.org/releases/$name/$name-$version.tar.gz) | |
12 | ||
13 | build() { | |
14 | cd $name-$version | |
15 | #export PATH="$PATH:/usr/sbin" | |
16 | cat > config.cache <<EOF | |
17 | ac_cv_func_posix_getpwnam_r=yes | |
18 | ac_cv_have_abstract_sockets=yes | |
19 | lt_cv_sys_lib_dlsearch_path_spec=$CLFS | |
20 | lt_cv_sys_lib_search_path_spec=$CLFS | |
21 | EOF | |
22 | ||
23 | export DBUS_LIBS="-L$CLFS/usr/lib -ldbus-1 -lrt -lpthread" | |
24 | export DBUS_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/dbus-1.0 -I$CLFS/usr/lib/dbus-1.0/include" | |
25 | export DBUS_GLIB_LIBS="-L$CLFS/usr/lib -ldbus-1 -lgobject-2.0 -lglib-2.0" | |
26 | export DBUS_GLIB_CFLAGS="-I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include" | |
27 | ||
28 | ./configure --build=$CHOST \ | |
29 | --host=$CTARGET \ | |
30 | --prefix=/usr \ | |
31 | --disable-static \ | |
32 | --with-xml=expat \ | |
33 | --disable-tests \ | |
34 | --cache-file=config.cache | |
35 | ||
36 | sed -i 's|SUBDIRS = . examples|SUBDIRS = .|g' dbus/Makefile | |
37 | sed -i 's|SUBDIRS = dbus tools test doc|SUBDIRS = dbus|g' Makefile | |
38 | ||
39 | make | |
40 | make DESTDIR=$PKG install | |
41 | ||
42 | make distclean | |
43 | ||
44 | unset CC CFLAGS CXX CXXFLAGS AR RANLIB DBUS_LIBS DBUS_CFLAGS DBUS_GLIB_LIBS \ | |
45 | DBUS_GLIB_CFLAGS DBUS_GLIB_THREADS_LIBS DBUS_GLIB_THREADS_CFLAGS | |
46 | ||
47 | ./configure --prefix=/usr \ | |
48 | --disable-static \ | |
49 | --with-xml=expat | |
50 | make | |
51 | ||
52 | cd tools | |
53 | ../dbus/dbus-binding-tool --mode=glib-client --prefix=dbus_bus --output=dbus-glib-bindings.h dbus-bus-introspect.xml | |
54 | cp dbus-glib-bindings.h $PKG/usr/include/dbus-1.0/dbus/ | |
55 | ||
56 | rm -rf $PKG/usr/{etc,libexec,share} | |
57 | } |