80793107a6
This bump depends on bumping libutp to at least c95738b1a6644b919e5b64d3ea9736cfc5894e0b. Update license hash due to copyright year bump:4b8cfa2e57
Switche buildsystem to cmake, reworked dependencies. Remove all patches, transmission now depends on the libutp package and uses cmake as build system. Upstream removed the configure option for lightweight build:47ebb3f63a
Remove the option to disable uTP support; although the option is still available in the CMAkeLists.txt, building without libutp causes a build failure. Since upstream is not keen on keeping the option, just remove it and always buld with libutp; see:47ebb3f63a
Added -latomic when needed to fix build errors on riscv32 and sparc. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [yann.morin.1998@free.fr: expand explanations on the libutp change] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
83 lines
2.1 KiB
Makefile
83 lines
2.1 KiB
Makefile
################################################################################
|
|
#
|
|
# transmission
|
|
#
|
|
################################################################################
|
|
|
|
TRANSMISSION_VERSION = 4.0.3
|
|
TRANSMISSION_SOURCE = transmission-$(TRANSMISSION_VERSION).tar.xz
|
|
TRANSMISSION_SITE = https://github.com/transmission/transmission/releases/download/$(TRANSMISSION_VERSION)
|
|
TRANSMISSION_DEPENDENCIES = \
|
|
host-pkgconf \
|
|
dht \
|
|
libb64 \
|
|
libcurl \
|
|
libdeflate \
|
|
libevent \
|
|
libminiupnpc \
|
|
libnatpmp \
|
|
libpsl \
|
|
libutp \
|
|
openssl \
|
|
zlib
|
|
TRANSMISSION_CONF_OPTS = \
|
|
-DENABLE_TESTS=OFF \
|
|
-DRUN_CLANG_TIDY=OFF \
|
|
-DUSE_SYSTEM_B64=ON \
|
|
-DUSE_SYSTEM_DEFLATE=ON \
|
|
-DUSE_SYSTEM_DHT=ON \
|
|
-DUSE_SYSTEM_NATPMP=ON \
|
|
-DUSE_SYSTEM_PSL=ON \
|
|
-DWITH_INOTIFY=OFF
|
|
TRANSMISSION_LICENSE = GPL-2.0 or GPL-3.0 with OpenSSL exception
|
|
TRANSMISSION_LICENSE_FILES = COPYING
|
|
TRANSMISSION_CPE_ID_VENDOR = transmissionbt
|
|
|
|
# Uses __atomic_load_8
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
TRANSMISSION_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_CLI),y)
|
|
TRANSMISSION_CONF_OPTS += -DENABLE_CLI=ON
|
|
else
|
|
TRANSMISSION_CONF_OPTS += -DENABLE_CLI=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_DAEMON),y)
|
|
TRANSMISSION_CONF_OPTS += -DENABLE_DAEMON=ON
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
TRANSMISSION_DEPENDENCIES += systemd
|
|
TRANSMISSION_CONF_OPTS += -DWITH_SYSTEMD=ON
|
|
else
|
|
TRANSMISSION_CONF_OPTS += -DWITH_SYSTEMD=OFF
|
|
endif
|
|
|
|
define TRANSMISSION_USERS
|
|
transmission -1 transmission -1 * /var/lib/transmission - transmission Transmission Daemon
|
|
endef
|
|
|
|
define TRANSMISSION_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 0755 -D package/transmission/S92transmission \
|
|
$(TARGET_DIR)/etc/init.d/S92transmission
|
|
endef
|
|
|
|
define TRANSMISSION_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 0644 $(@D)/daemon/transmission-daemon.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/transmission-daemon.service
|
|
endef
|
|
|
|
else
|
|
TRANSMISSION_CONF_OPTS += -DENABLE_DAEMON=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TRANSMISSION_GTK),y)
|
|
TRANSMISSION_CONF_OPTS += -DENABLE_GTK=ON
|
|
TRANSMISSION_DEPENDENCIES += libgtk3
|
|
else
|
|
TRANSMISSION_CONF_OPTS += -DENABLE_GTK=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|