Added wx200d, thanks Geoffrey Kruse, corrected typo in tmsnc/Config.in
[openwrt.git] / package / avahi / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=avahi
6 PKG_VERSION:=0.6.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=330613902c59bd597f140a8254e9f4ec
9
10 PKG_SOURCE_URL:=http://www.freedesktop.org/~lennart/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,AVAHI_DAEMON,avahi-daemon,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,AVAHI_DNSCONFD,avahi-dnsconfd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(eval $(call PKG_template,LIBAVAHI,libavahi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured:
24 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS) -DNDEBUG" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
29 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
30 ac_cv_func_malloc_0_nonnull=yes \
31 ac_cv_func_realloc_0_nonnull=yes \
32 ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --program-prefix="" \
37 --program-suffix="" \
38 --prefix=/usr \
39 --exec-prefix=/usr \
40 --bindir=/usr/bin \
41 --datadir=/usr/share \
42 --includedir=/usr/include \
43 --infodir=/usr/share/info \
44 --libdir=/usr/lib \
45 --libexecdir=/usr/lib \
46 --localstatedir=/var \
47 --mandir=/usr/share/man \
48 --sbindir=/usr/sbin \
49 --sysconfdir=/etc \
50 $(DISABLE_LARGEFILE) \
51 $(DISABLE_NLS) \
52 --enable-shared \
53 --enable-static \
54 --disable-rpath \
55 --with-gnu-ld \
56 --disable-glib \
57 --disable-qt3 \
58 --disable-qt4 \
59 --disable-gtk \
60 --disable-dbus \
61 --enable-expat \
62 --enable-libdaemon \
63 --disable-python \
64 --disable-pygtk \
65 --disable-python-dbus \
66 --disable-mono \
67 --disable-monodoc \
68 --disable-doxygen-doc \
69 --disable-doxygen-dot \
70 --disable-doxygen-man \
71 --disable-doxygen-rtf \
72 --disable-doxygen-xml \
73 --disable-doxygen-chm \
74 --disable-doxygen-chi \
75 --disable-doxygen-html \
76 --disable-doxygen-ps \
77 --disable-doxygen-pdf \
78 --disable-xmltoman \
79 --with-distro=none \
80 --with-avahi-user=nobody \
81 --with-avahi-group=nogroup \
82 );
83 touch $@
84
85 $(PKG_BUILD_DIR)/.built:
86 rm -rf $(PKG_INSTALL_DIR)
87 mkdir -p $(PKG_INSTALL_DIR)
88 $(MAKE) -C $(PKG_BUILD_DIR) \
89 DESTDIR="$(PKG_INSTALL_DIR)" \
90 all install
91 touch $@
92
93 $(IPKG_AVAHI_DAEMON):
94 install -d -m0755 $(IDIR_AVAHI_DAEMON)/etc/avahi
95 install -m0644 ./files/avahi-daemon.conf $(IDIR_AVAHI_DAEMON)/etc/avahi/
96 install -d -m0755 $(IDIR_AVAHI_DAEMON)/etc/avahi/services
97 install -m0644 ./files/service-http $(IDIR_AVAHI_DAEMON)/etc/avahi/services/http.service
98 install -m0644 ./files/service-ssh $(IDIR_AVAHI_DAEMON)/etc/avahi/services/ssh.service
99 install -d -m0755 $(IDIR_AVAHI_DAEMON)/etc/init.d
100 install -m0755 ./files/avahi-daemon.init $(IDIR_AVAHI_DAEMON)/etc/init.d/avahi-daemon
101 install -d -m0755 $(IDIR_AVAHI_DAEMON)/usr/sbin
102 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/avahi-daemon $(IDIR_AVAHI_DAEMON)/usr/sbin/
103 $(RSTRIP) $(IDIR_AVAHI_DAEMON)
104 $(IPKG_BUILD) $(IDIR_AVAHI_DAEMON) $(PACKAGE_DIR)
105
106 $(IPKG_AVAHI_DNSCONFD):
107 install -d -m0755 $(IDIR_AVAHI_DNSCONFD)/etc/avahi
108 cp -fpR $(PKG_INSTALL_DIR)/etc/avahi/avahi-dnsconfd.action $(IDIR_AVAHI_DNSCONFD)/etc/avahi/
109 install -d -m0755 $(IDIR_AVAHI_DNSCONFD)/usr/sbin
110 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/avahi-dnsconfd $(IDIR_AVAHI_DNSCONFD)/usr/sbin/
111 $(RSTRIP) $(IDIR_AVAHI_DNSCONFD)
112 $(IPKG_BUILD) $(IDIR_AVAHI_DNSCONFD) $(PACKAGE_DIR)
113
114 $(IPKG_LIBAVAHI):
115 install -d -m0755 $(IDIR_LIBAVAHI)/usr/lib
116 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-common.so.* $(IDIR_LIBAVAHI)/usr/lib/
117 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-core.so.* $(IDIR_LIBAVAHI)/usr/lib/
118 $(RSTRIP) $(IDIR_LIBAVAHI)
119 $(IPKG_BUILD) $(IDIR_LIBAVAHI) $(PACKAGE_DIR)
120
121 $(STAGING_DIR)/usr/lib/avahi.so: $(PKG_BUILD_DIR)/.built
122 mkdir -p $(STAGING_DIR)/usr/include
123 cp -fpR $(PKG_INSTALL_DIR)/usr/include/avahi-common $(STAGING_DIR)/usr/include/
124 cp -fpR $(PKG_INSTALL_DIR)/usr/include/avahi-core $(STAGING_DIR)/usr/include/
125 mkdir -p $(STAGING_DIR)/usr/lib
126 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-common.a $(STAGING_DIR)/usr/lib/
127 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-common.so* $(STAGING_DIR)/usr/lib/
128 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-core.a $(STAGING_DIR)/usr/lib/
129 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libavahi-core.so* $(STAGING_DIR)/usr/lib/
130 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
131 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/avahi-core.pc $(STAGING_DIR)/usr/lib/pkgconfig/
132 $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc
133 $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc
134 touch $@
135
136 install-dev: $(STAGING_DIR)/usr/lib/avahi.so
137
138 uninstall-dev:
139 rm -rf \
140 $(STAGING_DIR)/usr/include/avahi-common \
141 $(STAGING_DIR)/usr/include/avahi-core \
142 $(STAGING_DIR)/usr/lib/libavahi-common.a \
143 $(STAGING_DIR)/usr/lib/libavahi-common.so* \
144 $(STAGING_DIR)/usr/lib/libavahi-core.a \
145 $(STAGING_DIR)/usr/lib/libavahi-core.so* \
146 $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc \
147
148 compile-targets: install-dev
149 clean-targets: uninstall-dev
150
151 mostlyclean:
152 -$(MAKE) -C $(PKG_BUILD_DIR) clean
153 rm -f $(PKG_BUILD_DIR)/.built
154
This page took 0.060336 seconds and 5 git commands to generate.