diff options
author | Christian Parpart <trapni@gentoo.org> | 2007-12-25 18:14:37 +0000 |
---|---|---|
committer | Christian Parpart <trapni@gentoo.org> | 2007-12-25 18:14:37 +0000 |
commit | 93b8fb61b4e54f0f2d12ec2f5fc3561b9e8f388b (patch) | |
tree | c4c6feca056cab39cefd0af5ba7877a267891052 | |
parent | new patch to also work with 2.6.23 (diff) | |
download | gentoo-2-93b8fb61b4e54f0f2d12ec2f5fc3561b9e8f388b.tar.gz gentoo-2-93b8fb61b4e54f0f2d12ec2f5fc3561b9e8f388b.tar.bz2 gentoo-2-93b8fb61b4e54f0f2d12ec2f5fc3561b9e8f388b.zip |
initial import
(Portage version: 2.1.4_rc11)
-rw-r--r-- | media-video/captury/ChangeLog | 10 | ||||
-rw-r--r-- | media-video/captury/Manifest | 16 | ||||
-rw-r--r-- | media-video/captury/captury-0.3.0_pre200712251.ebuild | 127 | ||||
-rw-r--r-- | media-video/captury/files/digest-captury-0.3.0_pre200712251 | 3 | ||||
-rw-r--r-- | media-video/captury/metadata.xml | 7 |
5 files changed, 163 insertions, 0 deletions
diff --git a/media-video/captury/ChangeLog b/media-video/captury/ChangeLog new file mode 100644 index 000000000000..050908f32a28 --- /dev/null +++ b/media-video/captury/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-video/captury +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/captury/ChangeLog,v 1.1 2007/12/25 18:14:36 trapni Exp $ + +*captury-0.3.0_pre200712251 (25 Dec 2007) + + 25 Dec 2007; Christian Parpart <trapni@gentoo.org> +metadata.xml, + +captury-0.3.0_pre200712251.ebuild: + initial import + diff --git a/media-video/captury/Manifest b/media-video/captury/Manifest new file mode 100644 index 000000000000..75eab0edd34f --- /dev/null +++ b/media-video/captury/Manifest @@ -0,0 +1,16 @@ +DIST captury-0.3.0_pre200712251.tar.bz2 1256351 RMD160 0527f5f18e84ada5b37941f7f55355c20ef0fc0e SHA1 19227bbd1f4e609f274311be835a4b09ce91a67e SHA256 119499991c8bf68632485adce7bc13ce9b754d8b406862351abe8d92e3eb5fc3 +EBUILD captury-0.3.0_pre200712251.ebuild 3180 RMD160 34e2a85839ab5c96829bd98c030f6844c1fa390c SHA1 0672edcf49f606e66f7709aeff4d1ad2cc2698c2 SHA256 36a4e2a62531c4ab29350004d2cbc1c41f49bb4b5287c36dee31a6842af0e744 +MD5 7c4c6eef681f927fcffb8278d8f2524c captury-0.3.0_pre200712251.ebuild 3180 +RMD160 34e2a85839ab5c96829bd98c030f6844c1fa390c captury-0.3.0_pre200712251.ebuild 3180 +SHA256 36a4e2a62531c4ab29350004d2cbc1c41f49bb4b5287c36dee31a6842af0e744 captury-0.3.0_pre200712251.ebuild 3180 +MISC ChangeLog 287 RMD160 0dafa125f49251ca5ed5ddb23cea3c89cf0934e5 SHA1 4d176cdc396f42b373d8ddfc0d464d20a6fd9c8a SHA256 48046956514a39fd279abf293c32e0738a5074b8ddd6be639a1b9d39027ad268 +MD5 f45e49350281988a29a4419c9027b7ce ChangeLog 287 +RMD160 0dafa125f49251ca5ed5ddb23cea3c89cf0934e5 ChangeLog 287 +SHA256 48046956514a39fd279abf293c32e0738a5074b8ddd6be639a1b9d39027ad268 ChangeLog 287 +MISC metadata.xml 199 RMD160 852e94c35804ed3cf83a7149b577cd41a38e2ea1 SHA1 fda1928420c1ef71f25d78ac4a34e6236d9740fc SHA256 3137765885d09c96954a5018ae5627d0276f743c3d7a1f9cf7f1be517855ac5d +MD5 bff27c36ac89297d86169d3fc2d2ad46 metadata.xml 199 +RMD160 852e94c35804ed3cf83a7149b577cd41a38e2ea1 metadata.xml 199 +SHA256 3137765885d09c96954a5018ae5627d0276f743c3d7a1f9cf7f1be517855ac5d metadata.xml 199 +MD5 c6eeca815123f79070cf97dbf04f3101 files/digest-captury-0.3.0_pre200712251 286 +RMD160 8fddc6571c2a2960e058673a591bcbf66650b55d files/digest-captury-0.3.0_pre200712251 286 +SHA256 e9af5c7836769ab17aa4cf4efc2fdf0035544a9ac3726070d992767e6803dab9 files/digest-captury-0.3.0_pre200712251 286 diff --git a/media-video/captury/captury-0.3.0_pre200712251.ebuild b/media-video/captury/captury-0.3.0_pre200712251.ebuild new file mode 100644 index 000000000000..61b5b8473247 --- /dev/null +++ b/media-video/captury/captury-0.3.0_pre200712251.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/captury/captury-0.3.0_pre200712251.ebuild,v 1.1 2007/12/25 18:14:36 trapni Exp $ + +inherit multilib flag-o-matic eutils + +DESCRIPTION="Captury Tool - captures the screen from your OpenGL games/applications." +HOMEPAGE="http://rm-rf.in/captury/" +SRC_URI="http://upstream.rm-rf.in/captury/captury-${PV}.tar.bz2" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +RDEPEND=">=media-libs/libcaptury-0.3.0_pre200712251 + x11-libs/libX11 + amd64? ( multilib? ( app-emulation/emul-linux-x86-xlibs ) ) + >=media-libs/libpng-1.2.14 + virtual/opengl" + +DEPEND="${RDEPEND} + || ( dev-libs/elfutils + dev-libs/libelf ) + dev-util/pkgconfig" + +EMULTILIB_PKG="true" + +S="${WORKDIR}/captury-${PV}/${PN}" + +pkg_setup() { + useq has_multilib_profile \ + && built_with_use --missing die app-emulation/emul-linux-x86-xlibs opengl +} + +setup_env() { + myconf="" + makeopts="" + + if [[ ${ABI} != ${DEFAULT_ABI} ]]; then + # this is a workaround as Gentoo doesn't ship a 32bit version of libelf.so + myconf="${myconf} --disable-builtin-strip-soname" + makeopts="${makeopts} STRIP_SONAME=$(pwd)/../abi-${DEFAULT_ABI}/src/libGLcaptury/strip-soname" + + # unfortunately, different versions of emul-linux-x86-xlibs do install + # their files into different locations, depending on what version you + # installed. + if [[ -x /emul/linux/x86/usr/lib/libGL.so ]]; then + makeopts="${makeopts} NATIVE_LIBGL=/emul/linux/x86/usr/lib/libGL.so" + else + makeopts="${makeopts} NATIVE_LIBGL=/usr/$(get_libdir)/libGL.so" + fi + if [[ -x /emul/linux/x86/usr/lib/libX11.so ]]; then + makeopts="${makeopts} NATIVE_LIBX11=/emul/linux/x86/usr/lib/libX11.so" + else + makeopts="${makeopts} NATIVE_LIBX11=/usr/$(get_libdir)/libX11.so" + fi + else + makeopts="${makeopts} NATIVE_LIBGL=/usr/$(get_libdir)/libGL.so" + makeopts="${makeopts} NATIVE_LIBX11=/usr/$(get_libdir)/libX11.so" + fi + + export makeopts + export myconf +} + +src_compile() { + if [[ -z ${OABI} ]] && has_multilib_profile; then + use debug && append-flags -O0 -g3 + use debug || append-flags -DNDEBUG=1 + + # fixes missing #define in libGLcaptury.cpp + append-flags -DGLX_GLXEXT_PROTOTYPES + + einfo "Building multilib ${PN} for ABIs: $(get_install_abis)" + OABI=${ABI} + for ABI in $DEFAULT_ABI $(get_install_abis); do + export ABI=${ABI} + src_compile + done + ABI=${OABI} + return + fi + + cd "${S}" + + ABI=${ABI:-default} + + test -d abi-${ABI} && return + + if [[ ! -f configure ]]; then + ./autogen.sh || die "autogen.sh failed" + fi + + mkdir abi-${ABI} + cd abi-${ABI} + + einfo "Compiling for ABI ${ABI} ..." + einfo + + setup_env + + ../configure ${myconf} \ + --prefix="/usr" \ + --host="${CHOST}" \ + --sysconfdir="/etc" \ + --libdir="/usr/$(get_libdir)" \ + || die "./configure for ABI ${ABI} failed" + + einfo "MAKE LINE: emake ${makeopts}" + einfo + emake ${makeopts} || die "make for ABI ${ABI} failed" +} + +src_install() { + for ABI in $(get_install_abis); do + cd "${S}/abi-${ABI}" + setup_env + einfo "make ${makeopts} install DESTDIR=\"${D}\"" + make ${makeopts} install DESTDIR="${D}" || die "make install for ABI ${ABI} failed." + done + + cd "${S}" + + dodoc AUTHORS ChangeLog* NEWS README* TODO +} + +# vim:ai:noet:ts=4:nowrap diff --git a/media-video/captury/files/digest-captury-0.3.0_pre200712251 b/media-video/captury/files/digest-captury-0.3.0_pre200712251 new file mode 100644 index 000000000000..bce9f747eb7a --- /dev/null +++ b/media-video/captury/files/digest-captury-0.3.0_pre200712251 @@ -0,0 +1,3 @@ +MD5 dc68b7105778ff708cf17aadeceb4b7b captury-0.3.0_pre200712251.tar.bz2 1256351 +RMD160 0527f5f18e84ada5b37941f7f55355c20ef0fc0e captury-0.3.0_pre200712251.tar.bz2 1256351 +SHA256 119499991c8bf68632485adce7bc13ce9b754d8b406862351abe8d92e3eb5fc3 captury-0.3.0_pre200712251.tar.bz2 1256351 diff --git a/media-video/captury/metadata.xml b/media-video/captury/metadata.xml new file mode 100644 index 000000000000..7f177456d4ef --- /dev/null +++ b/media-video/captury/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>trapni@gentoo.org</email> +</maintainer> +</pkgmetadata> |