]> git.sesse.net Git - vlc/blob - contrib/src/ssh2/rules.mak
Contribs: fix ssh2 .pc file with zlib
[vlc] / contrib / src / ssh2 / rules.mak
1 # ssh2
2
3 LIBSSH2_VERSION := 1.4.3
4 LIBSSH2_URL := http://www.libssh2.org/download/libssh2-$(LIBSSH2_VERSION).tar.gz
5
6 ifdef BUILD_NETWORK
7 PKGS += ssh2
8 endif
9 ifeq ($(call need_pkg,"libssh2"),)
10 PKGS_FOUND += ssh2
11 endif
12
13 $(TARBALLS)/libssh2-$(LIBSSH2_VERSION).tar.gz:
14         $(call download,$(LIBSSH2_URL))
15
16 .sum-ssh2: libssh2-$(LIBSSH2_VERSION).tar.gz
17
18 ssh2: libssh2-$(LIBSSH2_VERSION).tar.gz .sum-ssh2
19         $(UNPACK)
20         $(APPLY) $(SRC)/ssh2/no-tests.patch
21         $(APPLY) $(SRC)/ssh2/configure-zlib.patch
22         $(MOVE)
23
24 DEPS_ssh2 = gcrypt $(DEPS_gcrypt)
25
26 .ssh2: ssh2
27         $(RECONF)
28         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-examples-build --with-libgcrypt --without-openssl
29         cd $< && $(MAKE) install
30         touch $@