libcaca: cross build support.

This commit is contained in:
Juan RP 2014-02-28 10:00:00 +01:00
parent cc21152ea7
commit 62ec424bfe
1 changed files with 7 additions and 13 deletions

View File

@ -1,30 +1,24 @@
# Template file for 'libcaca' # Template file for 'libcaca'
pkgname=libcaca pkgname=libcaca
version=0.99.beta18 version=0.99.beta18
revision=4 revision=5
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="libtool automake pkg-config"
short_desc="Graphics library that outputs text instead of pixels" short_desc="Graphics library that outputs text instead of pixels"
maintainer="pancake <pancake@nopcode.org>" maintainer="Juan RP <xtraeme@gmail.com>"
makedepends="ncurses-devel" makedepends="ncurses-devel"
homepage="http://caca.zoy.org/wiki/libcaca" homepage="http://caca.zoy.org/wiki/libcaca"
license="WTFPL" license="WTFPL"
distfiles="http://caca.zoy.org/files/libcaca/libcaca-0.99.beta18.tar.gz" distfiles="http://caca.zoy.org/files/libcaca/libcaca-0.99.beta18.tar.gz"
checksum=77ea06633f4a6022dccd4f76c1823e167a40cb05308fc1c7ea0fa1f80f6c33a1 checksum=77ea06633f4a6022dccd4f76c1823e167a40cb05308fc1c7ea0fa1f80f6c33a1
if [ "$CROSS_BUILD" ]; then pre_configure() {
hostmakedepends="libtool automake pkg-config" sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac
pre_configure() { autoreconf -fi
sed -i -e s,AM_CONFIG_HEADER,AC_CONFIG_HEADERS, configure.ac
autoreconf -fi
}
fi
post_install() {
rm -f ${DESTDIR}/usr/lib/*.la
} }
libcaca-devel_package() { libcaca-devel_package() {
depends="libcaca>=${version}" depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files" short_desc+=" - development files"
pkg_install() { pkg_install() {
vmove usr/bin/caca-config vmove usr/bin/caca-config