source: trunk/package/uci/Makefile @ 10400

Last change on this file since 10400 was 10400, checked in by nbd, 9 years ago

update uci - fixes a bug in parse_uci_tuple

File size: 1.6 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11UCI_VERSION=0.2
12UCI_RELEASE=4
13
14PKG_NAME:=uci
15PKG_VERSION:=$(UCI_VERSION)$(if $(UCI_RELEASE),.$(UCI_RELEASE))
16PKG_RELEASE:=1
17
18PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
20PKG_MD5SUM:=fb18e6b1b8bcafbec099a1783e4764ac
21
22
23include $(INCLUDE_DIR)/package.mk
24
25# set to 1 to enable debugging
26DEBUG=
27
28define Package/libuci
29  SECTION:=libs
30  CATEGORY:=Libraries
31  TITLE:=C library for the Unified Configuration Interface (UCI)
32endef
33
34define Package/uci
35  SECTION:=base
36  CATEGORY:=Base system
37  DEPENDS:=+libuci
38  TITLE:=Utility for the Unified Configuration Interface (UCI)
39endef
40
41define Package/uci-sh
42  SECTION:=base
43  CATEGORY:=Base system
44  DEPENDS:=@!PACKAGE_uci
45  TITLE:=Old shell/awk implementation of UCI
46endef
47
48define Build/Configure
49endef
50
51define 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"
58endef
59
60define Package/libuci/install
61        $(INSTALL_DIR) $(1)/lib
62        $(CP) $(PKG_BUILD_DIR)/libuci.so* $(1)/lib/
63endef
64
65define Package/uci/install
66        $(INSTALL_DIR) $(1)/sbin
67        $(INSTALL_BIN) $(PKG_BUILD_DIR)/uci $(1)/sbin/
68        $(CP) ./files/uci/* $(1)/
69endef
70
71define Package/uci-sh/install
72        $(INSTALL_DIR) $(1)
73        $(CP) ./files/uci-sh/* $(1)/
74endef
75
76$(eval $(call BuildPackage,uci))
77$(eval $(call BuildPackage,libuci))
78$(eval $(call BuildPackage,uci-sh))
Note: See TracBrowser for help on using the repository browser.