CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
dbus-glib: Initial import (verified compilation)
authorVictor Martinez <pitillo@ono.com>
Sun, 17 Jan 2010 12:50:22 +0000 (12:50 +0000)
committerVictor Martinez <pitillo@ono.com>
Sun, 17 Jan 2010 12:50:22 +0000 (12:50 +0000)
dbus-glib/.footprint [new file with mode: 0644]
dbus-glib/.md5sum [new file with mode: 0644]
dbus-glib/Pkgfile [new file with mode: 0644]
dbus-glib/README [new file with mode: 0644]

diff --git a/dbus-glib/.footprint b/dbus-glib/.footprint
new file mode 100644 (file)
index 0000000..d529c8b
--- /dev/null
@@ -0,0 +1,18 @@
+drwxr-xr-x     root/root       usr/
+drwxr-xr-x     root/root       usr/bin/
+-rwxr-xr-x     root/root       usr/bin/dbus-binding-tool
+drwxr-xr-x     root/root       usr/include/
+drwxr-xr-x     root/root       usr/include/dbus-1.0/
+drwxr-xr-x     root/root       usr/include/dbus-1.0/dbus/
+-rw-r--r--     root/root       usr/include/dbus-1.0/dbus/dbus-glib-bindings.h
+-rw-r--r--     root/root       usr/include/dbus-1.0/dbus/dbus-glib-error-enum.h
+-rw-r--r--     root/root       usr/include/dbus-1.0/dbus/dbus-glib-lowlevel.h
+-rw-r--r--     root/root       usr/include/dbus-1.0/dbus/dbus-glib.h
+-rw-r--r--     root/root       usr/include/dbus-1.0/dbus/dbus-gtype-specialized.h
+drwxr-xr-x     root/root       usr/lib/
+-rwxr-xr-x     root/root       usr/lib/libdbus-glib-1.la
+lrwxrwxrwx     root/root       usr/lib/libdbus-glib-1.so -> libdbus-glib-1.so.2.1.0
+lrwxrwxrwx     root/root       usr/lib/libdbus-glib-1.so.2 -> libdbus-glib-1.so.2.1.0
+-rwxr-xr-x     root/root       usr/lib/libdbus-glib-1.so.2.1.0
+drwxr-xr-x     root/root       usr/lib/pkgconfig/
+-rw-r--r--     root/root       usr/lib/pkgconfig/dbus-glib-1.pc
diff --git a/dbus-glib/.md5sum b/dbus-glib/.md5sum
new file mode 100644 (file)
index 0000000..5817ee0
--- /dev/null
@@ -0,0 +1 @@
+86ea60ba2118a1b9deafe8257f6a6a1a  dbus-glib-0.80.tar.gz
diff --git a/dbus-glib/Pkgfile b/dbus-glib/Pkgfile
new file mode 100644 (file)
index 0000000..8016fc6
--- /dev/null
@@ -0,0 +1,57 @@
+# Description: D-Bus GLib bindings
+# URL: http://freedesktop.org/wiki/Software_2fdbus
+# Packager: Matt Housh, jaeger at crux dot nu
+# Maintainer: Lucas Hazel, lucas at die dot net dot au
+# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Depends on: dbus glib
+
+name=dbus-glib
+version=0.80
+release=1
+source=(http://dbus.freedesktop.org/releases/$name/$name-$version.tar.gz)
+
+build() {
+  cd $name-$version
+#export PATH="$PATH:/usr/sbin"
+  cat > config.cache <<EOF
+ac_cv_func_posix_getpwnam_r=yes
+ac_cv_have_abstract_sockets=yes
+lt_cv_sys_lib_dlsearch_path_spec=$CLFS
+lt_cv_sys_lib_search_path_spec=$CLFS
+EOF
+  
+  export DBUS_LIBS="-L$CLFS/usr/lib -ldbus-1 -lrt -lpthread"
+  export DBUS_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/dbus-1.0 -I$CLFS/usr/lib/dbus-1.0/include"
+  export DBUS_GLIB_LIBS="-L$CLFS/usr/lib -ldbus-1 -lgobject-2.0 -lglib-2.0"
+  export DBUS_GLIB_CFLAGS="-I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include"
+
+  ./configure --build=$CHOST \
+              --host=$CTARGET \
+              --prefix=/usr \
+              --disable-static \
+              --with-xml=expat \
+              --disable-tests \
+              --cache-file=config.cache 
+
+  sed -i 's|SUBDIRS = . examples|SUBDIRS = .|g' dbus/Makefile
+  sed -i 's|SUBDIRS = dbus tools test doc|SUBDIRS = dbus|g' Makefile
+
+  make
+  make DESTDIR=$PKG install
+  
+  make distclean
+
+  unset CC CFLAGS CXX CXXFLAGS AR RANLIB DBUS_LIBS DBUS_CFLAGS DBUS_GLIB_LIBS \
+DBUS_GLIB_CFLAGS DBUS_GLIB_THREADS_LIBS DBUS_GLIB_THREADS_CFLAGS
+
+  ./configure --prefix=/usr \
+                --disable-static \
+                --with-xml=expat 
+  make
+
+  cd tools
+  ../dbus/dbus-binding-tool --mode=glib-client --prefix=dbus_bus --output=dbus-glib-bindings.h dbus-bus-introspect.xml
+  cp dbus-glib-bindings.h $PKG/usr/include/dbus-1.0/dbus/
+
+  rm -rf $PKG/usr/{etc,libexec,share}
+}
diff --git a/dbus-glib/README b/dbus-glib/README
new file mode 100644 (file)
index 0000000..9cbe49c
--- /dev/null
@@ -0,0 +1,5 @@
+- Notes/requeriments:
+ - dbus-glib-bindings.h :
+    1.- Provide this file at the port and install it instead of building it.
+      - Diff from host and clfs doen't show any difference.
+    2.- Install dbus on the host to build this file.