zile: fix cross compiling

This commit is contained in:
Jürgen Buchmüller 2015-08-30 16:13:22 +02:00
parent 06a48361f5
commit 522d8a2766

View file

@ -1,7 +1,7 @@
# Template file for 'zile' # Template file for 'zile'
pkgname=zile pkgname=zile
version=2.4.11 version=2.4.11
revision=3 revision=4
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="help2man pkg-config" hostmakedepends="help2man pkg-config"
makedepends="acl-devel gc-devel ncurses-devel" makedepends="acl-devel gc-devel ncurses-devel"
@ -11,3 +11,11 @@ license="GPL-3"
homepage="http://www.gnu.org/software/zile" homepage="http://www.gnu.org/software/zile"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz" distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=1fd27bbddc61491b1fbb29a345d0d344734aa9e80cfa07b02892eedf831fa9cc checksum=1fd27bbddc61491b1fbb29a345d0d344734aa9e80cfa07b02892eedf831fa9cc
post_configure() {
if [ "$CROSS_BUILD" ]; then
# Can not regenerate zile.1.in because the zile
# executable would be required. Use shipped file.
sed -i Makefile -e 's;\(\$(srcdir)/doc/zile.1.in:\).*;\1;'
fi
}