Makefile 2.8 KB

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