Changeset 40537


Ignore:
Timestamp:
2014-04-20T12:33:08+02:00 (4 years ago)
Author:
tripolar
Message:

[packages] rtorrent: update to git head and add 2 distinct rtorrent versions:

rtorrent-rpc - rtorrent with rpc support
rtorrent - rtorrent without rpc support

Signed-off-by: Peter Wagner <tripolar@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/rtorrent/Makefile

    r40145 r40537  
    1010PKG_NAME:=rtorrent 
    1111PKG_VERSION:=0.9.3-git 
    12  
    1312PKG_RELEASE:=$(PKG_SOURCE_VERSION)-1 
    1413 
     
    1615PKG_SOURCE_URL:=https://github.com/rakshasa/rtorrent.git 
    1716PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 
    18 PKG_SOURCE_VERSION:=7689059dbc1ee05f855eb28883cbe59d162d4431 
     17PKG_SOURCE_VERSION:=82a68420f4d90098e00cc92f082f10a8079e9800 
    1918PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz 
    2019 
     
    2322PKG_INSTALL:=1 
    2423 
     24PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) 
     25 
    2526include $(INCLUDE_DIR)/package.mk 
    2627 
    27 define Package/rtorrent 
     28define Package/rtorrent/Default 
    2829  SUBMENU:=BitTorrent 
    2930  SECTION:=net 
     
    3132  TITLE:=BitTorrent client for ncurses 
    3233  URL:=http://libtorrent.rakshasa.no/ 
    33   DEPENDS:=+libcurl +libtorrent +libncursesw +libsigcxx +xmlrpc-c-server +libpthread 
     34  DEPENDS:=+libcurl +libtorrent +libncursesw +libsigcxx +libpthread 
    3435endef 
    3536 
    36 define Package/rtorrent/description 
     37define Package/rtorrent/Default/description 
    3738 rTorrent is a BitTorrent client for ncurses, using the libtorrent library. 
    3839 The client and library is written in C++ with emphasis on speed and 
    3940 efficiency, while delivering equivalent features to those found in GUI based 
    4041 clients in an ncurses client. 
     42endef 
     43 
     44define Package/rtorrent 
     45$(call Package/rtorrent/Default) 
     46  VARIANT:=norpc 
     47endef 
     48 
     49define Package/rtorrent/description 
     50$(call Package/rtorrent/Default/description) 
     51 This package is built without xmlrpc support 
     52endef 
     53 
     54define Package/rtorrent-rpc 
     55$(call Package/rtorrent/Default) 
     56  VARIANT:=rpc 
     57  DEPENDS+=+xmlrpc-c-server 
     58  TITLE+=(with rpc support) 
     59endef 
     60 
     61define Package/rtorrent-rpc/description 
     62$(call Package/rtorrent/Default/description) 
     63 This package is built with xmlrpc support 
    4164endef 
    4265 
     
    4669        --enable-shared \ 
    4770        --disable-static \ 
    48         --disable-debug \ 
    49         --with-xmlrpc-c 
     71        --disable-debug 
     72 
     73ifeq ($(BUILD_VARIANT),rpc) 
     74        CONFIGURE_ARGS += \ 
     75                --with-xmlrpc-c 
     76endif 
     77 
    5078 
    5179define Build/Configure 
     
    5987endef 
    6088 
     89Package/rtorrent-rpc/install = $(Package/rtorrent/install) 
     90 
    6191$(eval $(call BuildPackage,rtorrent)) 
     92$(eval $(call BuildPackage,rtorrent-rpc)) 
Note: See TracChangeset for help on using the changeset viewer.