[packages] slang2: add the OLD directory as a source url
[openwrt/svn-archive/archive.git] / libs / howl / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=howl
11 PKG_VERSION:=1.0.0
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.porchdogsoft.com/download/
16 PKG_MD5SUM:=c389d3ffba0e69a179de2ec650f1fdcc
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 TARGET_CFLAGS += $(FPIC)
23
24 define Package/howl/Default
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Zeroconf networking implementation
28 URL:=http://www.porchdogsoft.com/products/howl/
29 endef
30
31 define Package/libhowl
32 $(call Package/howl/Default)
33 SECTION:=libs
34 CATEGORY:=Libraries
35 TITLE+= (library)
36 endef
37
38 define Package/libhowl/description
39 Howl is a cross-platform implementation of Zeroconf networking.
40 This package contains the Howl shared libraries, used by other programs.
41 endef
42
43 define Package/howl-autoipd
44 $(call Package/howl/Default)
45 SUBMENU:=IP Addresses and Names
46 DEPENDS:=+libhowl
47 TITLE:=An IPv4 Link-Local address self-assigner daemon
48 endef
49
50 define Package/howl-autoipd/description
51 Howl is a cross-platform implementation of Zeroconf networking.
52 This package contains an IPv4 Link-Local address self-assigner daemon.
53 endef
54
55 define Package/howl-mdnsresponder
56 $(call Package/howl/Default)
57 SUBMENU:=IP Addresses and Names
58 DEPENDS:=+libhowl +libpthread
59 TITLE:=An mDNS (Multicast DNS) service responder daemon
60 endef
61
62 define Package/howl-mdnsresponder/description
63 Howl is a cross-platform implementation of Zeroconf networking.
64 This package contains an mDNS (Multicast DNS) service responder daemon.
65 endef
66
67 define Package/howl-mdnsresponder/conffiles
68 /etc/mDNSResponder.conf
69 endef
70
71 define Package/howl-nifd
72 $(call Package/howl/Default)
73 SUBMENU:=IP Addresses and Names
74 DEPENDS:=+libhowl
75 TITLE:=A network interface monitor daemon
76 endef
77
78 define Package/howl-nifd/description
79 This package contains a network interface monitor daemon.
80 endef
81
82 define Package/howl-utils
83 $(call Package/howl/Default)
84 SUBMENU:=IP Addresses and Names
85 DEPENDS:=+libhowl
86 TITLE+= (utilities)
87 endef
88
89 define Package/howl-utils/description
90 This package contains mDNS (Multicast DNS) client utilities.
91 endef
92
93 define Build/Configure
94 $(call Build/Configure/Default, \
95 --enable-shared \
96 --enable-static \
97 );
98 endef
99
100 define Build/InstallDev
101 $(INSTALL_DIR) $(1)/usr/include
102 $(CP) $(PKG_INSTALL_DIR)/usr/include/howl $(1)/usr/include/
103 $(INSTALL_DIR) $(1)/usr/lib
104 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.{a,so*} $(1)/usr/lib/
105 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
106 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/howl.pc $(1)/usr/lib/pkgconfig/
107 $(SED) 's,-I/usr/include,-I$$$${includedir},g' $(1)/usr/lib/pkgconfig/howl.pc
108 $(SED) 's,-L/usr/lib/howl,-L$$$${libdir}/howl,g' $(1)/usr/lib/pkgconfig/howl.pc
109 endef
110
111 define Package/libhowl/install
112 $(INSTALL_DIR) $(1)/usr/lib
113 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.so.* $(1)/usr/lib/
114 endef
115
116 define Package/howl-autoipd/install
117 $(INSTALL_DIR) $(1)/usr/sbin
118 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/autoipd $(1)/usr/sbin/
119 $(INSTALL_DIR) $(1)/etc/init.d
120 $(INSTALL_DATA) ./files/autoipd.init $(1)/etc/init.d/autoipd
121 endef
122
123 define Package/howl-mdnsresponder/install
124 $(INSTALL_DIR) $(1)/usr/sbin
125 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mDNSResponder $(1)/usr/sbin/
126 $(INSTALL_DIR) $(1)/etc
127 $(INSTALL_DATA) ./files/mDNSResponder.conf $(1)/etc/mDNSResponder.conf
128 $(INSTALL_DIR) $(1)/etc/init.d
129 $(INSTALL_BIN) ./files/mDNSResponder.init $(1)/etc/init.d/mDNSResponder
130 endef
131
132 define Package/howl-nifd/install
133 $(INSTALL_DIR) $(1)/usr/sbin
134 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nifd $(1)/usr/sbin/
135 $(INSTALL_DIR) $(1)/etc/init.d
136 $(INSTALL_DATA) ./files/nifd.init $(1)/etc/init.d/nifd
137 endef
138
139 define Package/howl-utils/install
140 $(INSTALL_DIR) $(1)/usr/bin
141 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mDNS{Browse,Publish,Query,Resolve} $(1)/usr/bin/
142 endef
143
144 $(eval $(call BuildPackage,libhowl))
145 $(eval $(call BuildPackage,howl-autoipd))
146 $(eval $(call BuildPackage,howl-mdnsresponder))
147 $(eval $(call BuildPackage,howl-nifd))
148 $(eval $(call BuildPackage,howl-utils))