# ChangeLog for app-misc/glcdprocdriver
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/glcdprocdriver/ChangeLog,v 1.4 2007/04/07 14:16:22 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/glcdprocdriver/ChangeLog,v 1.5 2007/04/07 19:48:27 rbu Exp $
+
+*glcdprocdriver-0.0.3-r2 (07 Apr 2007)
+
+ 07 Apr 2007; Robert Buchholz <rbu@gentoo.org>
+ +files/glcdprocdriver-0.0.3-makefile.patch,
+ +glcdprocdriver-0.0.3-r2.ebuild:
+ Fix as-needed issue wrt bug #173271, thanks tove
07 Apr 2007; Markus Ullmann <jokey@gentoo.org>
glcdprocdriver-0.0.3-r1.ebuild:
+MD5 67d1948efe2f9f15098eab1e261fc797 glcdprocdriver-0.0.3.tar.bz2 17565
RMD160 ef15bdda24d52f2c097968f4ef3a3bea78a87cc5 glcdprocdriver-0.0.3.tar.bz2 17565
SHA256 89c99051e5c3a0724c5ea212079e0571066888c74ebd3fda6befd65f8bec03e6 glcdprocdriver-0.0.3.tar.bz2 17565
--- /dev/null
+MD5 67d1948efe2f9f15098eab1e261fc797 glcdprocdriver-0.0.3.tar.bz2 17565
+RMD160 ef15bdda24d52f2c097968f4ef3a3bea78a87cc5 glcdprocdriver-0.0.3.tar.bz2 17565
+SHA256 89c99051e5c3a0724c5ea212079e0571066888c74ebd3fda6befd65f8bec03e6 glcdprocdriver-0.0.3.tar.bz2 17565
--- /dev/null
+--- ./Makefile 2006-10-05 08:37:03.000000000 +0000
++++ ./Makefile 2007-04-07 19:06:00.000000000 +0000
+@@ -11,6 +11,8 @@
+ PACKAGE = $(ARCHIVE)
+ TMPDIR = /tmp
+
++LIBS=-lglcddrivers -lglcdgraphics
++
+
+ LIBNAME = libglcdprocdriver.so
+ SONAME = $(LIBNAME).1
+@@ -24,6 +26,9 @@
+
+ all: $(LIBNAME)
+
++$(OBJS): %.o: %.c
++ $(CXX) -c -fPIC $(CXXFLAGS) $< -o $@
++
+ $(LIBNAME): $(OBJS)
+ $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -Wl,-soname="$(SONAME)" -o $@
+
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/glcdprocdriver/glcdprocdriver-0.0.3-r2.ebuild,v 1.1 2007/04/07 19:48:27 rbu Exp $
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="Glue library for the glcdlib LCDproc driver based on GraphLCD"
+HOMEPAGE="http://www.muresan.de/graphlcd/lcdproc"
+SRC_URI="http://www.muresan.de/graphlcd/lcdproc/${P}.tar.bz2"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+S=${WORKDIR}/${P}
+
+DEPEND=">=app-misc/graphlcd-base-0.1.3"
+RDEPEND=${DEPEND}
+
+IUSE=""
+
+src_unpack()
+{
+ unpack ${A}
+ cd "${S}"
+
+ # use CFLAGS defined in /etc/make.conf instead of the ones in Make.config
+ sed -i ${S}/Make.config -e "s:FLAGS *=:FLAGS ?=:"
+ sed -i ${S}/Make.config -e "6s:gcc:$(tc-getCC):"
+ sed -i ${S}/Make.config -e "9s:g++:$(tc-getCXX):"
+ epatch "${FILESDIR}/${P}-makefile.patch"
+}
+
+src_install()
+{
+ emake DESTDIR=${D}/usr LIBDIR=${D}/usr/$(get_libdir) install || die "make install failed"
+ dodoc AUTHORS README INSTALL TODO ChangeLog
+}