[46613] trunk/dports/graphics

ryandesign at macports.org ryandesign at macports.org
Sun Feb 8 16:29:09 PST 2009


Revision: 46613
          http://trac.macports.org/changeset/46613
Author:   ryandesign at macports.org
Date:     2009-02-08 16:29:07 -0800 (Sun, 08 Feb 2009)
Log Message:
-----------
pure-gl: new port, version 0.4; closes #18416

Modified Paths:
--------------
    trunk/dports/graphics/pure-gl/Portfile
    trunk/dports/graphics/pure-gl/files/patch-Makefile.diff

Added Paths:
-----------
    trunk/dports/graphics/pure-gl/

Modified: trunk/dports/graphics/pure-gl/Portfile
===================================================================
--- trunk/dports/devel/pure-ffi/Portfile	2009-02-07 19:52:07 UTC (rev 46579)
+++ trunk/dports/graphics/pure-gl/Portfile	2009-02-09 00:29:07 UTC (rev 46613)
@@ -2,32 +2,25 @@
 
 PortSystem                      1.0
 
-name                            pure-ffi
+name                            pure-gl
 version                         0.4
-categories                      devel
-platforms                       darwin
+categories                      graphics
+platforms                       macosx
 maintainers                     ryandesign
 use_parallel_build              yes
 homepage                        http://pure-lang.googlecode.com/
 master_sites                    ${homepage}files/
 
-description                     an interface to libffi which enables you to \
-                                call C functions from Pure and vice versa
+description                     an interface to access OpenGL functions from \
+                                Pure
 
-long_description                ${name} provides ${description}. It goes \
-                                beyond Pure's built-in C interface in that \
-                                it also handles C structs and makes Pure \
-                                functions callable from C. Moreover, \
-                                depending on the libffi implementation, it \
-                                may also be possible to call foreign \
-                                languages other than C.
+long_description                ${name} provides ${description}.
 
-checksums                       md5     5673591f98dde98009952165d5e09bc8 \
-                                sha1    e7da03ea7693089cb379fca85cd09faa6c2b9cea \
-                                rmd160  845654314d84f0d18b5b12e5dc312ac444c8bd8e
+checksums                       md5     000b76512f4b87a69c0c7066f830caab \
+                                sha1    ec72dfdb07d778604114eee27d92c8dec32ef1ef \
+                                rmd160  fd4b63cfddc4633adec067ae66e0938430e00684
 
-depends_lib-append              path:lib/libpure.dylib:pure \
-                                port:libffi
+depends_lib-append              path:lib/libpure.dylib:pure
 
 patchfiles                      patch-Makefile.diff
 
@@ -51,10 +44,6 @@
     copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
 }
 
-platform darwin {
-    configure.cflags-append     -fno-common
-}
-
 livecheck.check                 regex
 livecheck.url                   http://code.google.com/p/pure-lang/downloads/list
 livecheck.regex                 ${name}-(\[0-9.\]+)\\.tar

Modified: trunk/dports/graphics/pure-gl/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/pure-ffi/files/patch-Makefile.diff	2009-02-07 19:52:07 UTC (rev 46579)
+++ trunk/dports/graphics/pure-gl/files/patch-Makefile.diff	2009-02-09 00:29:07 UTC (rev 46613)
@@ -1,13 +1,23 @@
---- Makefile.orig	2009-02-05 09:06:54.000000000 -0600
-+++ Makefile	2009-02-07 03:22:35.000000000 -0600
-@@ -60,8 +60,8 @@
+--- Makefile.orig	2009-02-05 10:00:20.000000000 -0600
++++ Makefile	2009-02-08 18:16:32.000000000 -0600
+@@ -33,7 +33,7 @@
+ # OSX (untested)
+ DLL = .dylib
+ shared = -dynamiclib
+-LinkGL = -framework OpenGL
++LinkGL = -framework GLUT -framework OpenGL
+ endif
+ ifneq "$(findstring x86_64-,$(host))" ""
+ # 64 bit, needs -fPIC flag
+@@ -64,9 +64,9 @@
  	rm -f *$(DLL) *~ *.a *.o
  
  install:
 -	test -d "$(DESTDIR)$(libdir)/pure" || mkdir -p "$(DESTDIR)$(libdir)/pure"
--	cp ffi.pure ffi$(DLL) "$(DESTDIR)$(libdir)/pure"
 +	test -d "$(DESTDIR)`readlink $(libdir)/pure`" || mkdir -p "$(DESTDIR)`readlink $(libdir)/pure`"
-+	cp ffi.pure ffi$(DLL) "$(DESTDIR)`readlink $(libdir)/pure`"
+ 	cp GL.pure GLU.pure GLUT.pure GL_ARB.pure GL_EXT.pure GL_NV.pure GL_ATI.pure \
+-	   pure-gl$(DLL) "$(DESTDIR)$(libdir)/pure"
++	   pure-gl$(DLL) "$(DESTDIR)`readlink $(libdir)/pure`"
  
  uninstall:
- 	rm -f "$(DESTDIR)$(libdir)/pure/ffi.pure" "$(DESTDIR)$(libdir)/pure/ffi$(DLL)"
+ 	rm -f "$(DESTDIR)$(libdir)/pure/"GL*.pure "$(DESTDIR)$(libdir)/pure/pure-gl$(DLL)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090208/e0874fce/attachment.html>


More information about the macports-changes mailing list