source: freewrt/package/avahi/Makefile@ 9f572e3

freewrt_1_0 freewrt_2_0
Last change on this file since 9f572e3 was 9f572e3, checked in by Dirk Nehring <dnehring@…>, 19 years ago

drop --enable-largefile from makefiles. 2GB should be enough in most cases

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@975 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 5.0 KB
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
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= avahi
10PKG_VERSION:= 0.6.10
11PKG_RELEASE:= 2
12PKG_MD5SUM:= cfb9e05c138dff4c430a35eee6229e8a
13PKG_INIT:= 75
14
15PKG_SOURCE_URL:= http://avahi.org/download/
16
17include $(TOPDIR)/mk/package.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$(WRKBUILD)/.configured:
24 (cd $(WRKBUILD); 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 ac_cv_func_memcmp_working=yes \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --program-prefix="" \
38 --program-suffix="" \
39 --prefix=/usr \
40 --exec-prefix=/usr \
41 --bindir=/usr/bin \
42 --datadir=/usr/share \
43 --includedir=/usr/include \
44 --infodir=/usr/share/info \
45 --libdir=/usr/lib \
46 --libexecdir=/usr/lib \
47 --localstatedir=/var \
48 --mandir=/usr/share/man \
49 --sbindir=/usr/sbin \
50 --sysconfdir=/etc \
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=avahi \
81 --with-avahi-group=avahi \
82 );
83 touch $@
84
85$(WRKBUILD)/.built:
86 rm -rf $(WRKINST)
87 mkdir -p $(WRKINST)
88 $(MAKE) -C $(WRKBUILD) \
89 DESTDIR="$(WRKINST)" \
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 \
101 $(IDIR_AVAHI_DAEMON)/etc/init.d/S$(PKG_INIT)avahi-daemon
102 install -d -m0755 $(IDIR_AVAHI_DAEMON)/usr/sbin
103 $(CP) $(WRKINST)/usr/sbin/avahi-daemon $(IDIR_AVAHI_DAEMON)/usr/sbin/
104 $(RSTRIP) $(IDIR_AVAHI_DAEMON)
105 $(IPKG_BUILD) $(IDIR_AVAHI_DAEMON) $(PACKAGE_DIR)
106
107$(IPKG_AVAHI_DNSCONFD):
108 install -d -m0755 $(IDIR_AVAHI_DNSCONFD)/etc/avahi
109 $(CP) $(WRKINST)/etc/avahi/avahi-dnsconfd.action $(IDIR_AVAHI_DNSCONFD)/etc/avahi/
110 install -d -m0755 $(IDIR_AVAHI_DNSCONFD)/usr/sbin
111 $(CP) $(WRKINST)/usr/sbin/avahi-dnsconfd $(IDIR_AVAHI_DNSCONFD)/usr/sbin/
112 $(RSTRIP) $(IDIR_AVAHI_DNSCONFD)
113 $(IPKG_BUILD) $(IDIR_AVAHI_DNSCONFD) $(PACKAGE_DIR)
114
115$(IPKG_LIBAVAHI):
116 install -d -m0755 $(IDIR_LIBAVAHI)/usr/lib
117 $(CP) $(WRKINST)/usr/lib/libavahi-common.so.* $(IDIR_LIBAVAHI)/usr/lib/
118 $(CP) $(WRKINST)/usr/lib/libavahi-core.so.* $(IDIR_LIBAVAHI)/usr/lib/
119 $(RSTRIP) $(IDIR_LIBAVAHI)
120 $(IPKG_BUILD) $(IDIR_LIBAVAHI) $(PACKAGE_DIR)
121
122$(STAGING_DIR)/usr/lib/avahi.so: $(WRKBUILD)/.built
123 mkdir -p $(STAGING_DIR)/usr/include
124 $(CP) $(WRKINST)/usr/include/avahi-common $(STAGING_DIR)/usr/include/
125 $(CP) $(WRKINST)/usr/include/avahi-core $(STAGING_DIR)/usr/include/
126 mkdir -p $(STAGING_DIR)/usr/lib
127 $(CP) $(WRKINST)/usr/lib/libavahi-common.a $(STAGING_DIR)/usr/lib/
128 $(CP) $(WRKINST)/usr/lib/libavahi-common.so* $(STAGING_DIR)/usr/lib/
129 $(CP) $(WRKINST)/usr/lib/libavahi-core.a $(STAGING_DIR)/usr/lib/
130 $(CP) $(WRKINST)/usr/lib/libavahi-core.so* $(STAGING_DIR)/usr/lib/
131 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
132 $(CP) $(WRKINST)/usr/lib/pkgconfig/avahi-core.pc $(STAGING_DIR)/usr/lib/pkgconfig/
133 $(SED) 's,-I$${includedir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc
134 $(SED) 's,-L$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc
135 touch $@
136
137install-dev: $(STAGING_DIR)/usr/lib/avahi.so
138
139uninstall-dev:
140 rm -rf \
141 $(STAGING_DIR)/usr/include/avahi-common \
142 $(STAGING_DIR)/usr/include/avahi-core \
143 $(STAGING_DIR)/usr/lib/libavahi-common.a \
144 $(STAGING_DIR)/usr/lib/libavahi-common.so* \
145 $(STAGING_DIR)/usr/lib/libavahi-core.a \
146 $(STAGING_DIR)/usr/lib/libavahi-core.so* \
147 $(STAGING_DIR)/usr/lib/pkgconfig/avahi-core.pc \
148
149compile-targets: install-dev
150clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.