| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libtxc_dxtn/libtxc_dxtn-1.0.1.ebuild,v 1.8 2012/08/13 16:43:27 mattst88 Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools-utils multilib
|
| 8 |
|
| 9 |
DESCRIPTION="Helper library for S3TC texture (de)compression"
|
| 10 |
HOMEPAGE="http://cgit.freedesktop.org/~mareko/libtxc_dxtn/"
|
| 11 |
SRC_URI="http://people.freedesktop.org/~cbrill/${PN}/${P}.tar.bz2"
|
| 12 |
|
| 13 |
LICENSE="MIT"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="amd64 ~ppc ~ppc64 x86"
|
| 16 |
IUSE="multilib"
|
| 17 |
|
| 18 |
RDEPEND="media-libs/mesa"
|
| 19 |
DEPEND="${RDEPEND}"
|
| 20 |
|
| 21 |
RESTRICT="bindist"
|
| 22 |
|
| 23 |
foreachabi() {
|
| 24 |
if use multilib; then
|
| 25 |
local ABI
|
| 26 |
for ABI in $(get_all_abis); do
|
| 27 |
multilib_toolchain_setup ${ABI}
|
| 28 |
AUTOTOOLS_BUILD_DIR=${WORKDIR}/${ABI} "${@}"
|
| 29 |
done
|
| 30 |
else
|
| 31 |
"${@}"
|
| 32 |
fi
|
| 33 |
}
|
| 34 |
|
| 35 |
src_configure() {
|
| 36 |
foreachabi autotools-utils_src_configure
|
| 37 |
}
|
| 38 |
|
| 39 |
src_compile() {
|
| 40 |
foreachabi autotools-utils_src_compile
|
| 41 |
}
|
| 42 |
|
| 43 |
src_install() {
|
| 44 |
foreachabi autotools-utils_src_install
|
| 45 |
find "${ED}" -name '*.la' -exec rm -f {} +
|
| 46 |
}
|
| 47 |
|
| 48 |
src_test() {
|
| 49 |
:;
|
| 50 |
}
|
| 51 |
|
| 52 |
pkg_postinst() {
|
| 53 |
ewarn "Depending on where you live, you might need a valid license for s3tc"
|
| 54 |
ewarn "in order to be legally allowed to use the external library."
|
| 55 |
ewarn "Redistribution in binary form might also be problematic."
|
| 56 |
ewarn
|
| 57 |
ewarn "You have been warned. Have a nice day."
|
| 58 |
}
|