diff options
author | Maxime Ripard <maxime@free-electrons.com> | 2011-10-12 17:22:11 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-11-17 18:14:25 +0100 |
commit | 6e223241e1bb58a27eb890291f9f5c1fcc6a0818 (patch) | |
tree | ae3c9eca9224c761a51cb00fcbb93bc8c1a634c8 /package/transmission/transmission.mk | |
parent | ddfb134399b295dbf3410be3ee4bb52d7b97e6ed (diff) |
Add Transmission package
Initial work by marcus.osdoba@googlemail.com
[Peter: add -daemon option, tweak Config.in]
Signed-off-by: Maxime Ripard <maxime@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/transmission/transmission.mk')
-rw-r--r-- | package/transmission/transmission.mk | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/package/transmission/transmission.mk b/package/transmission/transmission.mk new file mode 100644 index 000000000..db0669281 --- /dev/null +++ b/package/transmission/transmission.mk @@ -0,0 +1,52 @@ +############################################################# +# +# transmission +# +############################################################# +TRANSMISSION_VERSION = 2.33 +TRANSMISSION_SITE = http://download.transmissionbt.com/files/ +TRANSMISSION_SOURCE = transmission-$(TRANSMISSION_VERSION).tar.bz2 +TRANSMISSION_DEPENDENCIES = \ + host-pkg-config \ + libcurl \ + libevent \ + openssl \ + zlib + +TRANSMISSION_CONF_OPT = \ + --disable-gtk \ + --disable-libnotify \ + --enable-lightweight + +define TRANSMISSION_INIT_SCRIPT_INSTALL + [ -f $(TARGET_DIR)/etc/init.d/S92transmission ] || \ + $(INSTALL) -m 0755 -D package/transmission/S92transmission \ + $(TARGET_DIR)/etc/init.d/S92transmission +endef + +ifeq ($(BR2_PACKAGE_TRANSMISSION_UTP),y) + TRANSMISSION_CONF_OPT += --enable-utp +else + TRANSMISSION_CONF_OPT += --disable-utp +endif + +ifeq ($(BR2_PACKAGE_TRANSMISSION_CLI),y) + TRANSMISSION_CONF_OPT += --enable-cli +else + TRANSMISSION_CONF_OPT += --disable-cli +endif + +ifeq ($(BR2_PACKAGE_TRANSMISSION_DAEMON),y) + TRANSMISSION_CONF_OPT += --enable-daemon + TRANSMISSION_POST_INSTALL_TARGET_HOOKS += TRANSMISSION_INIT_SCRIPT_INSTALL +else + TRANSMISSION_CONF_OPT += --disable-daemon +endif + +ifeq ($(BR2_PACKAGE_TRANSMISSION_REMOTE),y) + TRANSMISSION_CONF_OPT += --enable-remote +else + TRANSMISSION_CONF_OPT += --disable-remote +endif + +$(eval $(call AUTOTARGETS)) |