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
:=1ce8e92e3aa023763e8f4da91a70563d
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)/etc
/uci-defaults
82 $(INSTALL_DIR
) $(1)/sbin
83 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/uci
$(1)/sbin
/
84 $(CP
) .
/files
/uci
/* $(1)/
87 define Package
/uci-sh
/install
89 $(CP
) .
/files
/uci-sh
/* $(1)/
92 define Build
/InstallDev
93 $(INSTALL_DIR
) $(1)/usr
/include
94 $(CP
) $(PKG_BUILD_DIR
)/uci
{,_config
}.h
$(1)/usr
/include
95 $(INSTALL_DIR
) $(1)/usr
/lib
96 $(CP
) $(PKG_BUILD_DIR
)/libuci.so
* $(1)/usr
/lib
99 $(eval
$(call BuildPackage
,uci
))
100 $(eval
$(call BuildPackage
,libuci
))
101 $(eval
$(call BuildPackage
,libuci-lua
))
102 $(eval
$(call BuildPackage
,uci-sh
))