summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/gliv/ChangeLog8
-rw-r--r--media-gfx/gliv/files/gliv-1.9.6-as-needed.patch99
-rw-r--r--media-gfx/gliv/gliv-1.9.6.ebuild16
3 files changed, 117 insertions, 6 deletions
diff --git a/media-gfx/gliv/ChangeLog b/media-gfx/gliv/ChangeLog
index 1ebf4a16f808..9bdc81ee69bb 100644
--- a/media-gfx/gliv/ChangeLog
+++ b/media-gfx/gliv/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-gfx/gliv
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gliv/ChangeLog,v 1.31 2009/11/25 22:18:55 maekke Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gliv/ChangeLog,v 1.32 2010/01/09 17:44:15 maekke Exp $
+
+ 09 Jan 2010; Markus Meier <maekke@gentoo.org> gliv-1.9.6.ebuild,
+ +files/gliv-1.9.6-as-needed.patch:
+ fix building with forced --as-needed by Kacper Kowalik in bug #299464
25 Nov 2009; Markus Meier <maekke@gentoo.org> gliv-1.9.6.ebuild:
amd64 stable, bug #286403
diff --git a/media-gfx/gliv/files/gliv-1.9.6-as-needed.patch b/media-gfx/gliv/files/gliv-1.9.6-as-needed.patch
new file mode 100644
index 000000000000..3128b99e4435
--- /dev/null
+++ b/media-gfx/gliv/files/gliv-1.9.6-as-needed.patch
@@ -0,0 +1,99 @@
+--- gliv-1.9.6.orig/configure.ac 2005-09-21 23:05:57.000000000 +0200
++++ gliv-1.9.6/configure.ac 2010-01-03 15:51:41.464539460 +0100
+@@ -16,18 +16,17 @@
+ # Checks for programs.
+ AC_PROG_CC
+ AC_PROG_RANLIB
+-
++AC_USE_SYSTEM_EXTENSIONS
+
+ # Default CFLAGS.
+-if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
+- CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
+-fi
+-CFLAGS="$CFLAGS -I${srcdir}/../lib"
++#if test "x$GCC" = "xyes" && test "$DEFAULT_CFLAGS" = "yes"; then
++# CFLAGS="-Wall -O2 -fomit-frame-pointer -ffast-math"
++#fi
++#CFLAGS="$CFLAGS -I${srcdir}/../lib"
+
+ # Checks for LFS flags, we may not handle big files, but it doesn't hurt.
+ AC_SYS_LARGEFILE
+
+-
+ AC_DEFUN([CHECK_MATH],
+ [OLD_CFLAGS="$CFLAGS"]
+ [CFLAGS="$CFLAGS -w"]
+@@ -127,35 +126,22 @@
+
+ # Checks for X.
+ AC_PATH_XTRA
+-CFLAGS="$X_CFLAGS $CFLAGS"
+-LDFLAGS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS $LDFLAGS"
+
+ # Checks for GtkGLExt.
+ PKG_CHECK_MODULES(GTKGLEXT, [gtkglext-1.0 >= 0.7.0])
+-CFLAGS="$GTKGLEXT_CFLAGS $CFLAGS"
+-LDFLAGS="$GTKGLEXT_LIBS $LDFLAGS"
+ GTKGL_VERSION="$($PKG_CONFIG --modversion gtkglext-1.0)"
+
+ # Checks for OpenGL.
+-AC_TRY_LINK([#include "GL/gl.h"],
+- [glBegin(GL_QUADS);],
+- [ogl="yes"],
+- [ogl="no"])
+-
++AC_SEARCH_LIBS([glBegin],[GL],[ogl="yes"],[ogl="no"],)
+ if test "x$ogl" = "xno"; then
+ AC_MSG_NOTICE([maybe libGL requires libpthread...])
+- OLD_LDFLAGS="$LDFLAGS"
+- LDFLAGS="$LDFLAGS -lpthread"
+- AC_TRY_LINK([#include "GL/gl.h"],
+- [glBegin(GL_QUADS);],
+- [],
+- AC_MSG_ERROR([cannot use -lGL]))
++ AC_SEARCH_LIBS([glBegin],[GL],[ogl="yes"],[ogl="no"],[-lpthread])
+ fi
+
+ # Checks for gtk.
+ AM_PATH_GTK_2_0([2.6.0], [
+ CFLAGS="$GTK_CFLAGS $CFLAGS"
+- LDFLAGS="$GTK_LIBS $LDFLAGS"
++ LIBS="$LIBS $GTK_LIBS"
+ GTK_VERSION="$($PKG_CONFIG --modversion gtk+-2.0)"
+ ], [exit 1], [gthread])
+
+@@ -163,9 +149,6 @@
+ ALL_LINGUAS=$(echo po/*.po | sed -e 's|\.po||g' -e 's|po/||g')
+ AM_GNU_GETTEXT_VERSION
+ AM_GNU_GETTEXT
+-CFLAGS="$CFLAGS -I../${srcdir}/intl"
+-LIBS="$LIBS $LIBINTL"
+-
+
+ AC_CONFIG_FILES([
+ Makefile
+--- gliv-1.9.6.orig/src/Makefile.am 2006-11-18 15:21:13.000000000 +0100
++++ gliv-1.9.6/src/Makefile.am 2010-01-03 15:48:45.765539472 +0100
+@@ -64,6 +64,9 @@
+ gliv_LDADD = -L../lib -lreplacements
+ endif
+
++gliv_CFLAGS = @GTKGLEXT_CFLAGS@
++gliv_LDADD = @GTKGLEXT_LIBS@
++
+ AM_CPPFLAGS = -I$(srcdir)/include -D_REENTRANT -D_THREAD_SAFE \
+ -DSYSCONFDIR=\"$(sysconfdir)\"
+
+--- gliv-1.9.6.orig/po/Makefile.in.in 2006-11-18 15:21:13.000000000 +0100
++++ gliv-1.9.6/po/Makefile.in.in 2010-01-03 16:05:43.860539403 +0100
+@@ -29,7 +29,7 @@
+
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+-MKINSTALLDIRS = @MKINSTALLDIRS@
++MKINSTALLDIRS = $(top_srcdir)/mkinstalldirs
+ mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
+
+ GMSGFMT = @GMSGFMT@
+
diff --git a/media-gfx/gliv/gliv-1.9.6.ebuild b/media-gfx/gliv/gliv-1.9.6.ebuild
index ea7e95f31084..b1ca37e5ebb0 100644
--- a/media-gfx/gliv/gliv-1.9.6.ebuild
+++ b/media-gfx/gliv/gliv-1.9.6.ebuild
@@ -1,6 +1,10 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gliv/gliv-1.9.6.ebuild,v 1.7 2009/11/25 22:18:55 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gliv/gliv-1.9.6.ebuild,v 1.8 2010/01/09 17:44:15 maekke Exp $
+
+EAPI=2
+
+inherit eutils autotools
DESCRIPTION="An image viewer that uses OpenGL"
HOMEPAGE="http://guichaz.free.fr/gliv/"
@@ -19,11 +23,15 @@ DEPEND="${RDEPEND}
dev-util/pkgconfig
>=sys-devel/bison-1.875"
-src_compile() {
+src_prepare() {
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+ eautoreconf
+}
+
+src_configure() {
econf \
--disable-dependency-tracking \
$(use_enable nls) || die
- emake || die "emake failed"
}
src_install() {