transmission: add gtk support
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 17 Nov 2011 19:57:23 +0000 (20:57 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 17 Nov 2011 19:57:23 +0000 (20:57 +0100)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/transmission/Config.in
package/transmission/transmission.mk

index 5284446902be4c990c5f07fb5439039a2c4f5d68..3fcf017fd93e748522753cdfd5627278d55fe77d 100644 (file)
@@ -33,6 +33,13 @@ config BR2_PACKAGE_TRANSMISSION_REMOTE
        bool "transmission-remote"
        help
          Install transmission remote management tool.
+
+config BR2_PACKAGE_TRANSMISSION_GTK
+       bool "transmission-gtk"
+       depends on BR2_PACKAGE_LIBGTK2
+       help
+         Install transmission GTK-based GUI interface.
+
 endif
 
 comment "Transmission requires a toolchain with IPv6 support"
index db066928162a77318142925236ab1cc50fd61cbc..c0d763bc4f78cec3b54bc6fde43d26ede19ddf14 100644 (file)
@@ -14,7 +14,6 @@ TRANSMISSION_DEPENDENCIES = \
        zlib
 
 TRANSMISSION_CONF_OPT = \
-       --disable-gtk \
        --disable-libnotify \
        --enable-lightweight
 
@@ -49,4 +48,11 @@ 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 $(call AUTOTARGETS))