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