[packages] libssh2: Cleanup package Makefile
[openwrt/svn-archive/archive.git] / libs / libssh2 / Makefile
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libssh2
11 PKG_VERSION:=1.4.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.libssh2.org/download/
16 PKG_MD5SUM:=ee670161d8c5dff93ae84a3f34f15669
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libssh2
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=SSH2 library
25 URL:=http://www.libssh2.org/
26 DEPENDS:=+libopenssl +zlib
27 endef
28
29 TARGET_CFLAGS += $(FPIC)
30 CONFIGURE_ARGS += --with-libssl-prefix=$(STAGING_DIR)/usr
31
32 define Build/InstallDev
33 $(INSTALL_DIR) $(1)/usr/include
34 $(INSTALL_DIR) $(1)/usr/lib
35 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
36 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh2.so* $(1)/usr/lib/
37 endef
38
39 define Package/libssh2/install
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh2.so* $(1)/usr/lib/
42 endef
43
44 $(eval $(call BuildPackage,libssh2))