Factor out building of strongswan into own Makefile
[strongswan.git] / testing / scripts / recipes / strongswan.mk
1 #!/usr/bin/make
2
3 PV = 5.0.1
4 PKG = strongswan-$(PV)
5 TAR = $(PKG).tar.bz2
6 SRC = http://download.strongswan.org/$(TAR)
7
8 NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
9
10 CONFIG_OPTS = \
11 --sysconfdir=/etc \
12 --with-random-device=/dev/urandom \
13 --disable-load-warning \
14 --enable-curl \
15 --enable-ldap \
16 --enable-eap-aka \
17 --enable-eap-aka-3gpp2 \
18 --enable-eap-sim \
19 --enable-eap-sim-file \
20 --enable-eap-md5 \
21 --enable-md4 \
22 --enable-eap-mschapv2 \
23 --enable-eap-identity \
24 --enable-eap-radius \
25 --enable-eap-dynamic \
26 --enable-eap-tls \
27 --enable-eap-ttls \
28 --enable-eap-peap \
29 --enable-eap-tnc \
30 --enable-tnc-pdp \
31 --enable-tnc-imc \
32 --enable-tnc-imv \
33 --enable-tnccs-11 \
34 --enable-tnccs-20 \
35 --enable-tnccs-dynamic \
36 --enable-imc-test \
37 --enable-imv-test \
38 --enable-imc-scanner \
39 --enable-imv-scanner \
40 --enable-imc-os \
41 --enable-imv-os \
42 --enable-imc-attestation \
43 --enable-imv-attestation \
44 --enable-sql \
45 --enable-sqlite \
46 --enable-mediation \
47 --enable-openssl \
48 --enable-blowfish \
49 --enable-kernel-pfkey \
50 --enable-integrity-test \
51 --enable-leak-detective \
52 --enable-load-tester \
53 --enable-test-vectors \
54 --enable-gcrypt \
55 --enable-socket-default \
56 --enable-socket-dynamic \
57 --enable-dhcp \
58 --enable-farp \
59 --enable-addrblock \
60 --enable-ctr \
61 --enable-ccm \
62 --enable-gcm \
63 --enable-cmac \
64 --enable-ha \
65 --enable-af-alg \
66 --enable-whitelist \
67 --enable-xauth-generic \
68 --enable-xauth-eap \
69 --enable-pkcs8 \
70 --enable-unity
71
72 all: install
73
74 $(TAR):
75 wget $(SRC)
76
77 $(PKG): $(TAR)
78 tar xfj $(TAR)
79
80 configure: $(PKG)
81 cd $(PKG) && ./configure $(CONFIG_OPTS)
82
83 build: configure
84 cd $(PKG) && make -j $(NUM_CPUS)
85
86 install: build
87 cd $(PKG) && make install