kumquat-buildroot/package/transmission/transmission.mk
Thomas De Schampheleire 3a0776b9d6 transmission: fix uTP enabled build with ccache
Transmission would incorrectly determine the C++ compiler when ccache is
enabled, causing a build with uTP to fail at the configure step.
This patch adds a patch against transmission, fixing the problem.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-02-18 22:11:40 +01:00

62 lines
1.5 KiB
Makefile

################################################################################
#
# transmission
#
################################################################################
TRANSMISSION_VERSION = 2.82
TRANSMISSION_SITE = http://download.transmissionbt.com/files/
TRANSMISSION_SOURCE = transmission-$(TRANSMISSION_VERSION).tar.xz
TRANSMISSION_DEPENDENCIES = \
host-pkgconf \
host-intltool \
libcurl \
libevent \
openssl \
zlib
TRANSMISSION_AUTORECONF = YES
TRANSMISSION_CONF_OPT = \
--disable-libnotify \
--enable-lightweight
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
define TRANSMISSION_INSTALL_INIT_SYSV
[ -f $(TARGET_DIR)/etc/init.d/S92transmission ] || \
$(INSTALL) -m 0755 -D package/transmission/S92transmission \
$(TARGET_DIR)/etc/init.d/S92transmission
endef
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
ifeq ($(BR2_PACKAGE_TRANSMISSION_GTK),y)
TRANSMISSION_CONF_OPT += --enable-gtk
TRANSMISSION_DEPENDENCIES += libgtk2
else
TRANSMISSION_CONF_OPT += --disable-gtk
endif
$(eval $(autotools-package))