diff options
author | Paul Crown <develop@computerdataprocessors.com> | 2011-10-20 15:34:14 (GMT) |
---|---|---|
committer | Paul Crown <develop@computerdataprocessors.com> | 2011-10-20 15:34:14 (GMT) |
commit | 48190805b3d7cc4658582d5fa702997783cb170d (patch) | |
tree | 4f4df998ceadbb52e41da17c35483dfa6ce6c8ae /src | |
parent | dcc426568ed4a3e8f960543aaecc78ef6960f8ff (diff) | |
download | mxe-48190805b3d7cc4658582d5fa702997783cb170d.zip mxe-48190805b3d7cc4658582d5fa702997783cb170d.tar.gz mxe-48190805b3d7cc4658582d5fa702997783cb170d.tar.bz2 |
new package: libssh2
Diffstat (limited to 'src')
-rw-r--r-- | src/libssh2-1-fixes.patch | 19 | ||||
-rw-r--r-- | src/libssh2.mk | 29 |
2 files changed, 48 insertions, 0 deletions
diff --git a/src/libssh2-1-fixes.patch b/src/libssh2-1-fixes.patch new file mode 100644 index 0000000..11bc32d --- /dev/null +++ b/src/libssh2-1-fixes.patch @@ -0,0 +1,19 @@ +This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+Contains ad hoc patches for cross building.
+
+diff -Naur libssh2-1.3.0.orig/include/libssh2.h libssh2-1.3.0/include/libssh2.h
+--- libssh2-1.3.0.orig/include/libssh2.h 2011-09-06 15:56:34.000000000 -0500
++++ libssh2-1.3.0/include/libssh2.h 2011-10-17 10:10:13.000000000 -0500
+@@ -88,8 +88,8 @@
+ extern "C" {
+ #endif
+ #ifdef _WIN32
+-# include <BaseTsd.h>
+-# include <WinSock2.h>
++# include <basetsd.h>
++# include <winsock2.h>
+ #endif
+
+ #include <stddef.h>
diff --git a/src/libssh2.mk b/src/libssh2.mk new file mode 100644 index 0000000..9b6caee --- /dev/null +++ b/src/libssh2.mk @@ -0,0 +1,29 @@ +# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# libssh2
+PKG := libssh2
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 1.3.0
+$(PKG)_CHECKSUM := d342e06abe38a29b1bbb9c58d50dd093eab0bee9
+$(PKG)_SUBDIR := libssh2-$($(PKG)_VERSION)
+$(PKG)_FILE := libssh2-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE := http://www.libssh2.org
+$(PKG)_URL := http://www.libssh2.org/download/$($(PKG)_FILE)
+$(PKG)_DEPS :=
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://www.libssh2.org/download/' | \
+ grep 'libssh2-' | \
+ $(SED) -n 's,.*libssh2-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ PKG_CONFIG='$(TARGET)-pkg-config'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= html_DATA=
+endef
|