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
:=b26905c6fa0704e57944da33339f9216
21 include $(INCLUDE_DIR
)/package.mk
23 # set to 1 to enable debugging
29 TITLE
:=C library for the Unified Configuration Interface
(UCI
)
36 TITLE
:=Utility for the Unified Configuration Interface
(UCI
)
42 DEPENDS
:=@
!PACKAGE_uci
43 TITLE
:=Old
shell/awk implementation of UCI
46 define Build
/Configure
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 $(TARGET_CONFIGURE_OPTS
) \
52 COPTS
="$(TARGET_CFLAGS)" \
54 VERSION
="$(LIBVERSION)" \
58 define Package
/libuci
/install
59 $(INSTALL_DIR
) $(1)/lib
60 $(CP
) $(PKG_BUILD_DIR
)/libuci.so
* $(1)/lib
/
63 define Package
/uci
/install
64 $(INSTALL_DIR
) $(1)/sbin
65 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/uci
$(1)/sbin
/
66 $(CP
) .
/files
/uci
/* $(1)/
69 define Package
/uci-sh
/install
71 $(CP
) .
/files
/uci-sh
/* $(1)/
74 $(eval
$(call BuildPackage
,uci
))
75 $(eval
$(call BuildPackage
,libuci
))
76 $(eval
$(call BuildPackage
,uci-sh
))