Makefile 3.5 KB

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