Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= dbus
  5. PKG_VERSION:= 1.6.18
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= b02e9c95027a416987b81f9893831061
  8. PKG_DESCR:= DBUS daemon
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= libdbus libexpat
  11. PKG_BUILDDEP:= expat util-linux
  12. PKG_URL:= http://dbus.freedesktop.org/
  13. PKG_SITES:= http://dbus.freedesktop.org/releases/dbus/
  14. PKG_LIBNAME:= libdbus
  15. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  17. PKG_SUBPKGS:= DBUS LIBDBUS
  18. PKGSD_LIBDBUS:= DBUS library
  19. PKGSC_LIBDBUS:= libs
  20. PKGSS_LIBDBUS:= libexpat libuuid
  21. ifeq ($(ADK_STATIC),y)
  22. PKG_OPTS+= libmix
  23. endif
  24. include ${TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,DBUS,dbus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,LIBDBUS,libdbus,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBDBUS},${PKGSD_LIBDBUS},${PKGSC_LIBDBUS},${PKG_OPTS}))
  27. TARGET_LDFLAGS+= -luuid
  28. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  29. CONFIGURE_ARGS+= --disable-tests \
  30. --disable-abstract-sockets \
  31. --enable-checks \
  32. --disable-verbose-mode \
  33. --with-xml=expat \
  34. --with-session-socket-dir=/var/tmp \
  35. --disable-dnotify \
  36. --disable-kqueue \
  37. --disable-systemd \
  38. --disable-xml-docs \
  39. --without-x \
  40. --disable-doxygen-docs
  41. CONFIGURE_ENV+= ac_cv_have_abstract_sockets=no
  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 \
  51. ${IDIR_DBUS}/usr/bin ${IDIR_DBUS}/usr/libexec
  52. ${INSTALL_BIN} ${WRKINST}/usr/libexec/dbus-daemon-launch-helper \
  53. ${IDIR_DBUS}/usr/libexec/
  54. ${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc
  55. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-daemon ${IDIR_DBUS}/usr/bin
  56. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-launch ${IDIR_DBUS}/usr/bin
  57. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-uuidgen ${IDIR_DBUS}/usr/bin
  58. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-send ${IDIR_DBUS}/usr/bin
  59. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-monitor ${IDIR_DBUS}/usr/bin
  60. # workaround for dev subpackage
  61. ${INSTALL_DIR} $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  62. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  63. $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  64. include ${TOPDIR}/mk/pkg-bottom.mk