mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
botan: enable cross builds
This commit is contained in:
parent
2c22ee5dd2
commit
fbb04d7764
1 changed files with 19 additions and 4 deletions
|
@ -1,9 +1,8 @@
|
||||||
# Template file for 'botan'
|
# Template file for 'botan'
|
||||||
pkgname=botan
|
pkgname=botan
|
||||||
version=1.10.14
|
version=1.10.14
|
||||||
revision=1
|
revision=2
|
||||||
nocross=yes
|
wrksrc="${pkgname^}-${version}"
|
||||||
wrksrc="Botan-${version}"
|
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="doxygen epstopdf python"
|
hostmakedepends="doxygen epstopdf python"
|
||||||
makedepends="libressl-devel bzip2-devel zlib-devel"
|
makedepends="libressl-devel bzip2-devel zlib-devel"
|
||||||
|
@ -15,9 +14,25 @@ distfiles="http://botan.randombit.net/releases/Botan-${version}.tgz"
|
||||||
checksum=10ed0b394db165733ac9557d8656356b7e9744d38c61c2b9c44cba6d84ff4c1c
|
checksum=10ed0b394db165733ac9557d8656356b7e9744d38c61c2b9c44cba6d84ff4c1c
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
local _args
|
local _args _arch _cpu
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
i686*)
|
||||||
|
_cpu="i686"; _arch="x86" ;;
|
||||||
|
x86_64*)
|
||||||
|
_cpu="x86_64"; _arch="x86" ;;
|
||||||
|
armv5*)
|
||||||
|
_cpu="armv5"; _arch="arm" ;;
|
||||||
|
armv6*)
|
||||||
|
_cpu="armv6"; _arch="arm" ;;
|
||||||
|
armv7*)
|
||||||
|
_cpu="armv7"; _arch="arm" ;;
|
||||||
|
aarch64*)
|
||||||
|
_cpu="armv8-a"; _arch="arm64" ;;
|
||||||
|
esac
|
||||||
_args="--prefix=/usr"
|
_args="--prefix=/usr"
|
||||||
_args+=" --cc=gcc"
|
_args+=" --cc=gcc"
|
||||||
|
_args+=" --cc-bin=$CXX"
|
||||||
|
_args+=" --cpu=$_cpu"
|
||||||
_args+=" --with-doxygen"
|
_args+=" --with-doxygen"
|
||||||
_args+=" --with-openssl"
|
_args+=" --with-openssl"
|
||||||
_args+=" --with-bzip2"
|
_args+=" --with-bzip2"
|
||||||
|
|
Loading…
Add table
Reference in a new issue