You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

63 lines
2.1 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../openssl/openssl.conf
# Copyright (C) 2007 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
confopt=
if [ "$SDECFG_STATIC" != 1 ] ; then
var_append confopt " " "shared"
else
var_append confopt " " "no-shared"
var_append confopt " " "no-dso"
fi
sysconfdir=$sysconfdir/ssl
# We can't use ./config becouse that would probably add optimize
# options which won't work on our taget system.
case "$arch_machine" in
i?86) trg=linux-elf ;;
x86_64) trg=linux-x86_64 ;;
alpha) trg=linux-alpha-gcc ;;
powerpc) trg=linux-ppc ;;
powerpc64) trg=linux-ppc64 ;;
sparc64) trg=linux64-sparcv9 ;;
sparc*) # v7, v8, v9, ...
trg=linux-$(echo $arch_machine | sed 's/sparc\(v.\).*/sparc\1/' ) ;;
mips) if [ "$arch_bigendian" == "yes" ] ; then
trg="linux-generic32 -DB_ENDIAN";
else
trg="linux-generic32 -DL_ENDIAN";
fi ;;
arm)
trg="linux-generic32 -DL_ENDIAN" ;;
*) abort "Add arch-setting to openssl.conf!" ;;
esac
openssl_premake() {
# well - "resolve" some conflicts ...
rm doc/apps/passwd.pod doc/crypto/buffer.pod doc/crypto/err.pod \
doc/crypto/rand.pod doc/crypto/threads.pod
}
runconf=
hook_add premake 4 "./Configure --prefix=/$prefix --openssldir=$sysconfdir $trg $confopt"
hook_add premake 5 openssl_premake
var_remove_regex makeopt " " "AR=.*"
var_insert makeinstopt " " "MANDIR=$mandir INSTALL_PREFIX=$root"
# recheck when upstream
var_append GCC_WRAPPER_APPEND ' ' "-DLIBDIR=\"$libdir\""
var_append makeinstopt ' ' "LIBDIR=${libdir##*/}"