diff options
author | Christian Parpart <trapni@gentoo.org> | 2008-05-22 10:10:25 +0000 |
---|---|---|
committer | Christian Parpart <trapni@gentoo.org> | 2008-05-22 10:10:25 +0000 |
commit | c772d775e3db4b2329670f73787e22a0a5571911 (patch) | |
tree | c9ccdad40b2ca680ff64246befb005d9636ba74d /media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r1.ebuild | |
parent | Stable on ppc64 (diff) | |
download | historical-c772d775e3db4b2329670f73787e22a0a5571911.tar.gz historical-c772d775e3db4b2329670f73787e22a0a5571911.tar.bz2 historical-c772d775e3db4b2329670f73787e22a0a5571911.zip |
play nice with FEATURE=ccache users, see bug 206822
Package-Manager: portage-2.1.5_rc6
Diffstat (limited to 'media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r1.ebuild')
-rw-r--r-- | media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r1.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r1.ebuild b/media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r1.ebuild new file mode 100644 index 000000000000..cb0975a5ce7c --- /dev/null +++ b/media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r1.ebuild,v 1.1 2008/05/22 10:10:25 trapni Exp $ + +inherit multilib flag-o-matic + +DESCRIPTION="Captury Framework Library" +HOMEPAGE="http://rm-rf.in/projects/captury/" +SRC_URI="http://upstream.rm-rf.in./captury/captury-${PV}.tar.bz2" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug multilib" + +RDEPEND=">=media-libs/capseo-0.3.0_pre200712251 + x11-libs/libX11 + x11-libs/libXfixes + virtual/opengl + amd64? ( multilib? ( + app-emulation/emul-linux-x86-xlibs + app-emulation/emul-linux-x86-medialibs + ) )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +EMULTILIB_PKG="true" + +S="${WORKDIR}/captury-${PV}/${PN}" + +setup_env() { + LD_LIBRARY_PATH= + LDFLAGS= + + # keep backwards compatibility as long as I *have* to. + if use amd64 && [[ ${ABI} = "x86" ]]; then + if has_version '<app-emulation/emul-linux-x86-xlibs-7.0-r8'; then + LDFLAGS="-L/emul/linux/x86/usr/lib" + LD_LIBRARY_PATH="/emul/linux/x86/usr/lib" + fi + fi + + export LDFLAGS + export LD_LIBRARY_PATH + + # workaround for users having FEATURES=ccache set, as ccache doesn't, play + # nice to multilib builds (see bug 206822) + filter-flags -DABI=* + append-flags -DABI=${ABI} +} + +src_compile() { + if [[ -z ${OABI} ]] && has_multilib_profile; then + use debug && append-flags -O0 -g3 + use debug || append-flags -DNDEBUG=1 + + einfo "Building multilib ${PN} for ABIs: $(get_install_abis)" + OABI=${ABI} + for ABI in $(get_install_abis); do + export ABI=${ABI} + src_compile + done + ABI=${OABI} + return + fi + + cd "${S}" + + if [[ ! -f configure ]]; then + ./autogen.sh || die "autogen.sh failed" + fi + + ABI=${ABI:-default} + + setup_env + + mkdir abi-${ABI} + cd abi-${ABI} + + ../configure \ + --prefix="/usr" \ + --host="$(get_abi_CHOST ${ABI})" \ + --libdir="/usr/$(get_libdir)" \ + || die "./configure for ABI ${ABI} failed" + + emake || die "make for ABI ${ABI} failed" +} + +src_install() { + for ABI in $(get_install_abis); do + make -C abi-${ABI} install DESTDIR="${D}" || die "make install for ABI ${ABI} failed." + done + + dodoc AUTHORS ChangeLog* NEWS README* TODO +} + +# vim:ai:noet:ts=4:nowrap |