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
commitbabdcca91f08c91a6c28c36e6efc05c3680a4815 (patch)
tree05264004750c1ac87534cc433463aded1748e040
parentDelete version which only segfaults with Big Endian. (diff)
downloadhistorical-babdcca91f08c91a6c28c36e6efc05c3680a4815.tar.gz
historical-babdcca91f08c91a6c28c36e6efc05c3680a4815.tar.bz2
historical-babdcca91f08c91a6c28c36e6efc05c3680a4815.zip
Initial import of glpng. It is needed dep for new version of chromium. Thanks Tupone for pointing out issues.
Package-Manager: portage-2.2_rc16/cvs/Linux 2.6.27-gentoo x86_64
-rw-r--r--media-libs/glpng/ChangeLog12
-rw-r--r--media-libs/glpng/Manifest5
-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
5 files changed, 90 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/Manifest b/media-libs/glpng/Manifest
new file mode 100644
index 000000000000..fcee96c8ecd2
--- /dev/null
+++ b/media-libs/glpng/Manifest
@@ -0,0 +1,5 @@
+AUX Makefile 993 RMD160 3a0654cf9dcc83deac7c94418f4f60adc4e84b17 SHA1 f590ea7c933b16f508bd2e04861f9838ef2da7c9 SHA256 a08ad9fdc472f79808b170d3eedbe5f3c9591fcfba817371bf4dd1fddeab7868
+DIST glpng.zip 309337 RMD160 797a4b68b54b0681e0c84e26a7962b24329eaddd SHA1 9678f9627b011eb5d4ac222673dfdde8539c6409 SHA256 5f7c785acb00de6f7bcf53b1c2c94ddc07de3ef1b1f85c5bfc6483e89fa22223
+EBUILD glpng-1.45.ebuild 827 RMD160 d98bd3a13f1cfaaa11d830a28b016b3dd853cfe4 SHA1 bb106fbe82d6b0239761a13fc147960a89e9105e SHA256 226ffcf7aee2e959ad99d0130b9a1990eb2e526e8357dcd6c7536f94f0f640b9
+MISC ChangeLog 526 RMD160 0814a0229ea10c9f27065a42b20feb9ffbe92df2 SHA1 9008096831a5041b87d9ed00970145985d4a1e6b SHA256 58be1f11c8c1b40825b0a79ff50b47853a18e9c0b2fe84eb5885ab6857e1bdd4
+MISC metadata.xml 250 RMD160 174bcaa9210d4faefadfb58326df11c787a891ae SHA1 60322be503647adecc133838c3dfef2d1ee169da SHA256 1e21cdb93854b93981b9e2baff7d029e35c4be1a21dc351085d9f51a877fdc9d
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>