# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit multilib DESCRIPTION="External library to compress/decompress S3TC textures" HOMEPAGE="http://people.freedesktop.org/~cbrill/libtxc_dxtn/" SRC_URI="http://cgit.freedesktop.org/~mareko/libtxc_dxtn/snapshot/${P}.tar.bz2" RESTRICT="mirror" LICENSE="BSD" SLOT="0" KEYWORDS="x86 amd64" IUSE="" S=${WORKDIR} src_unpack() { local ABI for ABI in `get_all_abis` ; do mkdir -p "${ABI}" pushd "${ABI}" unpack ${A} popd done } src_compile() { local ABI for ABI in `get_all_abis` ; do emake -C "${ABI}/${P}" || die "emake (ABI=${ABI})" done } src_install() { local ABI for ABI in `get_all_abis` ; do dolib.so "${ABI}/${P}/libtxc_dxtn.so" || die "dolib.so libtxc_dxtn.so (ABI=${ABI})" insinto /usr/include doins "${ABI}/${P}/txc_dxtn.h" done } pkg_postinst() { einfo "\"IP\" issues" einfo "" einfo "\"Depending on where you live, you might need a valid license" einfo "for s3tc in order to be legally allowed to use the external" einfo "library. Redistribution in binary form might also be problematic" einfo "(I certainly don't impose any restrictions on redistribution," einfo " the code itself is all BSD licensed). Ask your lawyer, the " einfo "patent is supposedly held by VIA. It is your responsibility to" einfo "make sure you comply with the laws of your country, not mine!\"" einfo "" einfo "source:" einfo "http://people.freedesktop.org/~cbrill/libtxc_dxtn/" }