update uci - fixes a bug in parse_uci_tuple
[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 UCI_VERSION=0.2
12 UCI_RELEASE=4
13
14 PKG_NAME:=uci
15 PKG_VERSION:=$(UCI_VERSION)$(if $(UCI_RELEASE),.$(UCI_RELEASE))
16 PKG_RELEASE:=1
17
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
20 PKG_MD5SUM:=fb18e6b1b8bcafbec099a1783e4764ac
21
22
23 include $(INCLUDE_DIR)/package.mk
24
25 # set to 1 to enable debugging
26 DEBUG=
27
28 define Package/libuci
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=C library for the Unified Configuration Interface (UCI)
32 endef
33
34 define Package/uci
35 SECTION:=base
36 CATEGORY:=Base system
37 DEPENDS:=+libuci
38 TITLE:=Utility for the Unified Configuration Interface (UCI)
39 endef
40
41 define Package/uci-sh
42 SECTION:=base
43 CATEGORY:=Base system
44 DEPENDS:=@!PACKAGE_uci
45 TITLE:=Old shell/awk implementation of UCI
46 endef
47
48 define Build/Configure
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 $(TARGET_CONFIGURE_OPTS) \
54 COPTS="$(TARGET_CFLAGS)" \
55 DEBUG="$(DEBUG)" \
56 VERSION="$(UCI_VERSION)" \
57 OS="Linux"
58 endef
59
60 define Package/libuci/install
61 $(INSTALL_DIR) $(1)/lib
62 $(CP) $(PKG_BUILD_DIR)/libuci.so* $(1)/lib/
63 endef
64
65 define Package/uci/install
66 $(INSTALL_DIR) $(1)/sbin
67 $(INSTALL_BIN) $(PKG_BUILD_DIR)/uci $(1)/sbin/
68 $(CP) ./files/uci/* $(1)/
69 endef
70
71 define Package/uci-sh/install
72 $(INSTALL_DIR) $(1)
73 $(CP) ./files/uci-sh/* $(1)/
74 endef
75
76 $(eval $(call BuildPackage,uci))
77 $(eval $(call BuildPackage,libuci))
78 $(eval $(call BuildPackage,uci-sh))
This page took 0.043864 seconds and 5 git commands to generate.