2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=transmission
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://download.m0k.org/transmission/files
16 PKG_MD5SUM:=b93439fbd0040ad6eb448f70a48355f5
20 include $(INCLUDE_DIR)/package.mk
22 define Package/transmission/template
26 TITLE:=A free, lightweight BitTorrent client
27 URL:=http://www.transmissionbt.com
30 define Package/transmission-daemon
31 $(call Package/transmission/template)
32 DEPENDS:=+libcurl +libopenssl +libpthread
36 define Package/transmission-cli
37 $(call Package/transmission/template)
38 DEPENDS:=transmission-daemon
41 define Package/transmission-web
42 $(call Package/transmission/template)
43 DEPENDS:=transmission-daemon
46 define Package/transmission-daemon/description
47 Transmission is a simple BitTorrent client.
48 It features a very simple, intuitive interface
49 on top on an efficient, cross-platform back-end.
50 This package contains the daemon itself.
53 define Package/transmission-cli/description
54 CLI utilities for transmission.
57 define Package/transmission-web/description
58 Webinterface resources for transmission.
65 --with-wx-config="$(STAGING_DIR)/usr/bin/" \
68 $(MAKE) -C $(PKG_BUILD_DIR) \
69 $(TARGET_CONFIGURE_OPTS) \
70 CFLAGS="$(TARGET_CFLAGS)"
73 define Package/transmission-daemon/install
74 $(INSTALL_DIR) $(1)/usr/sbin
75 $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/transmission-daemon $(1)/usr/sbin/
78 define Package/transmission-cli/install
79 $(INSTALL_DIR) $(1)/usr/bin
80 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cli/transmissioncli $(1)/usr/bin/
81 $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/transmission-remote $(1)/usr/bin/
84 define Package/transmission-web/install
85 $(INSTALL_DIR) $(1)/usr/share/transmission
86 rm -rf `find $(PKG_BUILD_DIR)/web -type d -name .svn`
87 cp -rf $(PKG_BUILD_DIR)/web $(1)/usr/share/transmission
90 $(eval $(call BuildPackage,transmission-daemon))
91 $(eval $(call BuildPackage,transmission-cli))
92 $(eval $(call BuildPackage,transmission-web))