Makefile 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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:= 2
  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-kqueue \
  36. --disable-selinux \
  37. --disable-libaudit \
  38. --disable-doxygen-docs \
  39. --disable-xml-docs \
  40. --without-x
  41. pre-install:
  42. ${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
  43. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  44. $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
  45. libdbus-install:
  46. ${INSTALL_DIR} ${IDIR_LIBDBUS}/usr/lib
  47. ${CP} ${WRKINST}/usr/lib/libdbus-1.so* ${IDIR_LIBDBUS}/usr/lib
  48. dbus-install:
  49. ${INSTALL_DIR} ${IDIR_DBUS}/etc ${IDIR_DBUS}/usr/share \
  50. ${IDIR_DBUS}/usr/bin ${IDIR_DBUS}/usr/libexec
  51. ${INSTALL_DIR} ${IDIR_DBUS}/var/lib/dbus ${IDIR_DBUS}/run/dbus
  52. (cd ${IDIR_DBUS}/var/lib/dbus; ln -sf ../../../etc/machine-id .)
  53. ${INSTALL_BIN} ${WRKINST}/usr/libexec/dbus-daemon-launch-helper \
  54. ${IDIR_DBUS}/usr/libexec/
  55. ${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc
  56. ${CP} ${WRKINST}/usr/share/dbus-1 ${IDIR_DBUS}/usr/share
  57. ${CP} ${WRKINST}/usr/bin/dbus-* ${IDIR_DBUS}/usr/bin
  58. # workaround for dev subpackage
  59. ${INSTALL_DIR} $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  60. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  61. $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  62. include ${ADK_TOPDIR}/mk/pkg-bottom.mk