2016-10-25 17:08:37 +02:00
|
|
|
# Template file for 'botan'
|
|
|
|
pkgname=botan
|
2016-12-01 22:30:06 +01:00
|
|
|
version=1.10.14
|
2016-12-16 01:19:36 +01:00
|
|
|
revision=2
|
|
|
|
wrksrc="${pkgname^}-${version}"
|
2016-10-25 17:08:37 +02:00
|
|
|
build_style=gnu-makefile
|
|
|
|
hostmakedepends="doxygen epstopdf python"
|
|
|
|
makedepends="libressl-devel bzip2-devel zlib-devel"
|
|
|
|
short_desc="Crypto library written in C++"
|
|
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
|
|
license="3-clause-BSD"
|
|
|
|
homepage="http://botan.randombit.net/"
|
|
|
|
distfiles="http://botan.randombit.net/releases/Botan-${version}.tgz"
|
2016-12-01 22:30:06 +01:00
|
|
|
checksum=10ed0b394db165733ac9557d8656356b7e9744d38c61c2b9c44cba6d84ff4c1c
|
2016-10-25 17:08:37 +02:00
|
|
|
|
|
|
|
do_configure() {
|
2016-12-16 01:19:36 +01:00
|
|
|
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
|
2016-10-25 17:08:37 +02:00
|
|
|
_args="--prefix=/usr"
|
|
|
|
_args+=" --cc=gcc"
|
2016-12-16 01:19:36 +01:00
|
|
|
_args+=" --cc-bin=$CXX"
|
|
|
|
_args+=" --cpu=$_cpu"
|
2016-10-25 17:08:37 +02:00
|
|
|
_args+=" --with-doxygen"
|
|
|
|
_args+=" --with-openssl"
|
|
|
|
_args+=" --with-bzip2"
|
|
|
|
_args+=" --with-zlib"
|
|
|
|
_args+=" --enable-modules=cvc"
|
|
|
|
_args+=" --enable-shared"
|
|
|
|
python configure.py ${_args}
|
|
|
|
|
|
|
|
sed -i Makefile \
|
|
|
|
-e"s;^\(CXX.*\)=.*;\1= $CXXFLAGS;" \
|
|
|
|
-e"s;^\(LIB_OPT.*\)=.*;\1= $LDFLAGS;" \
|
|
|
|
-e"s;^\(AR.*\)=.*;\1= $AR;" \
|
|
|
|
-e"s;^\(DESTDIR.*\)=.*;\1= $DESTDIR;" \
|
|
|
|
-e's;$(DESTDIR)/bin;$(DESTDIR)/usr/bin;' \
|
|
|
|
-e's;$(DESTDIR)/lib;$(DESTDIR)/usr/lib;' \
|
|
|
|
-e's;$(DESTDIR)/include;$(DESTDIR)/usr/include;' \
|
|
|
|
-e's;$(DESTDIR)/share;$(DESTDIR)/usr/share;' \
|
|
|
|
-e's;$(AR) $(STATIC_LIB);$(AR) crus $(STATIC_LIB);'
|
|
|
|
}
|
|
|
|
post_install() {
|
|
|
|
vlicense doc/license.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
botan-doc_package() {
|
|
|
|
short_desc+=" - documentation"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
botan-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/botan-config-${version%.*}
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.a
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|