mxe/src/libssh2.mk

34 lines
1.0 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
PKG := libssh2
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.4.3
2012-11-28 15:52:11 +00:00
$(PKG)_CHECKSUM := c27ca83e1ffeeac03be98b6eef54448701e044b0
$(PKG)_SUBDIR := libssh2-$($(PKG)_VERSION)
$(PKG)_FILE := libssh2-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://www.libssh2.org/download/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libgcrypt zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.libssh2.org/download/?C=M;O=D' | \
grep 'libssh2-' | \
$(SED) -n 's,.*libssh2-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
2012-05-19 08:57:21 +01:00
cd '$(1)' && ./buildconf
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--without-openssl \
--with-libgcrypt \
PKG_CONFIG='$(TARGET)-pkg-config'
2014-08-21 16:51:37 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_CRUFT)
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libssh2.exe' \
`'$(TARGET)-pkg-config' --cflags --libs libssh2`
endef