That means that version comparators are not supported anymore in hostmakedepends and makedepends. This will ensure that a pkg is always built with the same build dependencies everywhere, if the srcpkgs tree is uptodate.
40 lines
1 KiB
Bash
40 lines
1 KiB
Bash
# Template file for 'enca'
|
|
pkgname=enca
|
|
version=1.16
|
|
revision=1
|
|
build_style=gnu-configure
|
|
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"
|
|
short_desc="Extremely Naive Charset Analyser and converter"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://cihar.com/software/enca/"
|
|
license="GPL-2"
|
|
distfiles="http://dl.cihar.com/enca/enca-${version}.tar.xz"
|
|
checksum=7c1d785901b19ab78780cd4c87454e69864d45dc99da5164a2c654d5e87be741
|
|
|
|
pre_build() {
|
|
# make_hash must be built for the host.
|
|
cd tools
|
|
make CC=cc CFLAGS=-Os
|
|
}
|
|
|
|
libenca_package() {
|
|
short_desc+=" - shared library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
enca-devel_package() {
|
|
depends="recode-devel libenca>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|