Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= avahi
  5. PKG_VERSION:= 0.6.31
  6. PKG_RELEASE:= 4
  7. PKG_MD5SUM:= 2f22745b8f7368ad5a0a3fddac343f2d
  8. PKG_DESCR:= multicast dns daemon
  9. PKG_SECTION:= net/dns
  10. PKG_DEPENDS:= libstdcxx
  11. PKG_BUILDDEP:= libdaemon expat gdbm glib
  12. PKG_BUILDDEP+= gettext-tiny gtk+ dbus
  13. PKG_URL:= http://avahi.org/
  14. PKG_SITES:= http://avahi.org/download/
  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/misc
  24. include ${ADK_TOPDIR}/mk/package.mk
  25. $(eval $(call PKG_template,AVAHI_DAEMON,avahi-daemon,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_AVAHI_DAEMON},${PKG_DESCR},${PKG_SECTION}))
  26. $(eval $(call PKG_template,AVAHI_DNSCONFD,avahi-dnsconfd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_AVAHI_DNSCONFD},${PKGSD_AVAHI_DNSCONFD},${PKG_SECTION}))
  27. $(eval $(call PKG_template,LIBAVAHI,libavahi,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBAVAHI},${PKGSC_LIBAVAHI},${PKG_OPTS}))
  28. AUTOTOOL_STYLE:= autoreconf
  29. CONFIGURE_ARGS+= --enable-glib \
  30. --enable-gtk2 \
  31. --enable-libdaemon \
  32. --enable-dbus \
  33. --disable-qt3 \
  34. --disable-qt4 \
  35. --disable-gtk3 \
  36. --disable-python \
  37. --disable-pygtk \
  38. --disable-python-dbus \
  39. --disable-mono \
  40. --disable-monodoc \
  41. --disable-doxygen-doc \
  42. --disable-doxygen-dot \
  43. --disable-doxygen-man \
  44. --disable-doxygen-rtf \
  45. --disable-doxygen-xml \
  46. --disable-doxygen-chm \
  47. --disable-doxygen-chi \
  48. --disable-doxygen-html \
  49. --disable-doxygen-ps \
  50. --disable-doxygen-pdf \
  51. --disable-xmltoman \
  52. --with-distro=none \
  53. --with-avahi-user=avahi \
  54. --with-avahi-group=avahi
  55. ifeq ($(ADK_TARGET_USE_SSP),y)
  56. CONFIGURE_ARGS+= --enable-stack-protector
  57. else
  58. CONFIGURE_ARGS+= --disable-stack-protector
  59. endif
  60. avahi-daemon-install:
  61. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/dbus-1/system.d
  62. $(INSTALL_DATA) $(WRKINST)/etc/dbus-1/system.d/avahi-dbus.conf \
  63. ${IDIR_AVAHI_DAEMON}/etc/dbus-1/system.d
  64. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi
  65. ${INSTALL_DATA} ./files/avahi-daemon.conf \
  66. ${IDIR_AVAHI_DAEMON}/etc/avahi
  67. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi/services
  68. ${INSTALL_DATA} ./files/service-http \
  69. ${IDIR_AVAHI_DAEMON}/etc/avahi/services/http.service
  70. ${INSTALL_DATA} ./files/service-ssh \
  71. ${IDIR_AVAHI_DAEMON}/etc/avahi/services/ssh.service
  72. ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/usr/sbin
  73. ${CP} ${WRKINST}/usr/sbin/avahi-daemon \
  74. ${IDIR_AVAHI_DAEMON}/usr/sbin
  75. avahi-dnsconfd-install:
  76. ${INSTALL_DIR} ${IDIR_AVAHI_DNSCONFD}/etc/avahi
  77. ${CP} ${WRKINST}/etc/avahi/avahi-dnsconfd.action \
  78. ${IDIR_AVAHI_DNSCONFD}/etc/avahi
  79. ${INSTALL_DIR} ${IDIR_AVAHI_DNSCONFD}/usr/sbin
  80. ${CP} ${WRKINST}/usr/sbin/avahi-dnsconfd \
  81. ${IDIR_AVAHI_DNSCONFD}/usr/sbin
  82. libavahi-install:
  83. ${INSTALL_DIR} ${IDIR_LIBAVAHI}/usr/lib
  84. ${CP} ${WRKINST}/usr/lib/libavahi-common.so* \
  85. ${IDIR_LIBAVAHI}/usr/lib
  86. ${CP} ${WRKINST}/usr/lib/libavahi-client.so* \
  87. ${IDIR_LIBAVAHI}/usr/lib
  88. ${CP} ${WRKINST}/usr/lib/libavahi-core.so* \
  89. ${IDIR_LIBAVAHI}/usr/lib
  90. ${CP} ${WRKINST}/usr/lib/libavahi-glib.so* \
  91. ${IDIR_LIBAVAHI}/usr/lib
  92. include ${ADK_TOPDIR}/mk/pkg-bottom.mk