9a0fb6bee4d2de1c157e960257c71978ef31cd84
[openwrt/staging/nbd.git] / tools / libressl / Makefile
1 #
2 # Copyright (C) 2016-2017 LEDE project
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:=libressl
11 PKG_VERSION:=3.7.2
12 PKG_HASH:=b06aa538fefc9c6b33c4db4931a09a5f52d9d2357219afcbff7d93fe12ebf6f7
13
14 PKG_CPE_ID:=cpe:/a:openbsd:libressl
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=https://mirror.ox.ac.uk/pub/OpenBSD/LibreSSL \
18 http://ftp.jaist.ac.jp/pub/OpenBSD/LibreSSL \
19 https://ftp.openbsd.org/pub/OpenBSD/LibreSSL
20
21 HOST_BUILD_PARALLEL:=1
22
23 include $(INCLUDE_DIR)/host-build.mk
24
25 HOSTCC := $(HOSTCC_NOCACHE)
26
27 HOST_CFLAGS += $(HOST_FPIC)
28
29 HOST_CONFIGURE_ARGS += \
30 --enable-static \
31 --disable-shared \
32 --disable-asm \
33 --with-pic \
34 --disable-tests
35
36 define Host/Uninstall
37 -$(call Host/Compile/Default,uninstall)
38 endef
39
40 $(eval $(call HostBuild))