2 # Copyright (C) 2006-2010 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
)
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
)
56 DEPENDS
:=+libhowl
+libpthread
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
, \
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
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
/
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
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
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
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
/
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
))