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
:=ed870a7e7765e93e3bbfa98b4eb5b803
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 define Build
/InstallDev
77 $(INSTALL_DIR
) $(1)/usr
/include
78 $(CP
) $(PKG_BUILD_DIR
)/uci
{,_config
}.h
$(1)/usr
/include
79 $(INSTALL_DIR
) $(1)/usr
/lib
80 $(CP
) $(PKG_BUILD_DIR
)/libuci.so
* $(1)/usr
/lib
83 $(eval
$(call BuildPackage
,uci
))
84 $(eval
$(call BuildPackage
,libuci
))
85 $(eval
$(call BuildPackage
,uci-sh
))