libtomcrypt: build with support for gmp and libtommath
Required for usage in dropbear.
This commit is contained in:
parent
03d7875c9d
commit
509aa03145
|
@ -1,9 +1,9 @@
|
||||||
# Template file for 'libtomcrypt'
|
# Template file for 'libtomcrypt'
|
||||||
pkgname=libtomcrypt
|
pkgname=libtomcrypt
|
||||||
version=1.18.2
|
version=1.18.2
|
||||||
revision=1
|
revision=2
|
||||||
patch_args="-Np1"
|
|
||||||
hostmakedepends="libtool"
|
hostmakedepends="libtool"
|
||||||
|
makedepends="gmp-devel libtommath-devel"
|
||||||
short_desc="Fairly comprehensive, modular and portable cryptographic toolkit"
|
short_desc="Fairly comprehensive, modular and portable cryptographic toolkit"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
license="Public domain"
|
license="Public domain"
|
||||||
|
@ -11,6 +11,9 @@ homepage="http://www.libtom.net/?page=features&newsitems=5&whatfile=crypt"
|
||||||
distfiles="https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz"
|
distfiles="https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz"
|
||||||
checksum=96ad4c3b8336050993c5bc2cf6c057484f2b0f9f763448151567fbab5e767b84
|
checksum=96ad4c3b8336050993c5bc2cf6c057484f2b0f9f763448151567fbab5e767b84
|
||||||
|
|
||||||
|
patch_args="-Np1"
|
||||||
|
CFLAGS="-DGMP_DESC -DLTM_DESC -DUSE_LTM"
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
sed -e "s,@@CC@@,$CC,g;s,\$(CC),$CC,g" -i makefile.shared
|
sed -e "s,@@CC@@,$CC,g;s,\$(CC),$CC,g" -i makefile.shared
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
@ -18,7 +21,7 @@ do_build() {
|
||||||
sed -e "s,CCLD=.*,CCLD=$CC,g;s,CC=.*,CC=$CC,g" -i libtool
|
sed -e "s,CCLD=.*,CCLD=$CC,g;s,CC=.*,CC=$CC,g" -i libtool
|
||||||
sed -e 's,libtool,./libtool,g' -i makefile.shared
|
sed -e 's,libtool,./libtool,g' -i makefile.shared
|
||||||
fi
|
fi
|
||||||
make RANLIB=$RANLIB -f makefile.shared ${makejobs}
|
make EXTRALIBS="-lgmp -ltommath" RANLIB=$RANLIB -f makefile.shared ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
|
@ -33,7 +36,7 @@ do_install() {
|
||||||
}
|
}
|
||||||
|
|
||||||
libtomcrypt-devel_package() {
|
libtomcrypt-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="gmp-devel libtommath-devel ${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
|
Loading…
Reference in New Issue