Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 libx11
  11. PKG_BUILDDEP:= expat libX11
  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. --enable-checks \
  27. --with-xml=expat \
  28. --with-session-socket-dir=/var/tmp \
  29. --disable-dnotify \
  30. --disable-kqueue \
  31. --disable-xml-docs \
  32. --with-x \
  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. ${INSTALL_BIN} ${WRKINST}/usr/bin/dbus-uuidgen ${IDIR_DBUS}/usr/bin
  47. dbus-dev-install:
  48. ${INSTALL_DIR} ${IDIR_DBUS_DEV}/usr/include
  49. ${CP} ${WRKINST}/usr/include/* ${IDIR_DBUS_DEV}/usr/include
  50. ${INSTALL_DIR} $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  51. $(CP) $(WRKBUILD)/dbus/dbus-arch-deps.h \
  52. $(IDIR_DBUS_DEV)/usr/include/dbus-1.0/dbus
  53. ${INSTALL_DIR} ${IDIR_DBUS_DEV}/usr/lib/pkgconfig
  54. ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc \
  55. ${IDIR_DBUS_DEV}/usr/lib/pkgconfig
  56. include ${TOPDIR}/mk/pkg-bottom.mk