[154387] trunk/dports/perl/p5-opengl

devans at macports.org devans at macports.org
Fri Oct 28 23:35:54 CEST 2016


Revision: 154387
          https://trac.macports.org/changeset/154387
Author:   devans at macports.org
Date:     2016-10-28 23:35:54 +0200 (Fri, 28 Oct 2016)
Log Message:
-----------
p5-opengl: update to version 0.70, configure to use GLX interface, dependencies, remove comment.

Modified Paths:
--------------
    trunk/dports/perl/p5-opengl/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-opengl/files/patch-Makefile.PL.diff

Modified: trunk/dports/perl/p5-opengl/Portfile
===================================================================
--- trunk/dports/perl/p5-opengl/Portfile	2016-10-28 21:34:12 UTC (rev 154386)
+++ trunk/dports/perl/p5-opengl/Portfile	2016-10-28 21:35:54 UTC (rev 154387)
@@ -1,17 +1,11 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-# This comment was inserted on 20160713 to force reindexing of
-# this port after the default homepage definition in the perl5
-# PortGroup was changed to use metacpan.org (r150080).
-# Reindexing is necessary for the new definition to take effect.
-# This comment may be removed in subsequent updates of this port.
-
 PortSystem          1.0
 PortGroup           perl5 1.0
 
 perl5.branches      5.22 5.24
-perl5.setup         OpenGL 0.6704
+perl5.setup         OpenGL 0.70
 # can be distributed under the same terms as Perl itself
 # see http://search.cpan.org/dist/OpenGL/OpenGL.pod#AUTHORS
 license             {Artistic-1 GPL}
@@ -27,8 +21,8 @@
 
 platforms           darwin
 
-checksums           rmd160  aa15a63eab5ac1c2114edb4ebbdf95522a7927ca \
-                    sha256  36f266e31d617fa9a1bd8928a7dc3b7c40c1bbbfa64bddefe22300ac2bc6c436
+checksums           rmd160  84eee832fed158d7bb4d303fbaf0022de792779a \
+                    sha256  b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0
 
 # to correctly configure supported OpenGL capabilities, the port must be able
 # to query the display on the target machine during the configure phase
@@ -37,9 +31,28 @@
 archive_sites
 
 if {${perl5.major} != ""} {
-    patchfiles      patch-utils-Makefile.macosx.diff
+    # use Time::HiRes 1.9739+ for Sierra compatibility
+    depends_build-append \
+                    port:p${perl5.major}-time-hires
 
+    depends_lib-append \
+                    port:mesa \
+                    port:libGLU \
+                    port:freeglut \
+                    port:xorg-libXext \
+                    port:xorg-libXmu \
+                    port:xorg-libXi \
+                    port:xorg-libice \
+                    port:xorg-libX11
+
+
+    patchfiles      patch-Makefile.PL.diff \
+                    patch-utils-Makefile.macosx.diff
+
     post-patch {
+        reinplace "s|@@MP_PREFIX@@|${prefix}|" ${worksrcpath}/Makefile.PL
         reinplace "s|@@MP_CC@@|${configure.cc}|" ${worksrcpath}/utils/Makefile.macosx
     }
+
+    configure.pre_args-append verbose interface=GLX
 }

Added: trunk/dports/perl/p5-opengl/files/patch-Makefile.PL.diff
===================================================================
--- trunk/dports/perl/p5-opengl/files/patch-Makefile.PL.diff	                        (rev 0)
+++ trunk/dports/perl/p5-opengl/files/patch-Makefile.PL.diff	2016-10-28 21:35:54 UTC (rev 154387)
@@ -0,0 +1,14 @@
+--- Makefile.PL.orig	2016-10-21 01:50:05.000000000 -0700
++++ Makefile.PL	2016-10-21 01:56:22.000000000 -0700
+@@ -124,10 +124,10 @@
+ # Look for available libs
+ our @libdirs = qw
+ {
++  -L@@MP_PREFIX@@/lib
+   -L/usr/lib
+   -L/usr/lib/i386-linux-gnu
+   -L/usr/X11R6/lib
+-  -L/opt/X11/lib
+   -L/usr/local/lib
+   -L/usr/openwin/lib
+   -L/opt/csw/lib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161028/154ec8a1/attachment-0002.html>


More information about the macports-changes mailing list