annotate src/libssh2.mk @ 2865:5ebec6b3a79c

Build shared library for zlib by converting static library.
author John W. Eaton <jwe@octave.org>
date Fri, 16 Nov 2012 14:43:56 -0500
parents 47558e958113
children 028eabbb0f76
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.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
2021
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 PKG := libssh2
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
5 $(PKG)_IGNORE :=
2535
4a6fc9512b17 update package ssh2
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
6 $(PKG)_CHECKSUM := 7fc084254dabe14a9bc90fa3d569faa7ee943e19
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
7 $(PKG)_SUBDIR := libssh2-$($(PKG)_VERSION)
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
8 $(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
9 $(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
10 $(PKG)_DEPS := gcc libgcrypt zlib
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
11
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2392
diff changeset
13 $(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
14 grep 'libssh2-' | \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
15 $(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
16 head -1
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
17 endef
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
18
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
19 define $(PKG)_BUILD
2535
4a6fc9512b17 update package ssh2
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
20 cd '$(1)' && ./buildconf
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
21 cd '$(1)' && ./configure \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
22 --host='$(TARGET)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2710
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
24 --prefix='$(PREFIX)/$(TARGET)' \
2046
45dbac6fcb14 package libssh2: use libgcrypt instead of openssl
Tony Theodore <tonyt@logyst.com>
parents: 2022
diff changeset
25 --without-openssl \
45dbac6fcb14 package libssh2: use libgcrypt instead of openssl
Tony Theodore <tonyt@logyst.com>
parents: 2022
diff changeset
26 --with-libgcrypt \
2710
d427b570804c package libssh2: use upstream fix for gcrypt dep
Mark Brand <mabrand@mabrand.nl>
parents: 2535
diff changeset
27 PKG_CONFIG='$(TARGET)-pkg-config'
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
28 $(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
29
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
30 '$(TARGET)-gcc' \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
31 -W -Wall -Werror -ansi -pedantic \
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
32 '$(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
33 `'$(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
34 endef