source: packages/net/transmission/Makefile @ 22967

Last change on this file since 22967 was 22967, checked in by mb, 6 years ago

From: Joseph Roback <openwrt-devel@…>

26 Makefile patches for enabling parallel builds. Tested on Linux (8-core) and Darwin (12-core), individually and from clean build_root. The first set is from trunk, the second is from feeds/packages.

Signed-off-by: Joe Roback <joe@…>

  • 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.0 KB
Line 
1#
2# Copyright (C) 2009-2010 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.04
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://mirrors.m0k.org/transmission/files
16PKG_MD5SUM:=84fe15eb7e000fdc369def513299358b
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 +libevent
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)
46  DEPENDS:=transmission-daemon
47endef
48
49define Package/transmission-web
50  $(call Package/transmission/template)
51  DEPENDS:=transmission-daemon
52endef
53
54
55define 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.
60endef
61
62define Package/transmission-cli/description
63 CLI utilities for transmission.
64endef
65
66define Package/transmission-remote/description
67 CLI remote interface for transmission.
68endef
69
70define Package/transmission-web/description
71 Webinterface resources for transmission.
72endef
73
74define Package/transmission-daemon/conffiles
75/etc/config/transmission
76endef
77
78CONFIGURE_VARS += \
79        LIBEVENT_LIBS="$(STAGING_DIR)/usr/lib/libevent.so"
80
81CONFIGURE_ARGS += \
82        --enable-daemon \
83        --enable-cli \
84        --disable-gtk \
85        --enable-largefile
86
87MAKE_FLAGS += \
88        CFLAGS="$(TARGET_CFLAGS)"
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/transmissioncli $(1)/usr/bin/
102endef
103
104define Package/transmission-remote/install
105        $(INSTALL_DIR) $(1)/usr/bin
106        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/transmission-remote $(1)/usr/bin/
107endef
108
109define Package/transmission-web/install
110        $(INSTALL_DIR) $(1)/usr/share/transmission
111        $(CP) $(PKG_INSTALL_DIR)/usr/share/transmission/web $(1)/usr/share/transmission/
112endef
113
114$(eval $(call BuildPackage,transmission-daemon))
115$(eval $(call BuildPackage,transmission-cli))
116$(eval $(call BuildPackage,transmission-remote))
117$(eval $(call BuildPackage,transmission-web))
Note: See TracBrowser for help on using the repository browser.