2 DESCRIPTION = "Secure Socket Layer (SSL) binary and related cryptographic tools."
3 HOMEPAGE = "http://www.openssl.org/"
6 SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz"
7 S = "${WORKDIR}/openssl-${PV}"
10 export CFLAG = "-fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIO -Wall ${FULL_OPTIMIZATION}"
12 # -02 does not work on mipsel: ssh hangs when it tries to read /dev/urandom
13 export CFLAG_mtx-1 := "${@'${CFLAG}'.replace('-O2', '')}"
15 export DIRS = "crypto ssl apps"
16 export EX_LIBS = "-lgcc -ldl -L${STAGING_LIBDIR}"
17 export AS = "${CC} -c"
19 PACKAGES =+ "libcrypto libssl"
20 FILES_libcrypto = "${libdir}/libcrypto.so*"
21 FILES_libssl = "${libdir}/libssl.so*"
25 perl perlpath.pl ${bindir}
27 ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/
29 # endianness fun.. whee
31 if test "x$ac_cv_c_bigendian" = "xyes"; then
32 CFLAG="${CFLAG} -DB_ENDIAN"
33 elif test "x$ac_cv_c_littleendian" = "xyes"; then
34 CFLAG="${CFLAG} -DL_ENDIAN"
35 elif test "x$ac_cv_c_bigendian" = "xno" && test "x$ac_cv_c_littleendian" = "xno"; then
36 # no idea what to do with this...
39 CFLAG="${CFLAG} -DL_ENDIAN"
43 if [ "x$os" = "xlinux-uclibc" ]; then
46 target="$os-${HOST_ARCH}"
52 target=linux-elf-armeb
64 perl ./Configure shared --prefix=${prefix} --openssldir=${libdir}/ssl $target
69 cp --dereference -R include/openssl ${STAGING_INCDIR}/
70 oe_libinstall -a -so libcrypto ${STAGING_LIBDIR}
71 oe_libinstall -a -so libssl ${STAGING_LIBDIR}
75 install -m 0755 -d ${D}${libdir}/pkgconfig
76 oe_runmake INSTALL_PREFIX="${D}" install
77 chmod 644 ${D}${libdir}/pkgconfig/openssl.pc
78 oe_libinstall -so libcrypto ${D}${libdir}
79 oe_libinstall -so libssl ${D}${libdir}