Ignore:
Timestamp:
2011-03-26T22:00:20+01:00 (5 years ago)
Author:
nbd
Message:

uci: update to latest version, uses cmake now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/uci/Makefile

    r25144 r26307  
    88include $(TOPDIR)/rules.mk 
    99 
    10 UCI_VERSION=2011-01-19 
     10UCI_VERSION=2011-03-26 
    1111UCI_RELEASE=1 
    1212 
     
    1414PKG_VERSION:=$(UCI_VERSION)$(if $(UCI_RELEASE),.$(UCI_RELEASE)) 
    1515PKG_RELEASE:=1 
    16 PKG_REV:=a5eb996e0f04d911ff61479508bbc3e17b16ff0c 
     16PKG_REV:=0e8c97eef4aa154543c539b13b5e16859cec8a25 
    1717 
    1818PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    2121PKG_SOURCE_VERSION:=$(PKG_REV) 
    2222PKG_SOURCE_PROTO:=git 
     23PKG_MIRROR_MD5SUM:=d5329ee38167608bfe2d6f758d9250d0 
    2324 
    2425include $(INCLUDE_DIR)/package.mk 
     26include $(INCLUDE_DIR)/cmake.mk 
    2527 
    2628# set to 1 to enable debugging 
     
    5456endef 
    5557 
    56 define Build/Configure 
    57 endef 
     58TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include 
     59TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib 
    5860 
    59 UCI_MAKEOPTS = \ 
    60                 $(TARGET_CONFIGURE_OPTS) \ 
    61                 COPTS="$(TARGET_CFLAGS)" \ 
    62                 DEBUG="$(DEBUG)" \ 
    63                 VERSION="$(UCI_VERSION)" \ 
    64                 CPPFLAGS="-I$(PKG_BUILD_DIR) $(TARGET_CPPFLAGS)" \ 
    65                 FPIC="$(FPIC)" \ 
    66                 OS="Linux" 
    67  
    68 define Build/Compile 
    69         $(MAKE) -C $(PKG_BUILD_DIR) $(UCI_MAKEOPTS) 
    70         $(MAKE) -C $(PKG_BUILD_DIR)/lua $(UCI_MAKEOPTS) 
    71         $(MAKE) -C $(PKG_BUILD_DIR)/trigger $(UCI_MAKEOPTS) \ 
    72                 LIBS="$(TARGET_LDFLAGS) -L$(PKG_BUILD_DIR) -luci -llua -lcrypt -lm" 
    73 endef 
     61CMAKE_OPTIONS = \ 
     62        -DLUAPATH=/usr/lib/lua \ 
     63        $(if $(DEBUG),-DUCI_DEBUG=ON) 
    7464 
    7565define Package/libuci/install 
Note: See TracChangeset for help on using the changeset viewer.