libgcrypt: update to 1.8.3
[unleashed-userland.git] / components / library / botan / Makefile
blob556bdcf68eb14d3e1273565f69a9c744ee87751d
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2015 Adam Stevko
15 include ../../../make-rules/shared-macros.mk
17 COMPONENT_NAME= botan
18 COMPONENT_VERSION= 1.10.9
19 COMPONENT_REVISION= 1
20 COMPONENT_LICENSE= BSD
21 COMPONENT_PROJECT_URL= http://botan.randombit.net/
22 COMPONENT_SUMMARY= Crypto and TLS for C++11
23 COMPONENT_SRC= Botan-$(COMPONENT_VERSION)
24 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
25 COMPONENT_ARCHIVE_HASH= \
26 sha256:487d27d3a081ae403cf87c0fc78c2a64183f001b48f9feb87e8de1e16fba8df2
27 COMPONENT_ARCHIVE_URL= http://botan.randombit.net/releases/$(COMPONENT_ARCHIVE)
29 include $(WS_TOP)/make-rules/prep.mk
30 include $(WS_TOP)/make-rules/configure.mk
31 include $(WS_TOP)/make-rules/ips.mk
33 COMPONENT_PRE_CONFIGURE_ACTION = \
34 ($(CLONEY) $(SOURCE_DIR) $(@D))
36 CONFIG_SHELL = /usr/bin/python
37 CONFIGURE_SCRIPT= $(SOURCE_DIR)/configure.py
39 CONFIGURE_OPTIONS.64= --cpu=x86_64
40 CONFIGURE_OPTIONS.32= --cpu=x86_32
42 CONFIGURE_OPTIONS= --prefix=/usr
43 CONFIGURE_OPTIONS+= $(CONFIGURE_OPTIONS.$(BITS))
44 CONFIGURE_OPTIONS+= --bindir=$(CONFIGURE_BINDIR.$(BITS))
45 CONFIGURE_OPTIONS+= --docdir=/usr/share/doc
46 CONFIGURE_OPTIONS+= --libdir=$(CONFIGURE_LIBDIR.$(BITS))
47 CONFIGURE_OPTIONS+= --includedir=/usr/include
48 CONFIGURE_OPTIONS+= --cc gcc
49 CONFIGURE_OPTIONS+= --cc-bin $(CXX)
50 CONFIGURE_OPTIONS+= --os sunos
51 CONFIGURE_OPTIONS+= --enable-sse2
52 CONFIGURE_OPTIONS+= --enable-altivec
53 CONFIGURE_OPTIONS+= --enable-movbe
54 CONFIGURE_OPTIONS+= --with-openssl
55 CONFIGURE_OPTIONS+= --disable-modules=ecdsa
56 CONFIGURE_OPTIONS+= --with-bzip2
57 CONFIGURE_OPTIONS+= --with-zlib
59 COMPONENT_POST_INSTALL_ACTION= \
60 (cd $(PROTOUSRDIR) ; \
61 $(MV) include/botan-1.10/botan/build.h include/botan-1.10/botan/build-$(BITS).h )
63 build: $(BUILD_32_and_64)
65 install: $(INSTALL_32_and_64)