1
0

Makefile 2.0 KB

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