2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_VERSION
:=$(UCI_VERSION
)$(if
$(UCI_RELEASE
),.
$(UCI_RELEASE
))
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
20 PKG_MD5SUM
:=ef8e4f1d80d7c55079e9781a6d4a3f0d
23 include $(INCLUDE_DIR
)/package.mk
25 # set to 1 to enable debugging
31 TITLE
:=C library for the Unified Configuration Interface
(UCI
)
38 TITLE
:=Utility for the Unified Configuration Interface
(UCI
)
44 DEPENDS
:=@
!PACKAGE_uci
45 TITLE
:=Old
shell/awk implementation of UCI
48 define Build
/Configure
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 $(TARGET_CONFIGURE_OPTS
) \
54 COPTS
="$(TARGET_CFLAGS)" \
56 VERSION
="$(UCI_VERSION)" \
60 define Package
/libuci
/install
61 $(INSTALL_DIR
) $(1)/lib
62 $(CP
) $(PKG_BUILD_DIR
)/libuci.so
* $(1)/lib
/
65 define Package
/uci
/install
66 $(INSTALL_DIR
) $(1)/sbin
67 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/uci
$(1)/sbin
/
68 $(CP
) .
/files
/uci
/* $(1)/
71 define Package
/uci-sh
/install
73 $(CP
) .
/files
/uci-sh
/* $(1)/
76 $(eval
$(call BuildPackage
,uci
))
77 $(eval
$(call BuildPackage
,libuci
))
78 $(eval
$(call BuildPackage
,uci-sh
))