1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = System/Libraries
11 url = http://polarssl.org/
13 summary = Light-weight cryptographic and SSL/TLS library.
16 PolarSSL is a light-weight open source cryptographic and SSL/TLS
17 library written in C. PolarSSL makes it easy for developers to include
18 cryptographic and SSL/TLS capabilities in their (embedded)
19 applications with as little hassle as possible.
23 sources = %{thisapp}-gpl.tgz
24 source_dl = http://polarssl.org/code/releases/
31 if "%{DISTRO_ARCH}" == "armv7hl"
33 sed -e "s/define POLARSSL_HAVE_ASM/undef POLARSSL_HAVE_ASM/" \
34 -i include/polarssl/config.h
40 make SHARED=1 -C library %{PARALLELISMFLAGS}
41 ln -svf libpolarssl.so library/libpolarssl.so.0
44 make -C programs %{PARALLELISMFLAGS}
50 LD_LIBRARY_PATH="../library" ./test/selftest
53 # Don't run the regular test suite because it cannot
55 #LD_LIBRARY_PATH="../library" make check
60 mkdir -pv %{BUILDROOT}%{includedir}/polarssl
61 install -v -m 644 include/polarssl/*.h \
62 %{BUILDROOT}%{includedir}/polarssl
65 mkdir -pv %{BUILDROOT}%{libdir}
66 install -v -m 755 library/libpolarssl.so \
67 %{BUILDROOT}%{libdir}/libpolarssl.so.0
68 ln -svf libpolarssl.so.0 %{BUILDROOT}%{libdir}/libpolarssl.so
71 mkdir -pv %{BUILDROOT}%{bindir}
72 for p in programs/*/*; do
73 if [ -x "${p}" -a ! -d "${p}" ]; then
74 f="polarssl_$(basename ${p})"
75 install -m 755 ${p} %{BUILDROOT}%{bindir}/${f} || exit 1
85 summary = PolarSSL utilities.
86 description = %{summary}
97 package %{name}-debuginfo