annotate src/libssh2.mk @ 2333:f653602a0500

Rebrand to new project name MXE
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 28 Mar 2012 15:46:58 +0200
parents 961e62f6634a
children f48c5b085a38
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2232
diff changeset
1 # This file is part of MXE.
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
2 # See doc/index.html for further information.
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
3
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
4 # libssh2
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
5 PKG := libssh2
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
6 $(PKG)_IGNORE :=
2232
961e62f6634a update package libssh2
Mark Brand <mabrand@mabrand.nl>
parents: 2115
diff changeset
7 $(PKG)_VERSION := 1.4.0
961e62f6634a update package libssh2
Mark Brand <mabrand@mabrand.nl>
parents: 2115
diff changeset
8 $(PKG)_CHECKSUM := 53428b4935ab6eb843d45f1593dc434cb287b93e
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
9 $(PKG)_SUBDIR := libssh2-$($(PKG)_VERSION)
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
10 $(PKG)_FILE := libssh2-$($(PKG)_VERSION).tar.gz
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
11 $(PKG)_WEBSITE := http://www.libssh2.org
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
12 $(PKG)_URL := http://www.libssh2.org/download/$($(PKG)_FILE)
2046
45dbac6fcb14 package libssh2: use libgcrypt instead of openssl
Tony Theodore <tonyt@logyst.com>
parents: 2022
diff changeset
13 $(PKG)_DEPS := gcc libgcrypt zlib
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
14
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
15 define $(PKG)_UPDATE
2022
a8051ff4b885 package libssh2: add explicit sort to update macro
Tony Theodore <tonyt@logyst.com>
parents: 2021
diff changeset
16 wget -q -O- 'http://www.libssh2.org/download/?C=M;O=D' | \
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
17 grep 'libssh2-' | \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
18 $(SED) -n 's,.*libssh2-\([0-9][^>]*\)\.tar.*,\1,p' | \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
19 head -1
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
20 endef
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
21
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
22 define $(PKG)_BUILD
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
23 cd '$(1)' && ./configure \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
24 --host='$(TARGET)' \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
25 --disable-shared \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
26 --prefix='$(PREFIX)/$(TARGET)' \
2046
45dbac6fcb14 package libssh2: use libgcrypt instead of openssl
Tony Theodore <tonyt@logyst.com>
parents: 2022
diff changeset
27 --without-openssl \
45dbac6fcb14 package libssh2: use libgcrypt instead of openssl
Tony Theodore <tonyt@logyst.com>
parents: 2022
diff changeset
28 --with-libgcrypt \
2115
a6f0aed4afde package libssh2: improve dependency handling
Mark Brand <mabrand@mabrand.nl>
parents: 2046
diff changeset
29 PKG_CONFIG='$(TARGET)-pkg-config' \
a6f0aed4afde package libssh2: improve dependency handling
Mark Brand <mabrand@mabrand.nl>
parents: 2046
diff changeset
30 LIBS="-lgcrypt `$(PREFIX)/$(TARGET)/bin/gpg-error-config --libs`"
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
31 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= html_DATA=
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
32
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
33 '$(TARGET)-gcc' \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
34 -W -Wall -Werror -ansi -pedantic \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
35 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libssh2.exe' \
2115
a6f0aed4afde package libssh2: improve dependency handling
Mark Brand <mabrand@mabrand.nl>
parents: 2046
diff changeset
36 `'$(TARGET)-pkg-config' --cflags --libs libssh2`
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
37 endef