annotate src/libssh2.mk @ 3293:cf6f40cededb

Support file list generation in packages. For the following modules: - arpack - blas - build-autoconf - build-automake - build-cmake - build-gperf - build-libtool - build-msvctools - build-pkg-config - build-texinfo - bzip2 - curl - dbus - expat - fftw - fltk - fontconfig - freetype - gettext - glpk - gmp - gnuplot - gnutls - graphicsmagick - hdf5 - jasper - jpeg - lapack - lcms - libgcrypt - libgpg_error - libiconv - libidn - libpng - libssh2 - libxml2 - ncurses - nettle - openssl - pcre - pstoedit - zlib - qhull - qrupdate - qscintilla - qt - readline - suitesparse - texinfo - tiff
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 09 Nov 2013 23:28:04 -0500
parents c81056b5528e
children 13be64f9f16d
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)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_DEPS := 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 \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2907
diff changeset
22 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2907
69cc6151a9e0 fix shared lib build for libssh2
John W. Eaton <jwe@octave.org>
parents: 2880
diff changeset
24 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
25 --prefix='$(HOST_PREFIX)' \
2046
45dbac6fcb14 package libssh2: use libgcrypt instead of openssl
Tony Theodore <tonyt@logyst.com>
parents: 2022
diff changeset
26 --without-openssl \
45dbac6fcb14 package libssh2: use libgcrypt instead of openssl
Tony Theodore <tonyt@logyst.com>
parents: 2022
diff changeset
27 --with-libgcrypt \
3085
c81056b5528e [MSVC] enable libssh2 compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
28 PKG_CONFIG='$(MXE_PKG_CONFIG)' && $(CONFIGURE_POST_HOOK)
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3085
diff changeset
29 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= html_DATA= DESTDIR='$(3)'
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
30
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
31 ## '$(MXE_CC)' \
2907
69cc6151a9e0 fix shared lib build for libssh2
John W. Eaton <jwe@octave.org>
parents: 2880
diff changeset
32 ## -W -Wall -Werror -ansi -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
33 ## '$(2).c' -o '$(HOST_BINDIR)/test-libssh2.exe' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
34 ## `'$(MXE_PKG_CONFIG)' --cflags --libs libssh2`
2866
028eabbb0f76 Include curl as a dependency of Octave.
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
35
2021
1467d5e5fd6d package libssh2: add missing dependencies and test program
Tony Theodore <tonyt@logyst.com>
parents: 2020
diff changeset
36 endef