update uci to 0.1.1 - accepts options without value or with an empty value as valid
[openwrt.git] / package / uci / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=uci
12 PKG_VERSION:=0.1.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
17 PKG_MD5SUM:=b26905c6fa0704e57944da33339f9216
18
19 LIBVERSION=0.1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 # set to 1 to enable debugging
24 DEBUG=
25
26 define Package/libuci
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=C library for the Unified Configuration Interface (UCI)
30 endef
31
32 define Package/uci
33 SECTION:=base
34 CATEGORY:=Base system
35 DEPENDS:=+libuci
36 TITLE:=Utility for the Unified Configuration Interface (UCI)
37 endef
38
39 define Package/uci-sh
40 SECTION:=base
41 CATEGORY:=Base system
42 DEPENDS:=@!PACKAGE_uci
43 TITLE:=Old shell/awk implementation of UCI
44 endef
45
46 define Build/Configure
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 $(TARGET_CONFIGURE_OPTS) \
52 COPTS="$(TARGET_CFLAGS)" \
53 DEBUG="$(DEBUG)" \
54 VERSION="$(LIBVERSION)" \
55 OS="Linux"
56 endef
57
58 define Package/libuci/install
59 $(INSTALL_DIR) $(1)/lib
60 $(CP) $(PKG_BUILD_DIR)/libuci.so* $(1)/lib/
61 endef
62
63 define Package/uci/install
64 $(INSTALL_DIR) $(1)/sbin
65 $(INSTALL_BIN) $(PKG_BUILD_DIR)/uci $(1)/sbin/
66 $(CP) ./files/uci/* $(1)/
67 endef
68
69 define Package/uci-sh/install
70 $(INSTALL_DIR) $(1)
71 $(CP) ./files/uci-sh/* $(1)/
72 endef
73
74 $(eval $(call BuildPackage,uci))
75 $(eval $(call BuildPackage,libuci))
76 $(eval $(call BuildPackage,uci-sh))
This page took 0.041339 seconds and 5 git commands to generate.