]> git.sesse.net Git - vlc/blob - contrib/src/ssh2/rules.mak
contrib: ssh2: explicitely depend on gcrypt
[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         $(MOVE)
22
23 DEPS_ssh2 = gcrypt $(DEPS_gcrypt)
24
25 .ssh2: ssh2
26         $(RECONF)
27         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-examples-build --with-libgcrypt --without-openssl
28         cd $< && $(MAKE) install
29         touch $@