summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2008-11-28 19:57:35 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2008-11-28 19:57:35 +0000
commit1fb9b799da05b1ed513d7fb6e5c7fed66e6226b8 (patch)
tree8f564797fa4c8084b89ddbc54b7e7cf5ca4373a2 /media-libs/glpng
parentDelete version which only segfaults with Big Endian. (diff)
downloadgentoo-2-1fb9b799da05b1ed513d7fb6e5c7fed66e6226b8.tar.gz
gentoo-2-1fb9b799da05b1ed513d7fb6e5c7fed66e6226b8.tar.bz2
gentoo-2-1fb9b799da05b1ed513d7fb6e5c7fed66e6226b8.zip
Initial import of glpng. It is needed dep for new version of chromium. Thanks Tupone for pointing out issues.
(Portage version: 2.2_rc16/cvs/Linux 2.6.27-gentoo x86_64)
Diffstat (limited to 'media-libs/glpng')
-rw-r--r--media-libs/glpng/ChangeLog12
-rw-r--r--media-libs/glpng/files/Makefile30
-rw-r--r--media-libs/glpng/glpng-1.45.ebuild34
-rw-r--r--media-libs/glpng/metadata.xml9
4 files changed, 85 insertions, 0 deletions
diff --git a/media-libs/glpng/ChangeLog b/media-libs/glpng/ChangeLog
new file mode 100644
index 000000000000..f85538efad9b
--- /dev/null
+++ b/media-libs/glpng/ChangeLog
@@ -0,0 +1,12 @@
+# 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.1 2008/11/28 19:57:34 scarabeus Exp $
+
+*glpng-1.45 (28 Nov 2008)
+
+ 28 Nov 2008; Tomas Chvatal <scarabeus@gentoo.org> +files/Makefile,
+ +metadata.xml, +glpng-1.45.ebuild:
+ Initial import. This ebuild is added as dep for new chromium. Will be removed
+ when chromium don't need anymore. Report to me if you want to use this in
+ different ebuilds please.
+
diff --git a/media-libs/glpng/files/Makefile b/media-libs/glpng/files/Makefile
new file mode 100644
index 000000000000..872f7a0e3b5e
--- /dev/null
+++ b/media-libs/glpng/files/Makefile
@@ -0,0 +1,30 @@
+# 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?= /
+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.ebuild b/media-libs/glpng/glpng-1.45.ebuild
new file mode 100644
index 000000000000..db14bf735469
--- /dev/null
+++ b/media-libs/glpng/glpng-1.45.ebuild
@@ -0,0 +1,34 @@
+# 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"
+}
diff --git a/media-libs/glpng/metadata.xml b/media-libs/glpng/metadata.xml
new file mode 100644
index 000000000000..7f348ff3e7f7
--- /dev/null
+++ b/media-libs/glpng/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>scarabeus@gentoo.org</email>
+ <name>Tomas Chvatal</name>
+</maintainer>
+<herd>games</herd>
+</pkgmetadata>