summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2008-12-02 13:54:49 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2008-12-02 13:54:49 +0000
commit2f4019ad937318f74bb6ddca4310edd08dcfb1d9 (patch)
treeddcdafd9ab573e8a07cb7ee9397c19c55d99b784
parentVersion bump. (diff)
downloadgentoo-2-2f4019ad937318f74bb6ddca4310edd08dcfb1d9.tar.gz
gentoo-2-2f4019ad937318f74bb6ddca4310edd08dcfb1d9.tar.bz2
gentoo-2-2f4019ad937318f74bb6ddca4310edd08dcfb1d9.zip
Use own created cmakescript instead of patching up Makefile.
Get rid of problematic one. Add ppc keyword. Fixes bug #249312 and bug #249567. (Portage version: 2.2_rc16/cvs/Linux 2.6.27-gentoo x86_64)
-rw-r--r--media-libs/glpng/ChangeLog9
-rw-r--r--media-libs/glpng/files/Makefile31
-rw-r--r--media-libs/glpng/glpng-1.45-r1.ebuild18
-rw-r--r--media-libs/glpng/glpng-1.45.ebuild34
4 files changed, 26 insertions, 66 deletions
diff --git a/media-libs/glpng/ChangeLog b/media-libs/glpng/ChangeLog
index 7617b31c2428..4f1fdc22364d 100644
--- a/media-libs/glpng/ChangeLog
+++ b/media-libs/glpng/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/glpng
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/glpng/ChangeLog,v 1.2 2008/12/02 01:30:21 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/glpng/ChangeLog,v 1.3 2008/12/02 13:54:49 scarabeus Exp $
+
+*glpng-1.45-r1 (02 Dec 2008)
+
+ 02 Dec 2008; Tomas Chvatal <scarabeus@gentoo.org> -files/Makefile,
+ -glpng-1.45.ebuild, +glpng-1.45-r1.ebuild:
+ Revision bump. Use own created cmakescript instead of patching up
+ Makefile. Get rid of problematic one. Add ppc keyword.
02 Dec 2008; Tomas Chvatal <scarabeus@gentoo.org> files/Makefile:
Update Makefile and make default LDFLAGS in it.
diff --git a/media-libs/glpng/files/Makefile b/media-libs/glpng/files/Makefile
deleted file mode 100644
index 7bd7d6719668..000000000000
--- a/media-libs/glpng/files/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
-# New ports collection makefile for: glpng
-# Date created: 06 Mar 2006
-# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
-#
-# $FreeBSD: ports/graphics/glpng/Makefile,v 1.6 2008/06/19 17:28:19 amdmi3 Exp $
-#
-
-LIB_DEPENDS= /usr/lib/libpng.so
-
-AR?= /usr/bin/ar
-LN?= /bin/ln
-INSTALL_DATA?= /bin/cp
-MKDIR?= /bin/mkdir
-DESTDIR?= /
-LDFLAGS?= -Wl
-PREFIX= ${DESTDIR}/usr
-WRKSRC= /src
-LOCALBASE= ./
-LD = /usr/bin/ld
-all:
- ${CC} ${CFLAGS} -fPIC -I${LOCALBASE}/include -c -o ${WRKSRC}/libglpng.o ${LDFLAGS} ${WRKSRC}/glpng.c
- ${CC} ${CFLAGS} -L${LOCALBASE}/lib -shared -soname -lGL -lpng -lz -lm -o ${WRKSRC}/libglpng.so.1 ${LDFLAGS},-soname=libglpng.so.1 ${WRKSRC}/libglpng.o
- ${AR} cqs ${WRKSRC}/libglpng.a ${WRKSRC}/libglpng.o
-
-install:
- ${MKDIR} -p ${PREFIX}/lib
- ${INSTALL_DATA} ${WRKSRC}/libglpng.so.1 ${PREFIX}/lib
- ${INSTALL_DATA} ${WRKSRC}/libglpng.a ${PREFIX}/lib
- ${LN} -sf libglpng.so.1 ${PREFIX}/lib/libglpng.so
- ${MKDIR} -p ${PREFIX}/include/GL/
- ${INSTALL_DATA} include/GL/glpng.h ${PREFIX}/include/GL/
diff --git a/media-libs/glpng/glpng-1.45-r1.ebuild b/media-libs/glpng/glpng-1.45-r1.ebuild
new file mode 100644
index 000000000000..46872506299e
--- /dev/null
+++ b/media-libs/glpng/glpng-1.45-r1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/glpng/glpng-1.45-r1.ebuild,v 1.1 2008/12/02 13:54:49 scarabeus Exp $
+
+inherit cmake-utils
+
+DESCRIPTION="An OpenGL png image library"
+HOMEPAGE="http://www.fifi.org/doc/libglpng-dev/glpng.html"
+SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.bz2"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ media-libs/libpng
+ sys-libs/zlib"
diff --git a/media-libs/glpng/glpng-1.45.ebuild b/media-libs/glpng/glpng-1.45.ebuild
deleted file mode 100644
index db14bf735469..000000000000
--- a/media-libs/glpng/glpng-1.45.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/glpng/glpng-1.45.ebuild,v 1.1 2008/11/28 19:57:34 scarabeus Exp $
-
-inherit eutils
-
-DESCRIPTION="An OpenGL png image library"
-HOMEPAGE="http://www.fifi.org/doc/libglpng-dev/glpng.html"
-SRC_URI="http://www.amdmi3.ru/distfiles/${PN}.zip"
-
-LICENSE="as-is"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND="virtual/opengl
- media-libs/libpng"
-
-S="${WORKDIR}"
-
-src_unpack() {
- unpack ${A}
- cp "${FILESDIR}"/Makefile "${S}"/Makefile
- sed -i \
- -e "s:\"png/png.h\":<png.h>:" \
- "${S}"/src/glpng.c || die "sed glpng.c failed"
- sed -i \
- -e "s:/src:${S}/src:" \
- "${S}"/Makefile || die "sed Makefile failed"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
-}