Makefile 2.4 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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= dbus
  5. PKG_VERSION:= 1.6.18
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= b02e9c95027a416987b81f9893831061
  8. PKG_DESCR:= desktop bus daemon
  9. PKG_SECTION:= sys/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/misc
  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. 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_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 \
  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