remove experimental llvm support
[openadk.git] / package / avahi / Makefile
blobc9449baea300f58c4f3658cc77623ffda9355ed5
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= avahi
7 PKG_VERSION:= 0.6.32
8 PKG_RELEASE:= 1
9 PKG_HASH:= d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454
10 PKG_DESCR:= multicast dns daemon and dns-sd server
11 PKG_SECTION:= net/dns
12 PKG_BUILDDEP:= libdaemon expat gdbm glib
13 PKG_NEEDS:= c++ intl
14 PKG_URL:= http://avahi.org/
15 PKG_SITES:= https://github.com/lathiat/avahi/releases/download/v$(PKG_VERSION)/
16 PKG_LIBNAME:= libavahi
17 PKG_OPTS:= dev
19 DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
21 PKG_SUBPKGS:= AVAHI LIBAVAHI
22 PKGSS_AVAHI:= libavahi libdaemon libexpat libintl dbus
23 PKGSB_AVAHI:= dbus
24 PKGSS_LIBAVAHI:= dbus
25 PKGSB_LIBAVAHI:= dbus
26 PKGSD_LIBAVAHI:= dns-sd and mdns library
27 PKGSC_LIBAVAHI:= libs/misc
29 include $(ADK_TOPDIR)/mk/package.mk
31 $(eval $(call PKG_template,AVAHI,avahi,$(PKG_VERSION)-$(PKG_RELEASE),$(PKGSS_AVAHI),$(PKG_DESCR),$(PKG_SECTION)))
32 $(eval $(call PKG_template,LIBAVAHI,libavahi,$(PKG_VERSION)-$(PKG_RELEASE),,$(PKGSD_LIBAVAHI),$(PKGSC_LIBAVAHI),$(PKG_OPTS)))
34 AUTOTOOL_STYLE:= autoreconf
35 CONFIGURE_ARGS+= --enable-glib \
36 --enable-libdaemon \
37 --enable-dbus \
38 --disable-qt3 \
39 --disable-qt4 \
40 --disable-gtk \
41 --disable-gtk3 \
42 --disable-python \
43 --disable-pygtk \
44 --disable-python-dbus \
45 --disable-mono \
46 --disable-monodoc \
47 --disable-doxygen-doc \
48 --disable-doxygen-dot \
49 --disable-doxygen-man \
50 --disable-doxygen-rtf \
51 --disable-doxygen-xml \
52 --disable-doxygen-chm \
53 --disable-doxygen-chi \
54 --disable-doxygen-html \
55 --disable-doxygen-ps \
56 --disable-doxygen-pdf \
57 --disable-xmltoman \
58 --with-distro=none \
59 --with-avahi-user=avahi \
60 --with-avahi-group=avahi
62 ifeq ($(ADK_TARGET_USE_SSP),y)
63 CONFIGURE_ARGS+= --enable-stack-protector
64 else
65 CONFIGURE_ARGS+= --disable-stack-protector
66 endif
68 avahi-install:
69 $(INSTALL_DIR) $(IDIR_AVAHI)/etc/dbus-1/system.d
70 $(INSTALL_DATA) $(WRKINST)/etc/dbus-1/system.d/avahi-dbus.conf \
71 $(IDIR_AVAHI)/etc/dbus-1/system.d
72 $(INSTALL_DIR) $(IDIR_AVAHI)/etc/avahi
73 $(CP) $(WRKINST)/etc/avahi/avahi-dnsconfd.action \
74 $(IDIR_AVAHI)/etc/avahi
75 $(INSTALL_DATA) ./files/avahi-daemon.conf \
76 $(IDIR_AVAHI)/etc/avahi
77 $(INSTALL_DIR) $(IDIR_AVAHI)/etc/avahi/services
78 $(INSTALL_DATA) ./files/service-http \
79 $(IDIR_AVAHI)/etc/avahi/services/http.service
80 $(INSTALL_DATA) ./files/service-ssh \
81 $(IDIR_AVAHI)/etc/avahi/services/ssh.service
82 $(INSTALL_DIR) $(IDIR_AVAHI)/usr/sbin
83 $(INSTALL_DIR) $(IDIR_AVAHI)/usr/bin
84 $(INSTALL_BIN) $(WRKINST)/usr/sbin/* \
85 $(IDIR_AVAHI)/usr/sbin
86 $(INSTALL_BIN) $(WRKINST)/usr/bin/* \
87 $(IDIR_AVAHI)/usr/bin
89 libavahi-install:
90 $(INSTALL_DIR) $(IDIR_LIBAVAHI)/usr/lib
91 $(CP) $(WRKINST)/usr/lib/libavahi-common.so* \
92 $(IDIR_LIBAVAHI)/usr/lib
93 $(CP) $(WRKINST)/usr/lib/libavahi-client.so* \
94 $(IDIR_LIBAVAHI)/usr/lib
95 $(CP) $(WRKINST)/usr/lib/libavahi-core.so* \
96 $(IDIR_LIBAVAHI)/usr/lib
97 $(CP) $(WRKINST)/usr/lib/libavahi-glib.so* \
98 $(IDIR_LIBAVAHI)/usr/lib
100 include $(ADK_TOPDIR)/mk/pkg-bottom.mk