1
0

Makefile 3.4 KB

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