recode: cross build support.

This commit is contained in:
Juan RP 2013-05-26 17:07:58 +02:00
parent dc217e69c0
commit 4a71ce7a39
1 changed files with 8 additions and 5 deletions

View File

@ -1,10 +1,11 @@
# Template file for 'recode'
pkgname=recode
version=3.6
revision=4
revision=5
patch_args="-Np1"
build_style=gnu-configure
configure_args="--without-included-gettext"
configure_args="--without-included-gettext ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes"
hostmakedepends="automake libtool"
short_desc="Character set conversion utility"
homepage="http://recode.progiciels-bpi.ca/"
@ -24,11 +25,13 @@ pre_configure() {
sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.in
sed -i -e "/^AM_C_PROTOTYPES.*/d" configure.in
sed -i -e "s/ansi2knr//" src/Makefile.am
rm -f acinclude.m4 && autoreconf -fi && libtoolize
rm -f acinclude.m4
autoreconf -fi
libtoolize
}
librecode_package() {
short_desc="${short_desc} - shared library"
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/*.so*"
}
@ -36,7 +39,7 @@ librecode_package() {
recode-devel_package() {
depends="libglib-devel librecode>=${version}"
short_desc="${short_desc} - development files"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"