[Xfce4-commits] <midori:master> Default external DM to "fetch" on FreeBSD

Christian Dywan noreply at xfce.org
Fri Feb 8 19:26:01 CET 2013


Updating branch refs/heads/master
         to c85aa8f16976c178b27011963dd02f2b9f24a9ec (commit)
       from a38206867996f2b31ecbf1c66e14e92979914bff (commit)

commit c85aa8f16976c178b27011963dd02f2b9f24a9ec
Author: Olivier Duchateau <duchateau.olivier at gmail.com>
Date:   Fri Feb 8 18:55:35 2013 +0100

    Default external DM to "fetch" on FreeBSD
    
    Fixes: https://bugs.launchpad.net/midori/+bug/1119302

 extensions/external-download-manager.vala |    2 ++
 wscript                                   |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/extensions/external-download-manager.vala b/extensions/external-download-manager.vala
index b7d7042..70225ba 100644
--- a/extensions/external-download-manager.vala
+++ b/extensions/external-download-manager.vala
@@ -311,6 +311,8 @@ namespace EDM {
         internal CommandLine () {
 #if HAVE_WIN32
             string default_commandline = "\"%s\\FlashGet\\flashget.exe\" {URL}".printf (Environment.get_variable ("ProgramFiles"));
+#elif HAVE_FREEBSD
+            string default_commandline = "fetch HTTP_REFERER={REFERER} {URL}";
 #else
             string default_commandline = "wget --no-check-certificate --referer={REFERER} --header={COOKIES} {URL}";
 #endif
diff --git a/wscript b/wscript
index c70e608..122ad70 100644
--- a/wscript
+++ b/wscript
@@ -258,6 +258,9 @@ def configure (conf):
         args = '--define-variable=target=win32'
         conf.env.append_value ('VALAFLAGS', '-D HAVE_WIN32')
     elif sys.platform != 'darwin':
+        if sys.platform.startswith ('freebsd'):
+            conf.env.append_value ('VALAFLAGS', '-D HAVE_FREEBSD')
+
         check_pkg ('x11')
         # Pass /usr/X11R6/include for OpenBSD
         conf.check (header_name='X11/extensions/scrnsaver.h',


More information about the Xfce4-commits mailing list