Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.8.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6a08ba555d340e9dfe2d623b83c0eea8
  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. include ${ADK_TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,DBUS,dbus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,LIBDBUS,libdbus,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBDBUS},${PKGSD_LIBDBUS},${PKGSC_LIBDBUS},${PKG_OPTS}))
  24. TARGET_LDFLAGS+= -luuid
  25. CONFIGURE_ARGS+= --disable-tests \
  26. --disable-abstract-sockets \
  27. --enable-checks \
  28. --disable-verbose-mode \
  29. --with-session-socket-dir=/var/tmp \
  30. --disable-kqueue \
  31. --disable-systemd \
  32. --disable-xml-docs \
  33. --without-x \
  34. --disable-doxygen-docs
  35. CONFIGURE_ENV+= ac_cv_have_abstract_sockets=no
  36. pre-install:
  37. ${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
  38. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  39. $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
  40. libdbus-install:
  41. ${INSTALL_DIR} ${IDIR_LIBDBUS}/usr/lib
  42. ${CP} ${WRKINST}/usr/lib/libdbus-1.so* ${IDIR_LIBDBUS}/usr/lib
  43. dbus-install:
  44. ${INSTALL_DIR} ${IDIR_DBUS}/etc \
  45. ${IDIR_DBUS}/usr/bin ${IDIR_DBUS}/usr/libexec
  46. ${INSTALL_BIN} ${WRKINST}/usr/libexec/dbus-daemon-launch-helper \
  47. ${IDIR_DBUS}/usr/libexec/
  48. ${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc
  49. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-daemon ${IDIR_DBUS}/usr/bin
  50. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-launch ${IDIR_DBUS}/usr/bin
  51. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-uuidgen ${IDIR_DBUS}/usr/bin
  52. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-send ${IDIR_DBUS}/usr/bin
  53. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-monitor ${IDIR_DBUS}/usr/bin
  54. # workaround for dev subpackage
  55. ${INSTALL_DIR} $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  56. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  57. $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  58. include ${ADK_TOPDIR}/mk/pkg-bottom.mk