Makefile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. include ${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-xml=expat \
  30. --with-session-socket-dir=/var/tmp \
  31. --disable-dnotify \
  32. --disable-kqueue \
  33. --disable-systemd \
  34. --disable-xml-docs \
  35. --without-x \
  36. --disable-doxygen-docs
  37. CONFIGURE_ENV+= ac_cv_have_abstract_sockets=no
  38. pre-install:
  39. ${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
  40. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  41. $(STAGING_TARGET_DIR)/usr/include/dbus-1.0/dbus
  42. libdbus-install:
  43. ${INSTALL_DIR} ${IDIR_LIBDBUS}/usr/lib
  44. ${CP} ${WRKINST}/usr/lib/libdbus-1.so* ${IDIR_LIBDBUS}/usr/lib
  45. dbus-install:
  46. ${INSTALL_DIR} ${IDIR_DBUS}/etc \
  47. ${IDIR_DBUS}/usr/bin ${IDIR_DBUS}/usr/libexec
  48. ${INSTALL_BIN} ${WRKINST}/usr/libexec/dbus-daemon-launch-helper \
  49. ${IDIR_DBUS}/usr/libexec/
  50. ${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc
  51. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-daemon ${IDIR_DBUS}/usr/bin
  52. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-launch ${IDIR_DBUS}/usr/bin
  53. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-uuidgen ${IDIR_DBUS}/usr/bin
  54. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-send ${IDIR_DBUS}/usr/bin
  55. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-monitor ${IDIR_DBUS}/usr/bin
  56. # workaround for dev subpackage
  57. ${INSTALL_DIR} $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  58. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  59. $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  60. include ${TOPDIR}/mk/pkg-bottom.mk