enca: cross build support.

This commit is contained in:
Juan RP 2013-06-22 08:33:03 +02:00
parent e8139c1cea
commit 2c25ef9380
2 changed files with 35 additions and 6 deletions

View File

@ -0,0 +1,19 @@
--- configure.orig 2013-05-26 17:02:23.033985581 +0200
+++ configure 2013-05-26 17:03:03.482704657 +0200
@@ -12896,16 +12896,6 @@ _ACEOF
fi
-
-if test "$prefix" = "NONE"; then
- LDFLAGS="$LDFLAGS -L$ac_default_prefix/lib"
- CPPFLAGS="$CPPFLAGS -I$ac_default_prefix/include"
-else
- LDFLAGS="$LDFLAGS -L$prefix/lib"
- CPPFLAGS="$CPPFLAGS -I$prefix/include"
-fi
-
-
case "$target" in
NONE) yeti_libm_target="$host" ;;
*) yeti_libm_target="$target" ;;

View File

@ -1,10 +1,13 @@
# Template file for 'enca'
pkgname=enca
version=1.14
revision=2
revision=3
build_style=gnu-configure
configure_args="--enable-external --disable-static"
makedepends="pkg-config recode-devel"
configure_args="--enable-external --disable-static ac_cv_file__dev_random=yes
ac_cv_file__dev_urandom=yes ac_cv_file__dev_srandom=no
ac_cv_file__dev_arandom=no am_cv_func_iconv_works=yes libiconv_ok=yes"
hostmakedepends="pkg-config"
makedepends="recode-devel>=3.6_6"
short_desc="Extremely Naive Charset Analyser and converter"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://cihar.com/software/enca/"
@ -12,19 +15,26 @@ license="GPL-2"
distfiles="http://dl.cihar.com/enca/enca-${version}.tar.bz2"
checksum=7f33e3953fbbdac8ed144b31bbab1bb3bf181150db6ba4cd812fd958ce5f4b58
pre_build() {
# make_hash must be built for the host.
cd tools
make CC=cc CFLAGS=-Os
}
libenca_package() {
short_desc="${short_desc} - shared library"
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/*.so*"
vmove "usr/lib/*.so.*"
}
}
enca-devel_package() {
depends="recode-devel libenca>=${version}"
short_desc="${short_desc} - development files"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
}
}