[packages] eterm: Don't add host lib and include paths.
[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 DEPENDS:=+libhowl
46 TITLE:=An IPv4 Link-Local address self-assigner daemon
47 endef
48
49 define Package/howl-autoipd/description
50 Howl is a cross-platform implementation of Zeroconf networking.
51 This package contains an IPv4 Link-Local address self-assigner daemon.
52 endef
53
54 define Package/howl-mdnsresponder
55 $(call Package/howl/Default)
56 DEPENDS:=+libhowl +libpthread
57 TITLE:=An mDNS (Multicast DNS) service responder daemon
58 endef
59
60 define Package/howl-mdnsresponder/description
61 Howl is a cross-platform implementation of Zeroconf networking.
62 This package contains an mDNS (Multicast DNS) service responder daemon.
63 endef
64
65 define Package/howl-mdnsresponder/conffiles
66 /etc/mDNSResponder.conf
67 endef
68
69 define Package/howl-nifd
70 $(call Package/howl/Default)
71 DEPENDS:=+libhowl
72 TITLE:=A network interface monitor daemon
73 endef
74
75 define Package/howl-nifd/description
76 This package contains a network interface monitor daemon.
77 endef
78
79 define Package/howl-utils
80 $(call Package/howl/Default)
81 DEPENDS:=+libhowl
82 TITLE+= (utilities)
83 endef
84
85 define Package/howl-utils/description
86 This package contains mDNS (Multicast DNS) client utilities.
87 endef
88
89 define Build/Configure
90 $(call Build/Configure/Default, \
91 --enable-shared \
92 --enable-static \
93 );
94 endef
95
96 define Build/InstallDev
97 $(INSTALL_DIR) $(1)/usr/include
98 $(CP) $(PKG_INSTALL_DIR)/usr/include/howl $(1)/usr/include/
99 $(INSTALL_DIR) $(1)/usr/lib
100 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.{a,so*} $(1)/usr/lib/
101 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
102 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/howl.pc $(1)/usr/lib/pkgconfig/
103 $(SED) 's,-I/usr/include,-I$$$${includedir},g' $(1)/usr/lib/pkgconfig/howl.pc
104 $(SED) 's,-L/usr/lib/howl,-L$$$${libdir}/howl,g' $(1)/usr/lib/pkgconfig/howl.pc
105 endef
106
107 define Package/libhowl/install
108 $(INSTALL_DIR) $(1)/usr/lib
109 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.so.* $(1)/usr/lib/
110 endef
111
112 define Package/howl-autoipd/install
113 $(INSTALL_DIR) $(1)/usr/sbin
114 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/autoipd $(1)/usr/sbin/
115 $(INSTALL_DIR) $(1)/etc/init.d
116 $(INSTALL_DATA) ./files/autoipd.init $(1)/etc/init.d/autoipd
117 endef
118
119 define Package/howl-mdnsresponder/install
120 $(INSTALL_DIR) $(1)/usr/sbin
121 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mDNSResponder $(1)/usr/sbin/
122 $(INSTALL_DIR) $(1)/etc
123 $(INSTALL_DATA) ./files/mDNSResponder.conf $(1)/etc/mDNSResponder.conf
124 $(INSTALL_DIR) $(1)/etc/init.d
125 $(INSTALL_BIN) ./files/mDNSResponder.init $(1)/etc/init.d/mDNSResponder
126 endef
127
128 define Package/howl-nifd/install
129 $(INSTALL_DIR) $(1)/usr/sbin
130 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nifd $(1)/usr/sbin/
131 $(INSTALL_DIR) $(1)/etc/init.d
132 $(INSTALL_DATA) ./files/nifd.init $(1)/etc/init.d/nifd
133 endef
134
135 define Package/howl-utils/install
136 $(INSTALL_DIR) $(1)/usr/bin
137 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mDNS{Browse,Publish,Query,Resolve} $(1)/usr/bin/
138 endef
139
140 $(eval $(call BuildPackage,libhowl))
141 $(eval $(call BuildPackage,howl-autoipd))
142 $(eval $(call BuildPackage,howl-mdnsresponder))
143 $(eval $(call BuildPackage,howl-nifd))
144 $(eval $(call BuildPackage,howl-utils))