# -*- ruby -*- $LOAD_PATH.unshift("./lib") require 'gnome2-raketask' bin_dir = nil include_dir = nil glib2_include_dir = nil libffi_lib_dir = nil build_host = nil package = GNOME2Package.new do |_package| bin_dir = (_package.windows.absolute_binary_dir + "bin").to_s include_dir = (_package.windows.absolute_binary_dir + "include").to_s glib2_include_dir = File.join(include_dir, "glib-2.0") libffi_lib_dir = (_package.windows.absolute_binary_dir + "lib").to_s build_host = _package.windows.build_host _package.summary = "Ruby/GLib2 is a Ruby binding of GLib-2.x." _package.description = "Ruby/GLib2 is a Ruby binding of GLib-2.x." _package.dependency.gem.runtime = [["pkg-config", ">= 0"]] _package.dependency.gem.development = [["test-unit", ">= 2"]] _package.win32.packages = [] _package.win32.dependencies = [] _package.external_packages = [ { :name => "libiconv", :download_site => :gnu, :label => "libiconv", :version => "1.14", :windows => { :built_file => "bin/libiconv-2.dll", }, }, { :name => "gettext", :download_site => :gnu, :label => "gettext-runtime", :version => "0.19.2", :base_dir_in_package => "gettext-runtime", :windows => { :built_file => "bin/libintl-8.dll", }, }, { :name => "libffi", :download_base_url => "ftp://sourceware.org/pub/libffi", :label => "libffi", :version => "3.1", :windows => { :built_file => "bin/libffi-6.dll", }, }, { :name => "glib", :download_site => :gnome, :label => "GLib", :version => "2.42.0", :compression_method => "xz", :windows => { :need_autoreconf => true, :patches => [ "glib-2.38.2-add-missing-exeext.diff", ], :built_file => "bin/libglib-2.0-0.dll", }, }, { :name => "gmp", :download_base_url => "ftp://ftp.gmplib.org/pub/gmp-6.0.0", :label => "GNU MP", :version => "6.0.0", :compression_method => "xz", :windows => { :configure_args => [ "--disable-static", "--enable-shared", ], :built_file => "bin/libgmp-10.dll", }, }, { :name => "nettle", :download_base_url => "http://www.lysator.liu.se/~nisse/archive", :label => "Nettle", :version => "2.7.1", :windows => { :configure_args => [], :built_file => "bin/libnettle-4-7.dll", }, }, { :name => "gnutls", :download_base_url => "ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2", :label => "GnuTLS", :version => "3.2.18", :compression_method => "xz", :windows => { :configure_args => [ "--disable-cxx", ], :use_cc_environment_variable => false, :patches => [ ], :built_file => "bin/libgnutls-28.dll", }, }, { :name => "glib-networking", :download_site => :gnome, :label => "glib-networking", :version => "2.42.0", :compression_method => "xz", :windows => { :configure_args => [ "--without-libproxy", "--without-gnome-proxy", "--without-ca-certificates", ], :built_file => "lib/gio/modules/libgiognutls.dll", }, }, ] _package.cross_compiling do |spec| if /mingw|mswin/ =~ spec.platform.to_s spec.add_runtime_dependency("cairo", ">= 1.12.8") end end end package.define_tasks