Changeset 30896


Ignore:
Timestamp:
2012-03-12T02:31:46+01:00 (4 years ago)
Author:
swalker
Message:

[packages] less: update to 444, add wide variant (#8787), use PKG_INSTALL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/less/Makefile

    r30720 r30896  
    99 
    1010PKG_NAME:=less 
    11 PKG_VERSION:=436 
    12 PKG_RELEASE:=2 
     11PKG_VERSION:=444 
     12PKG_RELEASE:=1 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1515PKG_SOURCE_URL:=http://www.greenwoodsoftware.com/less 
    16 PKG_MD5SUM:=817bf051953ad2dea825a1cdf460caa4 
     16PKG_MD5SUM:=56f9f76ffe13f70155f47f6b3c87d421 
     17 
     18PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) 
     19PKG_INSTALL:=1 
    1720 
    1821include $(INCLUDE_DIR)/package.mk 
    1922 
    20 define Package/less 
     23define Package/less/Default 
    2124  SECTION:=utils 
    2225  CATEGORY:=Utilities 
    2326  TITLE:=Pager program similar to more 
    24   DEPENDS:= +libncurses 
    2527  URL:=http://www.greenwoodsoftware.com/less/ 
    2628endef 
    2729 
    28 define Package/less/description 
     30define Package/less/Default/description 
    2931  Full version of GNU less utility 
    3032endef 
    3133 
     34define Package/less 
     35  $(call Package/less/Default) 
     36  DEPENDS:=+libncurses 
     37  VARIANT:=narrow 
     38endef 
     39 
     40define Package/less/description 
     41  $(call Package/less/Default/description) 
     42endef 
     43 
     44define Package/less-wide 
     45  $(call Package/less/Default) 
     46  TITLE+= (Unicode) 
     47  DEPENDS:=+libncursesw 
     48  VARIANT:=wide 
     49endef 
     50 
     51define Package/less-wide/description 
     52  $(call Package/less/Default/description) 
     53  This package contains the Unicode enabled version of less. 
     54endef 
     55 
     56ifeq ($(BUILD_VARIANT),narrow) 
     57        CONFIGURE_VARS += \ 
     58                ac_cv_lib_ncursesw_initscr=no            
     59endif 
     60 
     61ifeq ($(BUILD_VARIANT),wide) 
     62        CONFIGURE_VARS += \ 
     63                ac_cv_lib_ncursesw_initscr=yes 
     64endif 
     65 
    3266define Package/less/install 
    3367        $(INSTALL_DIR) $(1)/bin 
    34         $(CP) $(PKG_BUILD_DIR)/less $(1)/bin/less 
     68        $(CP) $(PKG_INSTALL_DIR)/usr/bin/less $(1)/bin/less 
    3569endef 
    3670 
     
    4781endef 
    4882 
     83Package/less-wide/install = $(Package/less/install) 
     84Package/less-wide/postinst = $(Package/less/postinst) 
     85Package/less-wide/postrm = $(Package/less/postrm) 
     86 
    4987$(eval $(call BuildPackage,less)) 
     88$(eval $(call BuildPackage,less-wide)) 
Note: See TracChangeset for help on using the changeset viewer.