[packages] transmission: update to 2.61
[openwrt/svn-archive/archive.git] / net / transmission / Makefile
1 #
2 # Copyright (C) 2009-2012 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:=transmission
11 PKG_VERSION:=2.61
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files
16 PKG_MD5SUM:=a7849550d82d8a51ddaacd35edc8afe0
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/transmission/template
25 SUBMENU:=BitTorrent
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=A free, lightweight BitTorrent client
29 URL:=http://www.transmissionbt.com
30 MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
31 endef
32
33 define Package/transmission-daemon
34 $(call Package/transmission/template)
35 DEPENDS:=+libcurl +libopenssl +libpthread +libevent2 +librt +libminiupnpc
36 MENU:=1
37 endef
38
39 define Package/transmission-cli
40 $(call Package/transmission/template)
41 DEPENDS:=transmission-daemon
42 endef
43
44 define Package/transmission-remote
45 $(call Package/transmission/template)
46 DEPENDS:=+libcurl +libopenssl +libpthread +libevent2 +librt +libminiupnpc
47 endef
48
49 define Package/transmission-web
50 $(call Package/transmission/template)
51 DEPENDS:=transmission-daemon
52 endef
53
54
55 define Package/transmission-daemon/description
56 Transmission is a simple BitTorrent client.
57 It features a very simple, intuitive interface
58 on top on an efficient, cross-platform back-end.
59 This package contains the daemon itself.
60 endef
61
62 define Package/transmission-cli/description
63 CLI utilities for transmission.
64 endef
65
66 define Package/transmission-remote/description
67 CLI remote interface for transmission.
68 endef
69
70 define Package/transmission-web/description
71 Webinterface resources for transmission.
72 endef
73
74 define Package/transmission-daemon/conffiles
75 /etc/config/transmission
76 endef
77
78 CONFIGURE_VARS += \
79 LIBEVENT_LIBS="$(STAGING_DIR)/usr/lib/libevent-2.0.so.5"
80
81 CONFIGURE_ARGS += \
82 --enable-daemon \
83 --enable-cli \
84 --disable-gtk \
85 --enable-largefile \
86 --enable-lightweight
87
88 MAKE_FLAGS += \
89 CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
90
91 define Package/transmission-daemon/install
92 $(INSTALL_DIR) $(1)/usr/bin
93 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/
94 $(INSTALL_DIR) $(1)/etc/init.d/
95 $(INSTALL_BIN) files/transmission.init $(1)/etc/init.d/transmission
96 $(INSTALL_DIR) $(1)/etc/config
97 $(INSTALL_CONF) files/transmission.config $(1)/etc/config/transmission
98 endef
99
100 define Package/transmission-cli/install
101 $(INSTALL_DIR) $(1)/usr/bin
102 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-cli \
103 $(PKG_INSTALL_DIR)/usr/bin/transmission-create \
104 $(PKG_INSTALL_DIR)/usr/bin/transmission-edit \
105 $(PKG_INSTALL_DIR)/usr/bin/transmission-show \
106 $(1)/usr/bin/
107 endef
108
109 define Package/transmission-remote/install
110 $(INSTALL_DIR) $(1)/usr/bin
111 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
112 endef
113
114 define Package/transmission-web/install
115 $(INSTALL_DIR) $(1)/usr/share/transmission
116 $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
117 endef
118
119 $(eval $(call BuildPackage,transmission-daemon))
120 $(eval $(call BuildPackage,transmission-cli))
121 $(eval $(call BuildPackage,transmission-remote))
122 $(eval $(call BuildPackage,transmission-web))