build the transitional iptables-extra meta-package too (port of changeset:2558)
[openwrt.git] / package / howl / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=howl
6 PKG_VERSION:=1.0.0
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=c389d3ffba0e69a179de2ec650f1fdcc
9
10 PKG_SOURCE_URL:=http://www.porchdogsoft.com/download/
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,LIBHOWL,libhowl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,MDNSRESPONDER,mdnsresponder,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(eval $(call PKG_template,HOWL_UTILS,howl-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22 $(eval $(call PKG_template,AUTOIPD,autoipd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23 $(eval $(call PKG_template,NIFD,nifd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
24
25 $(PKG_BUILD_DIR)/.configured:
26 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
27 $(TARGET_CONFIGURE_OPTS) \
28 CFLAGS="$(TARGET_CFLAGS)" \
29 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
30 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc \
49 $(DISABLE_LARGEFILE) \
50 $(DISABLE_NLS) \
51 --enable-shared \
52 --enable-static \
53 )
54 touch $@
55
56 $(PKG_BUILD_DIR)/.built:
57 rm -rf $(PKG_INSTALL_DIR)
58 mkdir -p $(PKG_INSTALL_DIR)
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 DESTDIR="$(PKG_INSTALL_DIR)" \
61 all install
62 touch $@
63
64 $(IPKG_LIBHOWL):
65 install -m0755 -d $(IDIR_LIBHOWL)/usr/lib
66 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.so.* $(IDIR_LIBHOWL)/usr/lib/
67 $(RSTRIP) $(IDIR_LIBHOWL)
68 $(IPKG_BUILD) $(IDIR_LIBHOWL) $(PACKAGE_DIR)
69
70 $(IPKG_HOWL_UTILS):
71 install -m0755 -d $(IDIR_HOWL_UTILS)/usr/bin
72 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/mDNS{Browse,Publish,Query,Resolve} $(IDIR_HOWL_UTILS)/usr/bin/
73 $(RSTRIP) $(IDIR_HOWL_UTILS)
74 $(IPKG_BUILD) $(IDIR_HOWL_UTILS) $(PACKAGE_DIR)
75
76 $(IPKG_MDNSRESPONDER):
77 install -m0755 -d $(IDIR_MDNSRESPONDER)/etc
78 install -m0644 ./files/mDNSResponder.conf $(IDIR_MDNSRESPONDER)/etc/mDNSResponder.conf
79 install -m0755 -d $(IDIR_MDNSRESPONDER)/etc/init.d
80 install -m0644 ./files/mDNSResponder.init $(IDIR_MDNSRESPONDER)/etc/init.d/mDNSResponder
81 install -m0755 -d $(IDIR_MDNSRESPONDER)/usr/sbin
82 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/mDNSResponder $(IDIR_MDNSRESPONDER)/usr/sbin/
83 $(RSTRIP) $(IDIR_MDNSRESPONDER)
84 $(IPKG_BUILD) $(IDIR_MDNSRESPONDER) $(PACKAGE_DIR)
85
86 $(IPKG_AUTOIPD):
87 install -m0755 -d $(IDIR_AUTOIPD)/etc/init.d
88 install -m0644 ./files/autoipd.init $(IDIR_AUTOIPD)/etc/init.d/autoipd
89 install -m0755 -d $(IDIR_AUTOIPD)/usr/sbin
90 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/autoipd $(IDIR_AUTOIPD)/usr/sbin/
91 $(RSTRIP) $(IDIR_AUTOIPD)
92 $(IPKG_BUILD) $(IDIR_AUTOIPD) $(PACKAGE_DIR)
93
94 $(IPKG_NIFD):
95 install -m0755 -d $(IDIR_NIFD)/etc/init.d
96 install -m0644 ./files/nifd.init $(IDIR_NIFD)/etc/init.d/nifd
97 install -m0755 -d $(IDIR_NIFD)/usr/sbin
98 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/nifd $(IDIR_NIFD)/usr/sbin/
99 $(RSTRIP) $(IDIR_NIFD)
100 $(IPKG_BUILD) $(IDIR_NIFD) $(PACKAGE_DIR)
101
102 $(STAGING_DIR)/usr/lib/libhowl.so: $(PKG_BUILD_DIR)/.built
103 mkdir -p $(STAGING_DIR)/usr/include
104 cp -fpR $(PKG_INSTALL_DIR)/usr/include/howl $(STAGING_DIR)/usr/include/
105 mkdir -p $(STAGING_DIR)/usr/lib
106 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.{a,so*} $(STAGING_DIR)/usr/lib/
107 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
108 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/howl.pc $(STAGING_DIR)/usr/lib/pkgconfig/
109 touch $(STAGING_DIR)/usr/lib/libhowl.so
110
111 install-dev: $(STAGING_DIR)/usr/lib/libhowl.so
112
113 uninstall-dev:
114 rm -rf \
115 $(STAGING_DIR)/usr/include/howl \
116 $(STAGING_DIR)/usr/lib/lib{howl,mDNSResponder}.{a,so*} \
117 $(STAGING_DIR)/usr/lib/pkgconfig/howl.pc \
118
119 compile-targets: install-dev
120 clean-targets: uninstall-dev
This page took 0.080162 seconds and 5 git commands to generate.