]> git.ipfire.org Git - people/ms/strongswan.git/blob - testing/scripts/recipes/011_botan.mk
Use Botan 2.19.1 for tests
[people/ms/strongswan.git] / testing / scripts / recipes / 011_botan.mk
1 #!/usr/bin/make
2
3 PKG = botan
4 SRC = https://github.com/randombit/$(PKG).git
5 REV = 2.19.1
6
7 NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
8
9 # the first two are necessary due to LD, the others to reduce the build time
10 CONFIG_OPTS = \
11 --without-os-features=threads \
12 --disable-modules=locking_allocator \
13 --disable-modules=pkcs11,tls,x509,xmss \
14
15 all: install
16
17 .$(PKG)-cloned:
18 [ -d $(PKG) ] || git clone $(SRC) $(PKG)
19 @touch $@
20
21 .$(PKG)-checkout-$(REV): .$(PKG)-cloned
22 cd $(PKG) && git fetch && git checkout $(REV)
23 @rm -f .$(PKG)-checkout-* && touch $@
24
25 .$(PKG)-built-$(REV): .$(PKG)-checkout-$(REV)
26 cd $(PKG) && python3 ./configure.py $(CONFIG_OPTS) && make -j $(NUM_CPUS)
27 @rm -f .$(PKG)-built-* && touch $@
28
29 install: .$(PKG)-built-$(REV)
30 cd $(PKG) && make install && ldconfig