source: packages/net/transmission/Makefile @ 27718

Last change on this file since 27718 was 27718, checked in by obsy, 5 years ago

[packages] transmission: update to 2.33

  • Property svn:copyright set to Copyright (C) 2008 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:licence set to GPLv2
File size: 3.1 KB
Line 
1#
2# Copyright (C) 2009-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=transmission
11PKG_VERSION:=2.33
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files
16PKG_MD5SUM:=082217a65713ac879410c622cbe6eb26
17
18PKG_FIXUP:=libtool
19PKG_INSTALL:=1
20PKG_BUILD_PARALLEL:=1
21
22include $(INCLUDE_DIR)/package.mk
23
24define 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>
31endef
32
33define Package/transmission-daemon
34  $(call Package/transmission/template)
35  DEPENDS:=+libcurl +libopenssl +libpthread +libevent2 +librt
36  MENU:=1
37endef
38
39define Package/transmission-cli
40  $(call Package/transmission/template)
41  DEPENDS:=transmission-daemon
42endef
43
44define Package/transmission-remote
45  $(call Package/transmission/template)
46endef
47
48define Package/transmission-web
49  $(call Package/transmission/template)
50  DEPENDS:=transmission-daemon
51endef
52
53
54define 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.
59endef
60
61define Package/transmission-cli/description
62 CLI utilities for transmission.
63endef
64
65define Package/transmission-remote/description
66 CLI remote interface for transmission.
67endef
68
69define Package/transmission-web/description
70 Webinterface resources for transmission.
71endef
72
73define Package/transmission-daemon/conffiles
74/etc/config/transmission
75endef
76
77CONFIGURE_VARS += \
78        LIBEVENT_LIBS="$(STAGING_DIR)/usr/lib/libevent-2.0.so.5"
79
80CONFIGURE_ARGS += \
81        --enable-daemon \
82        --enable-cli \
83        --disable-gtk \
84        --enable-largefile \
85        --enable-lightweight
86
87MAKE_FLAGS += \
88        CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
89
90define 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
97endef
98
99define 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/
106endef
107
108define Package/transmission-remote/install
109        $(INSTALL_DIR) $(1)/usr/bin
110        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
111endef
112
113define Package/transmission-web/install
114        $(INSTALL_DIR) $(1)/usr/share/transmission
115        $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
116endef
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))
Note: See TracBrowser for help on using the repository browser.