2010-12-14 00:33:54 +01:00
|
|
|
# Template file for 'enca'
|
|
|
|
pkgname=enca
|
2013-01-07 11:45:58 +01:00
|
|
|
version=1.14
|
2013-06-22 08:33:03 +02:00
|
|
|
revision=3
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-06-22 08:33:03 +02:00
|
|
|
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"
|
2013-01-07 11:45:58 +01:00
|
|
|
short_desc="Extremely Naive Charset Analyser and converter"
|
2010-12-14 00:33:54 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-01-07 11:45:58 +01:00
|
|
|
homepage="http://cihar.com/software/enca/"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://dl.cihar.com/enca/enca-${version}.tar.bz2"
|
|
|
|
checksum=7f33e3953fbbdac8ed144b31bbab1bb3bf181150db6ba4cd812fd958ce5f4b58
|
2013-04-12 10:23:11 +02:00
|
|
|
|
2013-06-22 08:33:03 +02:00
|
|
|
pre_build() {
|
|
|
|
# make_hash must be built for the host.
|
|
|
|
cd tools
|
|
|
|
make CC=cc CFLAGS=-Os
|
|
|
|
}
|
|
|
|
|
2013-04-12 10:23:11 +02:00
|
|
|
libenca_package() {
|
2013-06-22 08:33:03 +02:00
|
|
|
short_desc+=" - shared library"
|
2013-04-12 10:23:11 +02:00
|
|
|
pkg_install() {
|
2013-06-22 08:33:03 +02:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 10:23:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
enca-devel_package() {
|
|
|
|
depends="recode-devel libenca>=${version}"
|
2013-06-22 08:33:03 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 10:23:11 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-06-22 08:33:03 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 10:23:11 +02:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
enca_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|