summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Parpart <trapni@gentoo.org>2008-10-13 19:55:19 +0000
committerChristian Parpart <trapni@gentoo.org>2008-10-13 19:55:19 +0000
commitf14753ad280ef9d2370fe5287d4f370782e7418b (patch)
treeaa4bd56df5fc97d752fe4f9132f4ed6e0e1d92a2 /media-libs/libcaptury
parentFix cairo flipping off gtk. Cairo only needs to be able to flip on gtk if ena... (diff)
downloadgentoo-2-f14753ad280ef9d2370fe5287d4f370782e7418b.tar.gz
gentoo-2-f14753ad280ef9d2370fe5287d4f370782e7418b.tar.bz2
gentoo-2-f14753ad280ef9d2370fe5287d4f370782e7418b.zip
finally fixes #206822
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-rc7 x86_64)
Diffstat (limited to 'media-libs/libcaptury')
-rw-r--r--media-libs/libcaptury/ChangeLog8
-rw-r--r--media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r2.ebuild103
2 files changed, 110 insertions, 1 deletions
diff --git a/media-libs/libcaptury/ChangeLog b/media-libs/libcaptury/ChangeLog
index 94774f12eb95..a8e511e8d241 100644
--- a/media-libs/libcaptury/ChangeLog
+++ b/media-libs/libcaptury/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-libs/libcaptury
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaptury/ChangeLog,v 1.6 2008/05/22 10:10:25 trapni Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libcaptury/ChangeLog,v 1.7 2008/10/13 19:55:19 trapni Exp $
+
+*libcaptury-0.3.0_pre200712251-r2 (13 Oct 2008)
+
+ 13 Oct 2008; Christian Parpart <trapni@gentoo.org>
+ +libcaptury-0.3.0_pre200712251-r2.ebuild:
+ finally fixes #206822
*libcaptury-0.3.0_pre200712251-r1 (22 May 2008)
diff --git a/media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r2.ebuild b/media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r2.ebuild
new file mode 100644
index 000000000000..da0d8f3a916d
--- /dev/null
+++ b/media-libs/libcaptury/libcaptury-0.3.0_pre200712251-r2.ebuild
@@ -0,0 +1,103 @@
+# 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-r2.ebuild,v 1.1 2008/10/13 19:55:19 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}"
+
+pkg_setup() {
+ # try to turn off distcc and ccache for people that have a problem with it
+ export DISTCC_DISABLE=1
+ export CCACHE_DISABLE=1
+}
+
+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