or1k: rename or1k-sim to sim-or1k, by default 64mb ram
[openadk.git] / package / dbus / Makefile
blob7b17fff5a6df889075eccf5559936a3ba2b0d338
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= dbus
7 PKG_VERSION:= 1.10.8
8 PKG_RELEASE:= 1
9 PKG_HASH:= baf3d22baa26d3bdd9edc587736cd5562196ce67996d65b82103bedbe1f0c014
10 PKG_DESCR:= desktop bus daemon
11 PKG_SECTION:= sys/misc
12 PKG_DEPENDS:= libdbus libexpat
13 PKG_BUILDDEP:= expat util-linux
14 PKG_NEEDS:= threads
15 PKG_URL:= http://dbus.freedesktop.org/
16 PKG_SITES:= http://dbus.freedesktop.org/releases/dbus/
17 PKG_LIBNAME:= libdbus
18 PKG_OPTS:= dev
20 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
22 PKG_SUBPKGS:= DBUS LIBDBUS
23 PKGSD_LIBDBUS:= DBUS library
24 PKGSC_LIBDBUS:= libs/misc
25 PKGSS_LIBDBUS:= libexpat libuuid
27 include ${ADK_TOPDIR}/mk/package.mk
29 $(eval $(call PKG_template,DBUS,dbus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
30 $(eval $(call PKG_template,LIBDBUS,libdbus,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBDBUS},${PKGSD_LIBDBUS},${PKGSC_LIBDBUS},${PKG_OPTS}))
32 TARGET_LDFLAGS+= -luuid
33 CONFIGURE_ARGS+= --disable-tests \
34 --disable-abstract-sockets \
35 --enable-checks \
36 --disable-verbose-mode \
37 --with-session-socket-dir=/var/tmp \
38 --disable-kqueue \
39 --disable-systemd \
40 --disable-xml-docs \
41 --without-x \
42 --disable-doxygen-docs
43 CONFIGURE_ENV+= ac_cv_have_abstract_sockets=no
45 pre-install:
46 ${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
47 $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
48 $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
50 libdbus-install:
51 ${INSTALL_DIR} ${IDIR_LIBDBUS}/usr/lib
52 ${CP} ${WRKINST}/usr/lib/libdbus-1.so* ${IDIR_LIBDBUS}/usr/lib
54 dbus-install:
55 ${INSTALL_DIR} ${IDIR_DBUS}/etc ${IDIR_DBUS}/usr/share \
56 ${IDIR_DBUS}/usr/bin ${IDIR_DBUS}/usr/libexec
57 ${INSTALL_BIN} ${WRKINST}/usr/libexec/dbus-daemon-launch-helper \
58 ${IDIR_DBUS}/usr/libexec/
59 ${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc
60 ${CP} ${WRKINST}/usr/share/dbus-1 ${IDIR_DBUS}/usr/share
61 ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-daemon ${IDIR_DBUS}/usr/bin
62 ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-launch ${IDIR_DBUS}/usr/bin
63 ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-uuidgen ${IDIR_DBUS}/usr/bin
64 ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-send ${IDIR_DBUS}/usr/bin
65 ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-monitor ${IDIR_DBUS}/usr/bin
66 # workaround for dev subpackage
67 ${INSTALL_DIR} $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
68 $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
69 $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
71 include ${ADK_TOPDIR}/mk/pkg-bottom.mk