lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2343B)


      1 #
      2 # Copyright (C) 2007-2015 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=rtorrent
     11 PKG_VERSION:=0.9.6-git-1
     12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
     13 
     14 PKG_SOURCE_PROTO:=git
     15 PKG_SOURCE_URL:=https://github.com/rakshasa/rtorrent.git
     16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
     17 PKG_SOURCE_VERSION:=62cb5a4605c0664bc522e0e0da9c72f09cf643a9
     18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
     19 
     20 PKG_LICENSE:=GPL-2.0
     21 PKG_LICENSE_FILES:=COPYING
     22 
     23 PKG_FIXUP:=autoreconf
     24 PKG_BUILD_PARALLEL:=1
     25 PKG_INSTALL:=1
     26 
     27 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
     28 
     29 include $(INCLUDE_DIR)/package.mk
     30 
     31 define Package/rtorrent/Default
     32   SUBMENU:=BitTorrent
     33   SECTION:=net
     34   CATEGORY:=Network
     35   TITLE:=BitTorrent client for ncurses
     36   URL:=http://libtorrent.rakshasa.no/
     37   DEPENDS:=+libcurl +libtorrent +libncursesw +libsigcxx +libpthread
     38   MAINTAINER:=Peter Wagner <tripolar@gmx.at>
     39 endef
     40 
     41 define Package/rtorrent/Default/description
     42  rTorrent is a BitTorrent client for ncurses, using the libtorrent library.
     43  The client and library is written in C++ with emphasis on speed and
     44  efficiency, while delivering equivalent features to those found in GUI based
     45  clients in an ncurses client.
     46 endef
     47 
     48 define Package/rtorrent
     49 $(call Package/rtorrent/Default)
     50   VARIANT:=norpc
     51 endef
     52 
     53 define Package/rtorrent/description
     54 $(call Package/rtorrent/Default/description)
     55  This package is built without xmlrpc support
     56 endef
     57 
     58 define Package/rtorrent-rpc
     59 $(call Package/rtorrent/Default)
     60   VARIANT:=rpc
     61   DEPENDS+=+xmlrpc-c-server
     62   TITLE+=(with rpc support)
     63 endef
     64 
     65 define Package/rtorrent-rpc/description
     66 $(call Package/rtorrent/Default/description)
     67  This package is built with xmlrpc support
     68 endef
     69 
     70 TARGET_LDFLAGS += -lz -lpthread -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
     71 
     72 CONFIGURE_ARGS+= \
     73 	--enable-shared \
     74 	--disable-static \
     75 	--disable-debug \
     76 	--disable-ipv6
     77 
     78 ifeq ($(BUILD_VARIANT),rpc)
     79 	CONFIGURE_ARGS += \
     80 		--with-xmlrpc-c
     81 endif
     82 
     83 
     84 define Package/rtorrent/install
     85 	$(INSTALL_DIR) $(1)/usr/bin
     86 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtorrent $(1)/usr/bin/
     87 endef
     88 
     89 Package/rtorrent-rpc/install = $(Package/rtorrent/install)
     90 
     91 $(eval $(call BuildPackage,rtorrent))
     92 $(eval $(call BuildPackage,rtorrent-rpc))