Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.4.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 99b165f727dd8a5c4b7e2c20a8bf5db6
  8. PKG_DESCR:= DBUS library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libexpat
  11. PKG_BUILDDEP:= expat
  12. PKG_URL:= http://dbus.freedesktop.org/
  13. PKG_SITES:= http://dbus.freedesktop.org/releases/dbus/
  14. PKG_SUBPKGS:= DBUS DBUS_DEV
  15. PKGSC_DBUS_DEV:= devel
  16. PKGSD_DBUS_DEV:= DBUS headers
  17. ifeq ($(ADK_STATIC),y)
  18. PKG_OPTS:= libonly
  19. endif
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,DBUS,dbus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. $(eval $(call PKG_template,DBUS_DEV,dbus-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DBUS_DEV},${PKGSC_DBUS_DEV},${PKG_OPTS}))
  23. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  24. CONFIGURE_ARGS+= --disable-tests \
  25. --disable-abstract-sockets \
  26. --without-x \
  27. --enable-checks \
  28. --with-xml=expat \
  29. --with-session-socket-dir=/var/tmp \
  30. --disable-dnotify \
  31. --disable-kqueue \
  32. --disable-xml-docs \
  33. --disable-doxygen-docs
  34. CONFIGURE_ENV+= ac_cv_have_abstract_sockets=no
  35. pre-install:
  36. ${INSTALL_DIR} $(STAGING_DIR)/usr/include/dbus-1.0/dbus
  37. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  38. $(STAGING_DIR)/usr/include/dbus-1.0/dbus
  39. dbus-install:
  40. ${INSTALL_DIR} ${IDIR_DBUS}/etc ${IDIR_DBUS}/usr/lib \
  41. ${IDIR_DBUS}/usr/bin
  42. ${CP} ${WRKINST}/etc/dbus-1 ${IDIR_DBUS}/etc
  43. ${CP} ${WRKINST}/usr/lib/libdbus-1.so* ${IDIR_DBUS}/usr/lib
  44. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-daemon ${IDIR_DBUS}/usr/bin
  45. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-launch ${IDIR_DBUS}/usr/bin
  46. dbus-dev-install:
  47. ${INSTALL_DIR} ${IDIR_DBUS_DEV}/usr/include
  48. ${CP} ${WRKINST}/usr/include/* ${IDIR_DBUS_DEV}/usr/include
  49. ${INSTALL_DIR} $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  50. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  51. $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  52. ${INSTALL_DIR} ${IDIR_DBUS_DEV}/usr/lib/pkgconfig
  53. ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc \
  54. ${IDIR_DBUS_DEV}/usr/lib/pkgconfig
  55. include ${TOPDIR}/mk/pkg-bottom.mk