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_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
17 PKG_MD5SUM
:=f6340dce09f5f1552c4e03be98e64265
19 include $(INCLUDE_DIR
)/package.mk
21 # set to 1 to enable debugging
27 TITLE
:=C library for the Unified Configuration Interface
(UCI
)
34 TITLE
:=Utility for the Unified Configuration Interface
(UCI
)
40 DEPENDS
:=@
!PACKAGE_uci
41 TITLE
:=Old
shell/awk implementation of UCI
44 define Build
/Configure
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
49 $(TARGET_CONFIGURE_OPTS
) \
50 COPTS
="$(TARGET_CFLAGS)" \
52 VERSION
="$(PKG_VERSION)" \
56 define Package
/libuci
/install
57 $(INSTALL_DIR
) $(1)/lib
58 $(CP
) $(PKG_BUILD_DIR
)/libuci.so
* $(1)/lib
/
61 define Package
/uci
/install
62 $(INSTALL_DIR
) $(1)/sbin
63 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/uci
$(1)/sbin
/
64 $(CP
) .
/files
/uci
/* $(1)/
67 define Package
/uci-sh
/install
69 $(CP
) .
/files
/uci-sh
/* $(1)/
72 $(eval
$(call BuildPackage
,uci
))
73 $(eval
$(call BuildPackage
,libuci
))
74 $(eval
$(call BuildPackage
,uci-sh
))