[packages] transmission: update to 2.52
[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.52
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:=9490ed97a03f7b8b1ac8b0822c3dce92
17
18 PKG_FIXUP:=libtool
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 endef
47
48 define Package/transmission-web
49 $(call Package/transmission/template)
50 DEPENDS:=transmission-daemon
51 endef
52
53
54 define Package/transmission-daemon/description
55 Transmission is a simple BitTorrent client.
56 It features a very simple, intuitive interface
57 on top on an efficient, cross-platform back-end.
58 This package contains the daemon itself.
59 endef
60
61 define Package/transmission-cli/description
62 CLI utilities for transmission.
63 endef
64
65 define Package/transmission-remote/description
66 CLI remote interface for transmission.
67 endef
68
69 define Package/transmission-web/description
70 Webinterface resources for transmission.
71 endef
72
73 define Package/transmission-daemon/conffiles
74 /etc/config/transmission
75 endef
76
77 CONFIGURE_VARS += \
78 LIBEVENT_LIBS="$(STAGING_DIR)/usr/lib/libevent-2.0.so.5"
79
80 CONFIGURE_ARGS += \
81 --enable-daemon \
82 --enable-cli \
83 --disable-gtk \
84 --enable-largefile \
85 --enable-lightweight
86
87 MAKE_FLAGS += \
88 CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
89
90 define Package/transmission-daemon/install
91 $(INSTALL_DIR) $(1)/usr/bin
92 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-daemon $(1)/usr/bin/
93 $(INSTALL_DIR) $(1)/etc/init.d/
94 $(INSTALL_BIN) files/transmission.init $(1)/etc/init.d/transmission
95 $(INSTALL_DIR) $(1)/etc/config
96 $(INSTALL_CONF) files/transmission.config $(1)/etc/config/transmission
97 endef
98
99 define Package/transmission-cli/install
100 $(INSTALL_DIR) $(1)/usr/bin
101 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-cli \
102 $(PKG_INSTALL_DIR)/usr/bin/transmission-create \
103 $(PKG_INSTALL_DIR)/usr/bin/transmission-edit \
104 $(PKG_INSTALL_DIR)/usr/bin/transmission-show \
105 $(1)/usr/bin/
106 endef
107
108 define Package/transmission-remote/install
109 $(INSTALL_DIR) $(1)/usr/bin
110 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
111 endef
112
113 define Package/transmission-web/install
114 $(INSTALL_DIR) $(1)/usr/share/transmission
115 $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
116 endef
117
118 $(eval $(call BuildPackage,transmission-daemon))
119 $(eval $(call BuildPackage,transmission-cli))
120 $(eval $(call BuildPackage,transmission-remote))
121 $(eval $(call BuildPackage,transmission-web))