[65830] trunk/dports/graphics
ryandesign at macports.org
ryandesign at macports.org
Thu Apr 1 08:44:57 PDT 2010
Revision: 65830
http://trac.macports.org/changeset/65830
Author: ryandesign at macports.org
Date: 2010-04-01 08:44:56 -0700 (Thu, 01 Apr 2010)
Log Message:
-----------
glpng: new port, version 1.45; needed for chromium-bsu
Added Paths:
-----------
trunk/dports/graphics/glpng/
trunk/dports/graphics/glpng/Portfile
trunk/dports/graphics/glpng/files/
trunk/dports/graphics/glpng/files/Makefile
trunk/dports/graphics/glpng/files/patch-glpng.c.diff
Added: trunk/dports/graphics/glpng/Portfile
===================================================================
--- trunk/dports/graphics/glpng/Portfile (rev 0)
+++ trunk/dports/graphics/glpng/Portfile 2010-04-01 15:44:56 UTC (rev 65830)
@@ -0,0 +1,57 @@
+# $Id$
+
+PortSystem 1.0
+
+name glpng
+version 1.45
+categories graphics
+platforms darwin
+maintainers ryandesign openmaintainer
+master_sites http://mirror.amdmi3.ru/distfiles
+use_zip yes
+distname ${name}
+dist_subdir ${name}/${version}
+extract.mkdir yes
+
+description OpenGL library for loading PNG images
+
+long_description ${name} is a library for OpenGL to load PNG \
+ graphics files as an OpenGL texture
+
+checksums md5 bed59efb699a51e6de7434580df41395 \
+ sha1 9678f9627b011eb5d4ac222673dfdde8539c6409 \
+ rmd160 797a4b68b54b0681e0c84e26a7962b24329eaddd
+
+depends_lib port:libpng \
+ port:mesa
+
+if {${build_arch} != ""} {
+ configure.cflags-append ${configure.cc_archflags}
+ if {[info exists configure.ld_archflags]} {
+ configure.ldflags-append ${configure.ld_archflags}
+ }
+}
+
+build.dir ${worksrcpath}/src
+
+post-extract {
+ reinplace "s|\r||g" ${build.dir}/glpng.c
+ xinstall -m 644 ${filespath}/Makefile ${build.dir}
+}
+
+patch.dir ${build.dir}
+patchfiles patch-glpng.c.diff
+
+use_configure no
+
+build.args AR=/usr/bin/ar \
+ CC=${configure.cc} \
+ CFLAGS="[join ${configure.cflags}]" \
+ CPPFLAGS="[join ${configure.cppflags}]" \
+ LDFLAGS="[join ${configure.ldflags}]" \
+ PREFIX=${prefix}
+
+destroot.args PREFIX=${prefix}
+
+# This software hasn't been updated since 2000
+livecheck.type none
Property changes on: trunk/dports/graphics/glpng/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/glpng/files/Makefile
===================================================================
--- trunk/dports/graphics/glpng/files/Makefile (rev 0)
+++ trunk/dports/graphics/glpng/files/Makefile 2010-04-01 15:44:56 UTC (rev 65830)
@@ -0,0 +1,29 @@
+CC = gcc
+CFLAGS =
+CPPFLAGS =
+DESTDIR =
+INSTALL = install
+INSTALL_DATA = $(INSTALL) -m 644
+LD = $(CC)
+LDFLAGS =
+LN = ln
+MKDIR = mkdir
+PREFIX = /usr/local
+
+all: libglpng.a libglpng.1.dylib
+
+libglpng.o:
+ $(CC) $(CFLAGS) -I../include $(CPPFLAGS) -c -o libglpng.o glpng.c
+
+libglpng.a: libglpng.o
+ $(AR) cqs libglpng.a libglpng.o
+
+libglpng.1.dylib: libglpng.o
+ $(LD) $(LDFLAGS) -dynamiclib -install_name $(PREFIX)/lib/libglpng.1.dylib -lGL -lpng -lz -lm -o libglpng.1.dylib libglpng.o
+
+install: all
+ $(INSTALL_DATA) libglpng.1.dylib $(DESTDIR)$(PREFIX)/lib
+ $(INSTALL_DATA) libglpng.a $(DESTDIR)$(PREFIX)/lib
+ $(LN) -sf libglpng.1.dylib $(DESTDIR)$(PREFIX)/lib/libglpng.dylib
+ $(MKDIR) $(DESTDIR)$(PREFIX)/include/GL/
+ $(INSTALL_DATA) ../include/GL/glpng.h $(DESTDIR)$(PREFIX)/include/GL/
Property changes on: trunk/dports/graphics/glpng/files/Makefile
___________________________________________________________________
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/glpng/files/patch-glpng.c.diff
===================================================================
--- trunk/dports/graphics/glpng/files/patch-glpng.c.diff (rev 0)
+++ trunk/dports/graphics/glpng/files/patch-glpng.c.diff 2010-04-01 15:44:56 UTC (rev 65830)
@@ -0,0 +1,11 @@
+--- glpng.c.orig 2000-07-10 21:27:10.000000000 -0500
++++ glpng.c 2010-03-31 21:49:00.000000000 -0500
+@@ -29,7 +29,7 @@
+ #include <GL/gl.h>
+ #include <stdlib.h>
+ #include <math.h>
+-#include "png/png.h"
++#include <png.h>
+
+ /* Used to decide if GL/gl.h supports the paletted extension */
+ #ifdef GL_COLOR_INDEX1_EXT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100401/a8b21774/attachment.html>
More information about the macports-changes
mailing list