olsrd: fix compile error on some systems (e.g. Mac OS X "Snow Leopard")
[openwrt/svn-archive/archive.git] / net / transmission / Makefile
1 #
2 # Copyright (C) 2009 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:=1.74
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:=6b1080800c62308179cfc7a691c82d63
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/transmission/template
23 SUBMENU:=BitTorrent
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=A free, lightweight BitTorrent client
27 URL:=http://www.transmissionbt.com
28 endef
29
30 define Package/transmission-daemon
31 $(call Package/transmission/template)
32 DEPENDS:=+libcurl +libopenssl +libpthread
33 MENU:=1
34 endef
35
36 define Package/transmission-cli
37 $(call Package/transmission/template)
38 DEPENDS:=transmission-daemon
39 endef
40
41 define Package/transmission-web
42 $(call Package/transmission/template)
43 DEPENDS:=transmission-daemon
44 endef
45
46 define Package/transmission-daemon/description
47 Transmission is a simple BitTorrent client.
48 It features a very simple, intuitive interface
49 on top on an efficient, cross-platform back-end.
50 This package contains the daemon itself.
51 endef
52
53 define Package/transmission-cli/description
54 CLI utilities for transmission.
55 endef
56
57 define Package/transmission-web/description
58 Webinterface resources for transmission.
59 endef
60
61 CONFIGURE_ARGS += \
62 --enable-daemon \
63 --disable-gtk \
64 --disable-wx \
65 --with-wx-config="$(STAGING_DIR)/usr/bin/" \
66
67 define Build/Compile
68 $(MAKE) -C $(PKG_BUILD_DIR) \
69 $(TARGET_CONFIGURE_OPTS) \
70 CFLAGS="$(TARGET_CFLAGS)"
71 endef
72
73 define Package/transmission-daemon/install
74 $(INSTALL_DIR) $(1)/usr/sbin
75 $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/transmission-daemon $(1)/usr/sbin/
76 endef
77
78 define Package/transmission-cli/install
79 $(INSTALL_DIR) $(1)/usr/bin
80 $(INSTALL_BIN) $(PKG_BUILD_DIR)/cli/transmissioncli $(1)/usr/bin/
81 $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemon/transmission-remote $(1)/usr/bin/
82 endef
83
84 define Package/transmission-web/install
85 $(INSTALL_DIR) $(1)/usr/share/transmission
86 rm -rf `find $(PKG_BUILD_DIR)/web -type d -name .svn`
87 cp -rf $(PKG_BUILD_DIR)/web $(1)/usr/share/transmission
88 endef
89
90 $(eval $(call BuildPackage,transmission-daemon))
91 $(eval $(call BuildPackage,transmission-cli))
92 $(eval $(call BuildPackage,transmission-web))