Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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:= avahi
  5. PKG_VERSION:= 0.6.25
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a83155a6e29e3988f07e5eea3287b21e
  8. PKG_DESCR:= mDNS/DNS-SD (aka RendezVous/Bonjour/ZeroConf) daemon
  9. PKG_SECTION:= dhcp
  10. PKG_DEPENDS:= libavahi libdaemon libexpat gettext
  11. PKG_BUILDDEP+= libdaemon expat gdbm glib gettext
  12. PKG_URL:= http://avahi.org
  13. PKG_SITES:= http://avahi.org/download/
  14. PKG_DEPENDS_DNSCONFD:= libavahi libdaemon avahi-daemon
  15. PKG_DESCR_DNSCONFD:= Unicast DNS server from mDNS/DNS-SD configuration daemon
  16. PKG_DESCR_LIB:= DNS-SD over mDNS library
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,AVAHI_DAEMON,avahi-daemon,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,AVAHI_DNSCONFD,avahi-dnsconfd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_DNSCONFD},${PKG_DESCR_DNSCONFD},${PKG_SECTION}))
  20. $(eval $(call PKG_template,LIBAVAHI,libavahi,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_LIB},libs))
  21. TLDFLAGS+= -lintl
  22. CONFIGURE_ARGS+= --enable-glib \
  23. --disable-qt3 \
  24. --disable-qt4 \
  25. --disable-gtk \
  26. --disable-dbus \
  27. --enable-libdaemon \
  28. --disable-python \
  29. --disable-pygtk \
  30. --disable-python-dbus \
  31. --disable-mono \
  32. --disable-monodoc \
  33. --disable-doxygen-doc \
  34. --disable-doxygen-dot \
  35. --disable-doxygen-man \
  36. --disable-doxygen-rtf \
  37. --disable-doxygen-xml \
  38. --disable-doxygen-chm \
  39. --disable-doxygen-chi \
  40. --disable-doxygen-html \
  41. --disable-doxygen-ps \
  42. --disable-doxygen-pdf \
  43. --disable-xmltoman \
  44. --with-distro=none \
  45. --with-avahi-user=avahi \
  46. --with-avahi-group=avahi
  47. post-install:
  48. # avahi daemon
  49. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi
  50. ${INSTALL_DATA} ./files/avahi-daemon.conf \
  51. ${IDIR_AVAHI_DAEMON}/etc/avahi/
  52. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi/services
  53. ${INSTALL_DATA} ./files/service-http \
  54. ${IDIR_AVAHI_DAEMON}/etc/avahi/services/http.service
  55. ${INSTALL_DATA} ./files/service-ssh \
  56. ${IDIR_AVAHI_DAEMON}/etc/avahi/services/ssh.service
  57. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/usr/sbin
  58. ${CP} ${WRKINST}/usr/sbin/avahi-daemon \
  59. ${IDIR_AVAHI_DAEMON}/usr/sbin/
  60. # avahi dnsconfd
  61. ${INSTALL_DIR} ${IDIR_AVAHI_DNSCONFD}/etc/avahi
  62. ${CP} ${WRKINST}/etc/avahi/avahi-dnsconfd.action \
  63. ${IDIR_AVAHI_DNSCONFD}/etc/avahi/
  64. ${INSTALL_DIR} ${IDIR_AVAHI_DNSCONFD}/usr/sbin
  65. ${CP} ${WRKINST}/usr/sbin/avahi-dnsconfd \
  66. ${IDIR_AVAHI_DNSCONFD}/usr/sbin/
  67. # libavahi
  68. ${INSTALL_DIR} ${IDIR_LIBAVAHI}/usr/lib
  69. ${CP} ${WRKINST}/usr/lib/libavahi-common.so* \
  70. ${IDIR_LIBAVAHI}/usr/lib/
  71. ${CP} ${WRKINST}/usr/lib/libavahi-core.so* \
  72. ${IDIR_LIBAVAHI}/usr/lib/
  73. include ${TOPDIR}/mk/pkg-bottom.mk