2 # Copyright (C) 2008-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:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=cc3e2542aed41c753bffca13f2a0a84e
21 include $(INCLUDE_DIR)/package.mk
27 define Package/$(PKG_NAME)/Default
28 TITLE:=OWFS (1-Wire File System)
29 URL:=http://owfs.sourceforge.net/
35 define Package/$(PKG_NAME)/Default/description
36 OWFS is a suite of programs that designed to make the 1-wire bus and its
37 devices easily accessible. The underlying priciple is to create a virtual
38 filesystem, with the unique ID being the directory, and the individual
39 properties of the device are represented as simple files that can be read
42 Details of the individual slave or master design are hidden behind a
43 consistent interface. The goal is to provide an easy set of tools for a
44 software designer to create monitoring or control applications. There are
45 some performance enhancements in the implementation, including data caching,
46 parallel access to bus masters, and aggregation of device communication.
47 Still the fundemental goal has been ease of use, flexibility and correctness
51 define Package/owfs/Server
52 $(call Package/owfs/Default)
53 DEPENDS:=+libow +libpthread
56 define Package/owfs/Library
57 $(call Package/owfs/Default)
62 define Package/owfs/Utility
63 $(call Package/owfs/Default)
74 $(call Package/owfs/Library)
75 DEPENDS:=+libusb-compat +libpthread
76 TITLE:=OWFS - common shared library
79 define Package/libow/description
80 $(call Package/$(PKG_NAME)/Default/description)
82 This package contains the OWFS library.
85 define Package/libow-capi
86 $(call Package/owfs/Library)
88 TITLE:=OWFS - C-API library
91 define Package/libow-capi/description
92 $(call Package/$(PKG_NAME)/Default/description)
94 This package contains the OWFS C-API library.
101 define Package/owshell
102 $(call Package/owfs/Utility)
103 TITLE:=OWFS - shell utilities
104 DEPENDS+= +USE_UCLIBC:librpc
107 define Package/owshell/description
108 $(call Package/$(PKG_NAME)/Default/description)
110 This package contains the OWFS shell utilities.
114 $(call Package/owfs/Utility)
115 # libfuse depends on kmod-fuse, no need to declare dependency
116 DEPENDS+= +libfuse +fuse-utils
117 TITLE:=OWFS - fuse file system
120 define Package/owfs/description
121 $(call Package/$(PKG_NAME)/Default/description)
123 This package contains the OWFS fuse filesystem.
130 define Package/owhttpd
131 $(call Package/owfs/Server)
132 TITLE:=OWFS - http server
135 define Package/owhttpd/description
136 $(call Package/$(PKG_NAME)/Default/description)
138 This package contains the OWFS http server.
141 define Package/owftpd
142 $(call Package/owfs/Server)
143 TITLE:=OWFS - ftp server
146 define Package/owftpd/description
147 $(call Package/$(PKG_NAME)/Default/description)
149 This package contains the OWFS ftp server.
152 define Package/owserver
153 $(call Package/owfs/Server)
154 TITLE:=OWFS - network server
157 define Package/owserver/description
158 $(call Package/$(PKG_NAME)/Default/description)
160 This package contains the OWFS network server.
168 --with-fuseinclude="$(STAGING_DIR)/usr/include" \
169 --with-fuselib="$(STAGING_DIR)/usr/lib" \
180 LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -Wl,-rpath-link=$(TOOLCHAIN_DIR)/usr/lib" \
181 lt_cv_sys_lib_dlsearch_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
182 lt_cv_sys_lib_search_path_spec="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
187 HOST_CPU="$(PKGARCH)"
189 define Build/InstallDev
190 $(INSTALL_DIR) $(STAGING_DIR)/usr/include
191 $(CP) $(PKG_INSTALL_DIR)/usr/include/ow{capi,fs_config}.h $(STAGING_DIR)/usr/include/
192 $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
193 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libow{,capi}*.so* $(STAGING_DIR)/usr/lib/
196 define Package/owfs/install
197 $(INSTALL_DIR) $(1)/usr/bin
198 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owfs $(1)/usr/bin/
201 define Package/owshell/install
202 $(INSTALL_DIR) $(1)/usr/bin
203 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owget $(1)/usr/bin/
204 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owread $(1)/usr/bin/
205 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owwrite $(1)/usr/bin/
206 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owdir $(1)/usr/bin/
207 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owpresent $(1)/usr/bin/
211 define Package/owserver/install
212 $(INSTALL_DIR) $(1)/usr/bin
213 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owserver $(1)/usr/bin/
216 define Package/owhttpd/install
217 $(INSTALL_DIR) $(1)/usr/bin
218 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owhttpd $(1)/usr/bin/
221 define Package/owftpd/install
222 $(INSTALL_DIR) $(1)/usr/bin
223 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owftpd $(1)/usr/bin/
227 define Package/libow/install
228 $(INSTALL_DIR) $(1)/usr/lib
229 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libow-*.so.* $(1)/usr/lib/
232 define Package/libow-capi/install
233 $(INSTALL_DIR) $(1)/usr/lib
234 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libowcapi-*.so.* $(1)/usr/lib/
238 $(eval $(call BuildPackage,owfs))
239 $(eval $(call BuildPackage,owshell))
241 $(eval $(call BuildPackage,owserver))
242 $(eval $(call BuildPackage,owhttpd))
243 $(eval $(call BuildPackage,owftpd))
245 $(eval $(call BuildPackage,libow))
246 $(eval $(call BuildPackage,libow-capi))