2008-05-26 20:54:21 +00:00
|
|
|
#
|
2009-03-03 15:35:36 +00:00
|
|
|
# Copyright (C) 2009 OpenWrt.org
|
2008-05-26 20:54:21 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=transmission
|
2009-03-03 15:35:36 +00:00
|
|
|
PKG_VERSION:=1.51
|
2008-07-05 13:14:54 +00:00
|
|
|
PKG_RELEASE:=1
|
2008-05-26 20:54:21 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://download.m0k.org/transmission/files
|
2009-03-03 15:35:36 +00:00
|
|
|
PKG_MD5SUM:=b93439fbd0040ad6eb448f70a48355f5
|
2008-05-26 20:54:21 +00:00
|
|
|
|
|
|
|
PKG_FIXUP = libtool
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission/template
|
2008-05-26 20:54:21 +00:00
|
|
|
SUBMENU:=BitTorrent
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=A free, lightweight BitTorrent client
|
|
|
|
URL:=http://www.transmissionbt.com
|
|
|
|
endef
|
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission-daemon
|
|
|
|
$(call Package/transmission/template)
|
|
|
|
DEPENDS:=+libcurl +libopenssl +libpthread
|
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/transmission-cli
|
|
|
|
$(call Package/transmission/template)
|
|
|
|
DEPENDS:=transmission-daemon
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/transmission-web
|
|
|
|
$(call Package/transmission/template)
|
|
|
|
DEPENDS:=transmission-daemon
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/transmission-daemon/description
|
2008-05-26 20:54:21 +00:00
|
|
|
Transmission is a simple BitTorrent client.
|
|
|
|
It features a very simple, intuitive interface
|
|
|
|
on top on an efficient, cross-platform back-end.
|
2009-03-03 15:35:36 +00:00
|
|
|
This package contains the daemon itself.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/transmission-cli/description
|
|
|
|
CLI utilities for transmission.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/transmission-web/description
|
|
|
|
Webinterface resources for transmission.
|
2008-05-26 20:54:21 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-daemon \
|
|
|
|
--disable-gtk \
|
2008-08-06 18:56:45 +00:00
|
|
|
--disable-wx \
|
|
|
|
--with-wx-config="$(STAGING_DIR)/usr/bin/" \
|
2008-05-26 20:54:21 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)"
|
|
|
|
endef
|
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission-daemon/install
|
2008-05-26 20:54:21 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/transmission-daemon $(1)/usr/sbin/
|
2009-03-03 15:35:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/transmission-cli/install
|
2008-05-26 20:54:21 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cli/transmissioncli $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/transmission-remote $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2009-03-03 15:35:36 +00:00
|
|
|
define Package/transmission-web/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/transmission
|
|
|
|
rm -rf `find $(PKG_BUILD_DIR)/web -type d -name .svn`
|
|
|
|
cp -rf $(PKG_BUILD_DIR)/web $(1)/usr/share/transmission
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,transmission-daemon))
|
|
|
|
$(eval $(call BuildPackage,transmission-cli))
|
|
|
|
$(eval $(call BuildPackage,transmission-web))
|