1
0

Makefile 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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.30
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e4db89a2a403ff4c47d66ac66fad1f43
  8. PKG_DESCR:= mDNS daemon
  9. PKG_SECTION:= dhcp
  10. PKG_BUILDDEP:= libdaemon expat gdbm glib gettext gtk+ dbus
  11. PKG_URL:= http://avahi.org/
  12. PKG_SITES:= http://avahi.org/download/
  13. PKG_NEED_CXX:= 1
  14. PKG_SUBPKGS:= AVAHI_DAEMON AVAHI_DNSCONFD LIBAVAHI
  15. PKGSS_AVAHI_DAEMON:= libavahi libdaemon libexpat libintl libgtk dbus
  16. PKGSS_AVAHI_DNSCONFD:= libavahi libdaemon avahi-daemon
  17. PKGSD_AVAHI_DNSCONFD:= DNS server from mDNS configuration daemon
  18. PKGSD_LIBAVAHI:= DNS-SD over mDNS library
  19. PKGSC_LIBAVAHI:= libs
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,AVAHI_DAEMON,avahi-daemon,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_AVAHI_DAEMON},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,AVAHI_DNSCONFD,avahi-dnsconfd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_AVAHI_DNSCONFD},${PKGSD_AVAHI_DNSCONFD},${PKG_SECTION}))
  23. $(eval $(call PKG_template,LIBAVAHI,libavahi,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBAVAHI},${PKGSC_LIBAVAHI}))
  24. TARGET_LDFLAGS+= -lintl
  25. CONFIGURE_ARGS+= --enable-glib \
  26. --enable-gtk2 \
  27. --enable-libdaemon \
  28. --enable-dbus \
  29. --disable-qt3 \
  30. --disable-qt4 \
  31. --disable-gtk3 \
  32. --disable-python \
  33. --disable-pygtk \
  34. --disable-python-dbus \
  35. --disable-mono \
  36. --disable-monodoc \
  37. --disable-doxygen-doc \
  38. --disable-doxygen-dot \
  39. --disable-doxygen-man \
  40. --disable-doxygen-rtf \
  41. --disable-doxygen-xml \
  42. --disable-doxygen-chm \
  43. --disable-doxygen-chi \
  44. --disable-doxygen-html \
  45. --disable-doxygen-ps \
  46. --disable-doxygen-pdf \
  47. --disable-xmltoman \
  48. --with-distro=none \
  49. --with-avahi-user=avahi \
  50. --with-avahi-group=avahi
  51. ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
  52. CONFIGURE_ARGS+= --enable-stack-protector
  53. else
  54. CONFIGURE_ARGS+= --disable-stack-protector
  55. endif
  56. avahi-daemon-install:
  57. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/dbus-1/system.d
  58. $(INSTALL_DATA) $(WRKINST)/etc/dbus-1/system.d/avahi-dbus.conf \
  59. ${IDIR_AVAHI_DAEMON}/etc/dbus-1/system.d
  60. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi
  61. ${INSTALL_DATA} ./files/avahi-daemon.conf \
  62. ${IDIR_AVAHI_DAEMON}/etc/avahi
  63. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi/services
  64. ${INSTALL_DATA} ./files/service-http \
  65. ${IDIR_AVAHI_DAEMON}/etc/avahi/services/http.service
  66. ${INSTALL_DATA} ./files/service-ssh \
  67. ${IDIR_AVAHI_DAEMON}/etc/avahi/services/ssh.service
  68. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/usr/sbin
  69. ${CP} ${WRKINST}/usr/sbin/avahi-daemon \
  70. ${IDIR_AVAHI_DAEMON}/usr/sbin
  71. avahi-dnsconfd-install:
  72. ${INSTALL_DIR} ${IDIR_AVAHI_DNSCONFD}/etc/avahi
  73. ${CP} ${WRKINST}/etc/avahi/avahi-dnsconfd.action \
  74. ${IDIR_AVAHI_DNSCONFD}/etc/avahi
  75. ${INSTALL_DIR} ${IDIR_AVAHI_DNSCONFD}/usr/sbin
  76. ${CP} ${WRKINST}/usr/sbin/avahi-dnsconfd \
  77. ${IDIR_AVAHI_DNSCONFD}/usr/sbin
  78. libavahi-install:
  79. ${INSTALL_DIR} ${IDIR_LIBAVAHI}/usr/lib
  80. ${CP} ${WRKINST}/usr/lib/libavahi-common.so* \
  81. ${IDIR_LIBAVAHI}/usr/lib
  82. ${CP} ${WRKINST}/usr/lib/libavahi-client.so* \
  83. ${IDIR_LIBAVAHI}/usr/lib
  84. ${CP} ${WRKINST}/usr/lib/libavahi-core.so* \
  85. ${IDIR_LIBAVAHI}/usr/lib
  86. include ${TOPDIR}/mk/pkg-bottom.mk