source: branches/packages_10.03.2/libs/howl/Makefile @ 30183

Last change on this file since 30183 was 30183, checked in by jow, 4 years ago

[packages_10.03.2] howl: merge r28904

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 4.1 KB
Line 
1#
2# Copyright (C) 2006-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=howl
11PKG_VERSION:=1.0.0
12PKG_RELEASE:=4
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.porchdogsoft.com/download/
16PKG_MD5SUM:=c389d3ffba0e69a179de2ec650f1fdcc
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22TARGET_CFLAGS += $(FPIC)
23
24define Package/howl/Default
25  SECTION:=net
26  CATEGORY:=Network
27  TITLE:=Zeroconf networking implementation
28  URL:=http://www.porchdogsoft.com/products/howl/
29endef
30
31define Package/libhowl
32  $(call Package/howl/Default)
33  SECTION:=libs
34  CATEGORY:=Libraries
35  TITLE+= (library)
36endef
37
38define 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.
41endef
42
43define 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
48endef
49
50define 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.
53endef
54
55define 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
60endef
61
62define 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.
65endef
66
67define Package/howl-mdnsresponder/conffiles
68/etc/mDNSResponder.conf
69endef
70
71define Package/howl-nifd
72  $(call Package/howl/Default)
73  SUBMENU:=IP Addresses and Names
74  DEPENDS:=+libhowl
75  TITLE:=A network interface monitor daemon
76endef
77
78define Package/howl-nifd/description
79        This package contains a network interface monitor daemon.
80endef
81
82define Package/howl-utils
83  $(call Package/howl/Default)
84  SUBMENU:=IP Addresses and Names
85  DEPENDS:=+libhowl
86  TITLE+= (utilities)
87endef
88
89define Package/howl-utils/description
90        This package contains mDNS (Multicast DNS) client utilities.
91endef
92
93define Build/Configure
94        $(call Build/Configure/Default, \
95                --enable-shared \
96                --enable-static \
97        );
98endef
99
100define 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
109endef
110
111define Package/libhowl/install
112        $(INSTALL_DIR) $(1)/usr/lib
113        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{howl,mDNSResponder}.so.* $(1)/usr/lib/
114endef
115
116define 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
121endef
122
123define 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
130endef
131
132define 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
137endef
138
139define 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/
142endef
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))
Note: See TracBrowser for help on using the repository browser.