Makefile 2.4 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 ${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. PKG_SUBPKGS:= DBUS LIBDBUS
  17. PKGSD_LIBDBUS:= DBUS library
  18. PKGSC_LIBDBUS:= libs
  19. PKGSS_LIBDBUS:= libexpat libuuid
  20. ifeq ($(ADK_STATIC),y)
  21. PKG_OPTS+= libmix
  22. endif
  23. include ${TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,DBUS,dbus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,LIBDBUS,libdbus,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBDBUS},${PKGSD_LIBDBUS},${PKGSC_LIBDBUS},${PKG_OPTS}))
  26. TARGET_LDFLAGS+= -luuid
  27. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  28. CONFIGURE_ARGS+= --disable-tests \
  29. --disable-abstract-sockets \
  30. --enable-checks \
  31. --disable-verbose-mode \
  32. --with-xml=expat \
  33. --with-session-socket-dir=/var/tmp \
  34. --disable-dnotify \
  35. --disable-kqueue \
  36. --disable-systemd \
  37. --disable-xml-docs \
  38. --without-x \
  39. --disable-doxygen-docs
  40. CONFIGURE_ENV+= ac_cv_have_abstract_sockets=no
  41. pre-install:
  42. ${INSTALL_DIR} $(STAGING_DIR)/usr/include/dbus-1.0/dbus
  43. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  44. $(STAGING_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 \
  50. ${IDIR_DBUS}/usr/bin ${IDIR_DBUS}/usr/libexec
  51. ${INSTALL_BIN} ${WRKINST}/usr/libexec/dbus-daemon-launch-helper \
  52. ${IDIR_DBUS}/usr/libexec/
  53. ${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc
  54. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-daemon ${IDIR_DBUS}/usr/bin
  55. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-launch ${IDIR_DBUS}/usr/bin
  56. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-uuidgen ${IDIR_DBUS}/usr/bin
  57. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-send ${IDIR_DBUS}/usr/bin
  58. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-monitor ${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 ${TOPDIR}/mk/pkg-bottom.mk