usbredir: improve license description
[buildroot-gz.git] / package / transmission / transmission.mk
blobe0cfc2d33a0073d6f21ccedf23ffbeb57c5de051
1 ################################################################################
3 # transmission
5 ################################################################################
7 TRANSMISSION_VERSION = 2.92
8 TRANSMISSION_SITE = http://download.transmissionbt.com/files
9 TRANSMISSION_SOURCE = transmission-$(TRANSMISSION_VERSION).tar.xz
10 TRANSMISSION_DEPENDENCIES = \
11 host-pkgconf \
12 host-intltool \
13 libcurl \
14 libevent \
15 openssl \
16 zlib
17 TRANSMISSION_AUTORECONF = YES
18 TRANSMISSION_CONF_OPTS = \
19 --disable-libnotify \
20 --enable-lightweight
21 TRANSMISSION_LICENSE = GPLv2 or GPLv3 with OpenSSL exception
22 TRANSMISSION_LICENSE_FILES = COPYING
24 ifeq ($(BR2_PACKAGE_LIBMINIUPNPC),y)
25 TRANSMISSION_DEPENDENCIES += libminiupnpc
26 endif
28 ifeq ($(BR2_PACKAGE_LIBNATPMP),y)
29 TRANSMISSION_DEPENDENCIES += libnatpmp
30 TRANSMISSION_CONF_OPTS += --enable-external-natpmp
31 else
32 TRANSMISSION_CONF_OPTS += --disable-external-natpmp
33 endif
35 ifeq ($(BR2_PACKAGE_TRANSMISSION_UTP),y)
36 TRANSMISSION_CONF_OPTS += --enable-utp
37 else
38 TRANSMISSION_CONF_OPTS += --disable-utp
39 endif
41 ifeq ($(BR2_PACKAGE_TRANSMISSION_CLI),y)
42 TRANSMISSION_CONF_OPTS += --enable-cli
43 else
44 TRANSMISSION_CONF_OPTS += --disable-cli
45 endif
47 ifeq ($(BR2_PACKAGE_TRANSMISSION_DAEMON),y)
48 TRANSMISSION_CONF_OPTS += --enable-daemon
50 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
51 TRANSMISSION_DEPENDENCIES += systemd
52 TRANSMISSION_CONF_OPTS += --with-systemd-daemon
53 else
54 TRANSMISSION_CONF_OPTS += --without-systemd-daemon
55 endif
57 define TRANSMISSION_USERS
58 transmission -1 transmission -1 * /var/lib/transmission - transmission Transmission Daemon
59 endef
61 define TRANSMISSION_INSTALL_INIT_SYSV
62 $(INSTALL) -m 0755 -D package/transmission/S92transmission \
63 $(TARGET_DIR)/etc/init.d/S92transmission
64 endef
66 define TRANSMISSION_INSTALL_INIT_SYSTEMD
67 $(INSTALL) -D -m 0755 $(@D)/daemon/transmission-daemon.service \
68 $(TARGET_DIR)/usr/lib/systemd/system/transmission-daemon.service
69 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
70 ln -fs ../../../../usr/lib/systemd/system/transmission-daemon.service \
71 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/transmission-daemon.service
72 endef
74 else
75 TRANSMISSION_CONF_OPTS += --disable-daemon
76 endif
78 ifeq ($(BR2_PACKAGE_TRANSMISSION_REMOTE),y)
79 TRANSMISSION_CONF_OPTS += --enable-remote
80 else
81 TRANSMISSION_CONF_OPTS += --disable-remote
82 endif
84 ifeq ($(BR2_PACKAGE_TRANSMISSION_GTK),y)
85 TRANSMISSION_CONF_OPTS += --enable-gtk
86 TRANSMISSION_DEPENDENCIES += libgtk2
87 else
88 TRANSMISSION_CONF_OPTS += --disable-gtk
89 endif
91 $(eval $(autotools-package))