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.
8 include $(TOPDIR
)/rules.mk
10 UCI_VERSION
=2011-03-26
14 PKG_VERSION
:=$(UCI_VERSION
)$(if
$(UCI_RELEASE
),.
$(UCI_RELEASE
))
16 PKG_REV
:=0e8c97eef4aa154543c539b13b5e16859cec8a25
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_SOURCE_URL
:=git
://nbd.name
/uci.git
20 PKG_SOURCE_SUBDIR
:=uci-
$(PKG_VERSION
)
21 PKG_SOURCE_VERSION
:=$(PKG_REV
)
23 PKG_MIRROR_MD5SUM
:=d5329ee38167608bfe2d6f758d9250d0
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
28 # set to 1 to enable debugging
34 TITLE
:=C library for the Unified Configuration Interface
(UCI
)
41 TITLE
:=Utility for the Unified Configuration Interface
(UCI
)
44 define Package
/libuci-lua
47 DEPENDS
:=+libuci
+liblua
48 TITLE
:=Lua plugin for UCI
51 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
52 TARGET_LDFLAGS
+= -L
$(STAGING_DIR
)/usr
/lib
55 -DLUAPATH
=/usr
/lib
/lua \
56 $(if
$(DEBUG
),-DUCI_DEBUG
=ON
)
58 define Package
/libuci
/install
59 $(INSTALL_DIR
) $(1)/lib
60 $(CP
) $(PKG_BUILD_DIR
)/libuci.so
* $(1)/lib
/
63 define Package
/libuci-lua
/install
64 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
65 $(CP
) $(PKG_BUILD_DIR
)/lua
/uci.so
$(1)/usr
/lib
/lua
/
68 define Package
/uci
/install
69 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
70 $(INSTALL_DIR
) $(1)/sbin
71 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/uci
$(1)/sbin
/
75 define Build
/InstallDev
76 $(INSTALL_DIR
) $(1)/usr
/include
77 $(CP
) $(PKG_BUILD_DIR
)/uci
{,_config
,map
}.h
$(1)/usr
/include
78 $(INSTALL_DIR
) $(1)/usr
/lib
79 $(CP
) $(PKG_BUILD_DIR
)/libuci.so
* $(1)/usr
/lib
80 $(CP
) $(PKG_BUILD_DIR
)/libuci.a
$(1)/usr
/lib
81 $(CP
) $(PKG_BUILD_DIR
)/libucimap.a
$(1)/usr
/lib
84 $(eval
$(call BuildPackage
,uci
))
85 $(eval
$(call BuildPackage
,libuci
))
86 $(eval
$(call BuildPackage
,libuci-lua
))