libgfshare: simplify cross build

This commit is contained in:
Michael Gehring 2017-10-09 17:03:19 +00:00 committed by lemmi
parent 1a2a284b0a
commit 98841e67aa
2 changed files with 14 additions and 16 deletions

View File

@ -0,0 +1,11 @@
--- Makefile.am.orig 2015-06-01 18:48:30.000000000 +0000
+++ Makefile.am 2017-10-09 16:55:49.722491139 +0000
@@ -19,8 +19,6 @@
include_HEADERS = include/libgfshare.h
$(top_srcdir)/src/libgfshare.c: libgfshare_tables.h
-libgfshare_tables.h: gfshare_maketable$(EXEEXT)
- ./gfshare_maketable$(EXEEXT) > libgfshare_tables.h
# And provide for the pkgconfigness
pkgconfigdir = $(libdir)/pkgconfig

View File

@ -3,7 +3,7 @@ pkgname=libgfshare
version=2.0.0
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config"
hostmakedepends="automake libtool pkg-config"
short_desc="Shamir's secret-sharing method in the Galois Field GF(2**8)"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="MIT"
@ -11,14 +11,8 @@ homepage="https://git.gitano.org.uk/libgfshare.git"
distfiles="http://www.digital-scurf.org/files/libgfshare/libgfshare-${version}.tar.bz2"
checksum=86f602860133c828356b7cf7b8c319ba9b27adf70a624fe32275ba1ed268331f
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" libgfshare-maketable"
fi
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -i -e 's#\.\/gfshare_maketable#gfshare_maketable#' Makefile
fi
pre_configure() {
autoreconf -fi
}
post_install() {
@ -45,10 +39,3 @@ libgfshare-tools_package() {
vmove usr/share/man/man1/gfsplit.1
}
}
libgfshare-maketable_package() {
short_desc+="tables for libgfshare"
pkg_install() {
vbin gfshare_maketable
}
}