Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= dbus
  5. PKG_VERSION:= 1.10.20
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= e574b9780b5425fde4d973bb596e7ea0f09e00fe2edd662da9016e976c460b48
  8. PKG_DESCR:= desktop bus daemon
  9. PKG_SECTION:= sys/misc
  10. PKG_DEPENDS:= libdbus libexpat
  11. PKG_BUILDDEP:= expat util-linux
  12. PKG_NEEDS:= threads
  13. PKG_URL:= http://dbus.freedesktop.org/
  14. PKG_SITES:= https://dbus.freedesktop.org/releases/dbus/
  15. PKG_LIBNAME:= libdbus
  16. PKG_OPTS:= dev
  17. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  18. PKG_SUBPKGS:= DBUS LIBDBUS
  19. PKGSD_LIBDBUS:= DBUS library
  20. PKGSC_LIBDBUS:= libs/misc
  21. PKGSS_LIBDBUS:= libexpat libuuid
  22. include ${ADK_TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,DBUS,dbus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,LIBDBUS,libdbus,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBDBUS},${PKGSD_LIBDBUS},${PKGSC_LIBDBUS},${PKG_OPTS}))
  25. TARGET_LDFLAGS+= -luuid
  26. AUTOTOOL_STYLE:= autoreconf
  27. CONFIGURE_ARGS+= --disable-systemd \
  28. --disable-tests \
  29. --disable-asserts \
  30. --enable-abstract-sockets \
  31. --with-dbus-user=dbus \
  32. --with-system-socket=/run/dbus/system_bus_socket \
  33. --with-system-pid-file=/run/dbus/dbus.pid \
  34. --disable-verbose-mode \
  35. --disable-apparmor \
  36. --disable-kqueue \
  37. --disable-selinux \
  38. --disable-libaudit \
  39. --disable-doxygen-docs \
  40. --disable-xml-docs \
  41. --without-x
  42. pre-install:
  43. ${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
  44. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  45. $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
  46. libdbus-install:
  47. ${INSTALL_DIR} ${IDIR_LIBDBUS}/usr/lib
  48. ${CP} ${WRKINST}/usr/lib/libdbus-1.so* ${IDIR_LIBDBUS}/usr/lib
  49. dbus-install:
  50. ${INSTALL_DIR} ${IDIR_DBUS}/etc ${IDIR_DBUS}/usr/share \
  51. ${IDIR_DBUS}/usr/bin ${IDIR_DBUS}/usr/libexec
  52. ${INSTALL_DIR} ${IDIR_DBUS}/var/lib/dbus ${IDIR_DBUS}/run/dbus
  53. (cd ${IDIR_DBUS}/var/lib/dbus; ln -sf ../../../etc/machine-id .)
  54. ${INSTALL_BIN} ${WRKINST}/usr/libexec/dbus-daemon-launch-helper \
  55. ${IDIR_DBUS}/usr/libexec/
  56. ${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc
  57. ${CP} ${WRKINST}/usr/share/dbus-1 ${IDIR_DBUS}/usr/share
  58. ${CP} ${WRKINST}/usr/bin/dbus-* ${IDIR_DBUS}/usr/bin
  59. # workaround for dev subpackage
  60. ${INSTALL_DIR} $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  61. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  62. $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  63. include ${ADK_TOPDIR}/mk/pkg-bottom.mk