kind: manual
depends:
- gnu-toolchain.bst
- core/perl.bst
sources:
- kind: git
  url: upstream:openssl-new
  track: OpenSSL_1_0_2k
  ref: 081314d07705aa58912845c213a48414d8f616a9
variables:
  notparallel: true
config:
  configure-commands:
  - sed -i -e 's,^LIBNAMES=\\(.*\\) padlock \\(.*\\),LIBNAMES=\\1 \\2,g' engines/Makefile
  - |
    if [ "$(uname -m)" = "ppc64" ]; then
        sh ./Configure linux-ppc64 --openssldir=/etc/ssl --prefix="%{prefix}" --libdir=lib shared
    else
        ./config --openssldir=/etc/ssl --prefix="%{prefix}" --libdir=lib shared
    fi
  build-commands:
  - make
  install-commands:
  - make INSTALL_PREFIX="%{install-root}" install_sw
