3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=330613902c59bd597f140a8254e9f4ec
10 PKG_SOURCE_URL
:=http
://www.freedesktop.org
/~lennart
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
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
)))
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 \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
50 $(DISABLE_LARGEFILE
) \
65 --disable-python-dbus \
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 \
80 --with-avahi-user
=nobody \
81 --with-avahi-group
=nogroup \
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)" \
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
) $(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
)
106 $(IPKG_AVAHI_DNSCONFD
):
107 install -d
-m0755
$(IDIR_AVAHI_DNSCONFD
)/etc
/avahi
108 $(CP
) $(PKG_INSTALL_DIR
)/etc
/avahi
/avahi-dnsconfd.action
$(IDIR_AVAHI_DNSCONFD
)/etc
/avahi
/
109 install -d
-m0755
$(IDIR_AVAHI_DNSCONFD
)/usr
/sbin
110 $(CP
) $(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
)
115 install -d
-m0755
$(IDIR_LIBAVAHI
)/usr
/lib
116 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libavahi-common.so.
* $(IDIR_LIBAVAHI
)/usr
/lib
/
117 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libavahi-core.so.
* $(IDIR_LIBAVAHI
)/usr
/lib
/
118 $(RSTRIP
) $(IDIR_LIBAVAHI
)
119 $(IPKG_BUILD
) $(IDIR_LIBAVAHI
) $(PACKAGE_DIR
)
121 $(STAGING_DIR
)/usr
/lib
/avahi.so
: $(PKG_BUILD_DIR
)/.built
122 mkdir
-p
$(STAGING_DIR
)/usr
/include
123 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/avahi-common
$(STAGING_DIR
)/usr
/include/
124 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/avahi-core
$(STAGING_DIR
)/usr
/include/
125 mkdir
-p
$(STAGING_DIR
)/usr
/lib
126 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libavahi-common.a
$(STAGING_DIR
)/usr
/lib
/
127 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libavahi-common.so
* $(STAGING_DIR
)/usr
/lib
/
128 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libavahi-core.a
$(STAGING_DIR
)/usr
/lib
/
129 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libavahi-core.so
* $(STAGING_DIR
)/usr
/lib
/
130 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
131 $(CP
) $(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
136 install-dev
: $(STAGING_DIR
)/usr
/lib
/avahi.so
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 \
148 compile-targets
: install-dev
149 clean-targets
: uninstall-dev
152 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
153 rm -f
$(PKG_BUILD_DIR
)/.built