root/trunk/freewrt/package/avahi/Makefile

Revision 3239, 2.9 kB (checked in by tg, 5 years ago)

make postinstall scripts require mksh as functions.sh does
(how good it's in lbin/ anyway)

Line 
1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 include ${TOPDIR}/rules.mk
8
9 PKG_NAME:=              avahi
10 PKG_VERSION:=           0.6.16
11 PKG_RELEASE:=           6
12 PKG_MD5SUM:=            3cbc460bbd55bae35f7b57443c063640
13 MASTER_SITES:=          http://avahi.org/download/
14
15 include ${TOPDIR}/mk/package.mk
16
17 $(eval $(call PKG_template,AVAHI_DAEMON,avahi-daemon,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
18 $(eval $(call PKG_template,AVAHI_DNSCONFD,avahi-dnsconfd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
19 $(eval $(call PKG_template,LIBAVAHI,libavahi,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
20
21 TCFLAGS+=               -DNDEBUG
22 CONFIGURE_STYLE=        gnu
23 CONFIGURE_ENV+=         ac_cv_func_malloc_0_nonnull=yes \
24                         ac_cv_func_realloc_0_nonnull=yes \
25                         ac_cv_func_memcmp_working=yes
26 CONFIGURE_ARGS+=        --disable-glib \
27                         --disable-qt3 \
28                         --disable-qt4 \
29                         --disable-gtk \
30                         --disable-dbus \
31                         --enable-expat \
32                         --enable-libdaemon \
33                         --disable-python \
34                         --disable-pygtk \
35                         --disable-python-dbus \
36                         --disable-mono \
37                         --disable-monodoc \
38                         --disable-doxygen-doc \
39                         --disable-doxygen-dot \
40                         --disable-doxygen-man \
41                         --disable-doxygen-rtf \
42                         --disable-doxygen-xml \
43                         --disable-doxygen-chm \
44                         --disable-doxygen-chi \
45                         --disable-doxygen-html \
46                         --disable-doxygen-ps \
47                         --disable-doxygen-pdf \
48                         --disable-xmltoman \
49                         --with-distro=none \
50                         --with-avahi-user=avahi \
51                         --with-avahi-group=avahi
52 BUILD_STYLE=            auto
53 INSTALL_STYLE=          auto
54 #XXX maybe unneeded?
55 #XAKE_FLAGS+=           PKG_CONFIG_PATH=${STAGING_DIR}/usr/lib/pkgconfig
56
57 post-install:
58         # avahi daemon
59         ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi
60         ${INSTALL_DATA} ./files/avahi-daemon.conf ${IDIR_AVAHI_DAEMON}/etc/avahi/
61         ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi/services
62         ${INSTALL_DATA} ./files/service-http \
63                 ${IDIR_AVAHI_DAEMON}/etc/avahi/services/http.service
64         ${INSTALL_DATA} ./files/service-ssh \
65                 ${IDIR_AVAHI_DAEMON}/etc/avahi/services/ssh.service
66         ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/init.d
67         ${INSTALL_BIN} ./files/avahi-daemon.init \
68                 ${IDIR_AVAHI_DAEMON}/etc/init.d/avahi-daemon
69         ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/usr/sbin
70         ${CP} ${WRKINST}/usr/sbin/avahi-daemon ${IDIR_AVAHI_DAEMON}/usr/sbin/
71         # avahi dnsconfd
72         ${INSTALL_DIR} ${IDIR_AVAHI_DNSCONFD}/etc/avahi
73         ${CP} ${WRKINST}/etc/avahi/avahi-dnsconfd.action \
74                 ${IDIR_AVAHI_DNSCONFD}/etc/avahi/
75         ${INSTALL_DIR} ${IDIR_AVAHI_DNSCONFD}/usr/sbin
76         ${CP} ${WRKINST}/usr/sbin/avahi-dnsconfd ${IDIR_AVAHI_DNSCONFD}/usr/sbin/
77         # libavahi
78         ${INSTALL_DIR} ${IDIR_LIBAVAHI}/usr/lib
79         ${CP} ${WRKINST}/usr/lib/libavahi-common.so.* ${IDIR_LIBAVAHI}/usr/lib/
80         ${CP} ${WRKINST}/usr/lib/libavahi-core.so.* ${IDIR_LIBAVAHI}/usr/lib/
81         ${SED} 's,-I$$(includedir),,g' ${WRKINST}/usr/lib/pkgconfig/avahi-core.pc
82         ${SED} 's,-L$$(libdir),,g' ${WRKINST}/usr/lib/pkgconfig/avahi-core.pc
83
84 include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracBrowser for help on using the browser.