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
:=381b5da987b206b3ab5d666785fbb833
22 include $(INCLUDE_DIR
)/package.mk
24 # set to 1 to enable debugging
30 TITLE
:=C library for the Unified Configuration Interface
(UCI
)
37 TITLE
:=Utility for the Unified Configuration Interface
(UCI
)
43 DEPENDS
:=@
!PACKAGE_uci
44 TITLE
:=Old
shell/awk implementation of UCI
47 define Package
/libuci-lua
51 TITLE
:=Lua plugin for UCI
54 define Build
/Configure
58 $(TARGET_CONFIGURE_OPTS
) \
59 COPTS
="$(TARGET_CFLAGS)" \
61 VERSION
="$(UCI_VERSION)" \
62 CPPFLAGS
="-I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" \
66 $(MAKE
) -C
$(PKG_BUILD_DIR
) $(UCI_MAKEOPTS
)
67 $(MAKE
) -C
$(PKG_BUILD_DIR
)/lua
$(UCI_MAKEOPTS
)
70 define Package
/libuci
/install
71 $(INSTALL_DIR
) $(1)/lib
72 $(CP
) $(PKG_BUILD_DIR
)/libuci.so
* $(1)/lib
/
75 define Package
/libuci-lua
/install
76 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
77 $(CP
) $(PKG_BUILD_DIR
)/lua
/uci.so
$(1)/usr
/lib
/lua
/
80 define Package
/uci
/install
81 $(INSTALL_DIR
) $(1)/sbin
82 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/uci
$(1)/sbin
/
83 $(CP
) .
/files
/uci
/* $(1)/
86 define Package
/uci-sh
/install
88 $(CP
) .
/files
/uci-sh
/* $(1)/
91 define Build
/InstallDev
92 $(INSTALL_DIR
) $(1)/usr
/include
93 $(CP
) $(PKG_BUILD_DIR
)/uci
{,_config
}.h
$(1)/usr
/include
94 $(INSTALL_DIR
) $(1)/usr
/lib
95 $(CP
) $(PKG_BUILD_DIR
)/libuci.so
* $(1)/usr
/lib
98 $(eval
$(call BuildPackage
,uci
))
99 $(eval
$(call BuildPackage
,libuci
))
100 $(eval
$(call BuildPackage
,libuci-lua
))
101 $(eval
$(call BuildPackage
,uci-sh
))