2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.porchdogsoft.com/download/
16 PKG_MD5SUM:=c389d3ffba0e69a179de2ec650f1fdcc
20 include $(INCLUDE_DIR)/package.mk
22 TARGET_CFLAGS += $(FPIC)
24 define Package/howl/Default
27 TITLE:=Zeroconf networking implementation
28 URL:=http://www.porchdogsoft.com/products/howl/
31 define Package/libhowl
32 $(call Package/howl/Default)
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.
43 define Package/howl-autoipd
44 $(call Package/howl/Default)
45 SUBMENU:=IP Addresses and Names
46 DEPENDS:=+libhowl +libpthread
47 TITLE:=An IPv4 Link-Local address self-assigner daemon
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.
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
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.
67 define Package/howl-mdnsresponder/conffiles
68 /etc/mDNSResponder.conf
71 define Package/howl-nifd
72 $(call Package/howl/Default)
73 SUBMENU:=IP Addresses and Names
74 DEPENDS:=+libhowl +libpthread
75 TITLE:=A network interface monitor daemon
78 define Package/howl-nifd/description
79 This package contains a network interface monitor daemon.
82 define Package/howl-utils
83 $(call Package/howl/Default)
84 SUBMENU:=IP Addresses and Names
85 DEPENDS:=+libhowl +libpthread
89 define Package/howl-utils/description
90 This package contains mDNS (Multicast DNS) client utilities.
93 define Build/Configure
94 $(call Build/Configure/Default, \
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
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/
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_BIN) ./files/autoipd.init $(1)/etc/init.d/autoipd
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
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_BIN) ./files/nifd.init $(1)/etc/init.d/nifd
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/
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))