wok-next annotate openssl/receipt @ rev 16105
ARM: mpd add support for ogg files
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 18 22:43:54 2014 +0100 (2014-03-18) |
parents | 6c3718ca17b6 |
children | d753d013d8bc |
rev | line source |
---|---|
pankso@28 | 1 # SliTaz package receipt. |
pankso@28 | 2 |
pankso@28 | 3 PACKAGE="openssl" |
pankso@15969 | 4 VERSION="1.0.1f" |
pankso@209 | 5 CATEGORY="security" |
pankso@28 | 6 SHORT_DESC="Open source Secure Sockets Layer." |
pascal@62 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15472 | 8 LICENSE="BSD" |
pankso@28 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@28 | 10 WEB_SITE="http://www.openssl.org/" |
pankso@28 | 11 WGET_URL="http://www.openssl.org/source/$TARBALL" |
pascal@15472 | 12 TAGS="ssl security" |
pankso@15969 | 13 HOST_ARCH="i486 arm" |
pascal@15472 | 14 |
pankso@4332 | 15 DEPENDS="libcrypto libssl" |
slaxemulator@6390 | 16 BUILD_DEPENDS="perl zlib-dev" |
pankso@28 | 17 |
pankso@15969 | 18 # Perl is installed in cross env. |
pankso@15969 | 19 case "$ARCH" in |
pankso@15969 | 20 arm) BUILD_DEPENDS="" ;; |
pankso@15969 | 21 esac |
pankso@15969 | 22 |
pankso@28 | 23 # Rules to configure and make the package. |
pankso@28 | 24 compile_rules() |
pankso@28 | 25 { |
gokhlayeh@7705 | 26 # MAKEFLAGS make openssl build fail. |
gokhlayeh@7705 | 27 unset MAKEFLAGS |
slaxemulator@6192 | 28 |
gokhlayeh@7705 | 29 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be |
gokhlayeh@7705 | 30 # marked as not requiring an executable stack (compatibility improvement). |
pankso@15969 | 31 case "$ARCH" in |
pankso@15969 | 32 arm) |
pankso@15969 | 33 # BUG: shared libs are not built |
pankso@15969 | 34 ./Configure --prefix=/usr --openssldir=/etc/ssl \ |
pankso@15969 | 35 shared zlib enable-md2 -Wa,--noexecstack \ |
pankso@15969 | 36 linux-armv4 && |
pankso@15969 | 37 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile && |
pankso@15969 | 38 make \ |
pankso@15969 | 39 CC=${HOST_SYSTEM}-gcc \ |
pankso@15969 | 40 AR="${HOST_SYSTEM}-ar r" \ |
pankso@15969 | 41 RANLIB=${HOST_SYSTEM}-ranlib ;; |
pankso@15969 | 42 i486) |
pankso@15969 | 43 ./config --prefix=/usr --openssldir=/etc/ssl shared zlib \ |
pankso@15969 | 44 enable-md2 -Wa,--noexecstack && |
pankso@15969 | 45 sed -i 's/\(basename .*\)`/\1 || true `/' Makefile && |
pankso@15969 | 46 make ;; |
pankso@15969 | 47 esac && |
pankso@15969 | 48 # Install |
pankso@15969 | 49 make INSTALL_PREFIX=$DESTDIR MANDIR=/usr/share/man install |
pankso@28 | 50 } |
pankso@28 | 51 |
pankso@28 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@28 | 53 genpkg_rules() |
pankso@28 | 54 { |
pankso@15969 | 55 mkdir -p $fs/usr/lib |
pascal@15472 | 56 cp -a $install/etc $fs |
pascal@15472 | 57 cp -a $install/usr/bin $fs/usr |
pankso@15969 | 58 cp -a $install/usr/lib/engines $fs/usr/lib |
pankso@28 | 59 } |
pankso@15969 | 60 |
pankso@15969 | 61 testsuite() |
pankso@15969 | 62 { |
pankso@15969 | 63 readelf -h $install/usr/bin/openssl |
pankso@15969 | 64 } |