2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.porchdogsoft.com
/download
/
17 PKG_MD5SUM
:=c389d3ffba0e69a179de2ec650f1fdcc
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
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
)
46 TITLE
:=An IPv4 Link-Local address self-assigner daemon
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.
54 define Package
/howl-mdnsresponder
55 $(call Package
/howl
/Default
)
57 TITLE
:=An mDNS
(Multicast DNS
) service responder daemon
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.
65 define Package
/howl-mdnsresponder
/conffiles
66 /etc
/mDNSResponder.conf
69 define Package
/howl-nifd
70 $(call Package
/howl
/Default
)
72 TITLE
:=A network interface monitor daemon
75 define Package
/howl-nifd
/description
76 This package contains a network interface monitor daemon.
79 define Package
/howl-utils
80 $(call Package
/howl
/Default
)
85 define Package
/howl-utils
/description
86 This package contains mDNS
(Multicast DNS
) client utilities.
89 define Build
/Configure
90 $(call Build
/Configure
/Default
, \
97 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
98 DESTDIR
="$(PKG_INSTALL_DIR)" \
102 define Build
/InstallDev
103 mkdir
-p
$(1)/usr
/include
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/howl
$(1)/usr
/include/
105 mkdir
-p
$(1)/usr
/lib
106 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{howl
,mDNSResponder
}.
{a
,so
*} $(1)/usr
/lib
/
107 mkdir
-p
$(1)/usr
/lib
/pkgconfig
108 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/howl.
pc $(1)/usr
/lib
/pkgconfig
/
109 $(SED
) 's,-I/usr/include,-I$$$${includedir},g' $(1)/usr
/lib
/pkgconfig
/howl.
pc
110 $(SED
) 's,-L/usr/lib/howl,-L$$$${libdir}/howl,g' $(1)/usr
/lib
/pkgconfig
/howl.
pc
113 define Build
/UninstallDev
114 rm -rf
$(STAGING_DIR
)/usr
/include/howl \
115 $(STAGING_DIR
)/usr
/lib
/lib
{howl
,mDNSResponder
}.
{a
,so
*} \
116 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/howl.
pc
119 define Package
/libhowl
/install
120 $(INSTALL_DIR
) $(1)/usr
/lib
121 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{howl
,mDNSResponder
}.so.
* $(1)/usr
/lib
/
124 define Package
/howl-autoipd
/install
125 $(INSTALL_DIR
) $(1)/usr
/sbin
126 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/autoipd
$(1)/usr
/sbin
/
127 $(INSTALL_DIR
) $(1)/etc
/init.d
128 $(INSTALL_DATA
) .
/files
/autoipd.init
$(1)/etc
/init.d
/autoipd
131 define Package
/howl-mdnsresponder
/install
132 $(INSTALL_DIR
) $(1)/usr
/sbin
133 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mDNSResponder
$(1)/usr
/sbin
/
134 $(INSTALL_DIR
) $(1)/etc
135 $(INSTALL_DATA
) .
/files
/mDNSResponder.conf
$(1)/etc
/mDNSResponder.conf
136 $(INSTALL_DIR
) $(1)/etc
/init.d
137 $(INSTALL_BIN
) .
/files
/mDNSResponder.init
$(1)/etc
/init.d
/mDNSResponder
140 define Package
/howl-nifd
/install
141 $(INSTALL_DIR
) $(1)/usr
/sbin
142 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/nifd
$(1)/usr
/sbin
/
143 $(INSTALL_DIR
) $(1)/etc
/init.d
144 $(INSTALL_DATA
) .
/files
/nifd.init
$(1)/etc
/init.d
/nifd
147 define Package
/howl-utils
/install
148 $(INSTALL_DIR
) $(1)/usr
/bin
149 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mDNS
{Browse
,Publish
,Query
,Resolve
} $(1)/usr
/bin
/
152 $(eval
$(call BuildPackage
,libhowl
))
153 $(eval
$(call BuildPackage
,howl-autoipd
))
154 $(eval
$(call BuildPackage
,howl-mdnsresponder
))
155 $(eval
$(call BuildPackage
,howl-nifd
))
156 $(eval
$(call BuildPackage
,howl-utils
))