diff --git a/libffi/3.2.1/0001-Includes-should-go-in-includedir-not-libdir.patch b/libffi/3.2.1/0001-Includes-should-go-in-includedir-not-libdir.patch new file mode 100644 index 0000000..a591ace --- /dev/null +++ b/libffi/3.2.1/0001-Includes-should-go-in-includedir-not-libdir.patch @@ -0,0 +1,42 @@ +From b1184c2c41de4efc26866e6fb93cb9c694f14f8f Mon Sep 17 00:00:00 2001 +From: Luis Lavena +Date: Sat, 3 Jul 2010 12:48:20 -0300 +Subject: [PATCH] Includes should go in includedir, not libdir. + +This patch corrects the installation of ffi.h and ffitarget.h +to properly put in $(includedir) instead of $(libdir) + +It also avoids prepending package name and version to it, causing +issues by development tools trying to find it. +--- + include/Makefile.am | 2 +- + include/Makefile.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/Makefile.am b/include/Makefile.am +index fd28024..15301d6 100644 +--- a/include/Makefile.am ++++ b/include/Makefile.am +@@ -5,5 +5,5 @@ AUTOMAKE_OPTIONS=foreign + DISTCLEANFILES=ffitarget.h + EXTRA_DIST=ffi.h.in ffi_common.h + +-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include ++includesdir = $(includedir) + nodist_includes_HEADERS = ffi.h ffitarget.h +diff --git a/include/Makefile.in b/include/Makefile.in +index f370697..c62d6c4 100644 +--- a/include/Makefile.in ++++ b/include/Makefile.in +@@ -204,7 +204,7 @@ top_srcdir = @top_srcdir@ + AUTOMAKE_OPTIONS = foreign + DISTCLEANFILES = ffitarget.h + EXTRA_DIST = ffi.h.in ffi_common.h +-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include ++includesdir = $(includedir) + nodist_includes_HEADERS = ffi.h ffitarget.h + all: all-am + +-- +1.7.1.msysgit.0 + diff --git a/libffi/3.2.1/libffi-3.2.1.knapfile b/libffi/3.2.1/libffi-3.2.1.knapfile new file mode 100644 index 0000000..6f233cd --- /dev/null +++ b/libffi/3.2.1/libffi-3.2.1.knapfile @@ -0,0 +1,7 @@ +recipe "libffi", "3.2.1" do + use :autotools + use :patch + + fetch "ftp://sourceware.org/pub/libffi/#{name}-#{version}.tar.gz", + :md5 => "83b89587607e3eb65c70d361f13bab43" +end diff --git a/openssl/openssl-1.0.1t.knapfile b/openssl/openssl-1.0.1t.knapfile new file mode 100644 index 0000000..3a1888b --- /dev/null +++ b/openssl/openssl-1.0.1t.knapfile @@ -0,0 +1,36 @@ +recipe "openssl", "1.0.1t" do + use :autotools + + fetch "https://www.openssl.org/source/openssl-1.0.1t.tar.gz", + :md5 => "9837746fcf8a6727d46d22ca35953da1" + depends_on "zlib" + + before :extract do + # ignore symlink errors from package + if platform.mingw? + options.ignore_extract_errors = true + end + end + + action :configure do + cmd = ["perl"] + if platform.posix? + cmd << "config" + else + cmd << "Configure" + end + + if platform.mingw? + if platform.x64? + cmd << "mingw64" + else + cmd << "mingw" + end + end + + cmd << "zlib-dynamic shared" + cmd << "--prefix=#{install_path}" + + run cmd.join(" ") + end +end diff --git a/openssl/openssl-1.0.2h.knapfile b/openssl/openssl-1.0.2h.knapfile new file mode 100644 index 0000000..e1eedd5 --- /dev/null +++ b/openssl/openssl-1.0.2h.knapfile @@ -0,0 +1,36 @@ +recipe "openssl", "1.0.2h" do + use :autotools + + fetch "https://www.openssl.org/source/openssl-1.0.2h.tar.gz", + :md5 => "9392e65072ce4b614c1392eefc1f23d0" + depends_on "zlib" + + before :extract do + # ignore symlink errors from package + if platform.mingw? + options.ignore_extract_errors = true + end + end + + action :configure do + cmd = ["perl"] + if platform.posix? + cmd << "config" + else + cmd << "Configure" + end + + if platform.mingw? + if platform.x64? + cmd << "mingw64" + else + cmd << "mingw" + end + end + + cmd << "zlib-dynamic shared" + cmd << "--prefix=#{install_path}" + + run cmd.join(" ") + end +end diff --git a/tcl/tcl-8.5.19.knapfile b/tcl/tcl-8.5.19.knapfile new file mode 100644 index 0000000..58b4018 --- /dev/null +++ b/tcl/tcl-8.5.19.knapfile @@ -0,0 +1,14 @@ +recipe "tcl", "8.5.19" do + use :autotools + use :patch + + fetch "http://prdownloads.sourceforge.net/tcl/#{name}#{version}-src.tar.gz", + :md5 => "4f4e1c919f6a6dbb37e9a12d429769a6" + + before :configure do + # FIXME: see why run does not support :chdir + run 'cd win && sh -c "autoconf"' + options.configure = "win/configure" + options.configure_args << "--enable-threads" + end +end diff --git a/tk/tk-8.5.19.knapfile b/tk/tk-8.5.19.knapfile new file mode 100644 index 0000000..335b204 --- /dev/null +++ b/tk/tk-8.5.19.knapfile @@ -0,0 +1,15 @@ +recipe "tk", "8.5.19" do + use :autotools + + depends_on "tcl" + + fetch "http://prdownloads.sourceforge.net/tcl/#{name}#{version}-src.tar.gz", + :md5 => "e89df710447cce0fc0bde65667c12f85" + + before :configure do + options.configure = "win/configure" + options.configure_args << "--enable-threads" + tcl_path = Knapsack.work_path("tcl", version, platform) + options.configure_args << "--with-tcl=#{tcl_path}" + end +end