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:=f6340dce09f5f1552c4e03be98e64265
19 include $(INCLUDE_DIR)/package.mk
21 # set to 1 to enable debugging
28 TITLE:=C library for the Unified Configuration Interface (UCI)
35 TITLE:=Utility for the Unified Configuration Interface (UCI)
41 DEPENDS:=@!PACKAGE_uci
42 TITLE:=Old shell/awk implementation of UCI
45 define Build/Configure
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 $(TARGET_CONFIGURE_OPTS) \
51 COPTS="$(TARGET_CFLAGS)" \
53 VERSION="$(PKG_VERSION)" \
57 define Package/libuci/install
58 $(INSTALL_DIR) $(1)/lib
59 $(CP) $(PKG_BUILD_DIR)/libuci.so* $(1)/lib/
62 define Package/uci/install
63 $(INSTALL_DIR) $(1)/sbin
64 $(INSTALL_BIN) $(PKG_BUILD_DIR)/uci $(1)/sbin/
65 $(CP) ./files/uci/* $(1)/
68 define Package/uci-sh/install
70 $(CP) ./files/uci-sh/* $(1)/
73 $(eval $(call BuildPackage,uci))
74 $(eval $(call BuildPackage,libuci))
75 $(eval $(call BuildPackage,uci-sh))