source: trunk/dports/perl/p5-opengl/Portfile

Last change on this file was 154393, checked in by mojca@…, 11 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- 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
2# $Id: Portfile 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7perl5.branches      5.24
8perl5.setup         OpenGL 0.70
9# can be distributed under the same terms as Perl itself
10# see http://search.cpan.org/dist/OpenGL/OpenGL.pod#AUTHORS
11license             {Artistic-1 GPL}
12maintainers         nomaintainer
13description         Perl OpenGL: a.k.a. POGL
14long_description    Perl OpenGL (a.k.a. POGL) is a perl5 interface to \
15                    opengl, glu, and glut. Virtually all of the OpenGL 1.0 and 1.1 \
16                    functions are available as well as most of 1.2.  The functional \
17                    interface is very similar to using C with most changes made in an \
18                    obvious way (see man page for details).  High-level object interfaces \
19                    are available in the form of OpenGL::Array, OpenGL::Image, and \
20                    OpenGL::Shader.
21
22platforms           darwin
23
24checksums           rmd160  84eee832fed158d7bb4d303fbaf0022de792779a \
25                    sha256  b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0
26
27# to correctly configure supported OpenGL capabilities, the port must be able
28# to query the display on the target machine during the configure phase
29# clear archive_sites to avoid loading an inappropriately configured prebuilt binary
30
31archive_sites
32
33if {${perl5.major} != ""} {
34    # use Time::HiRes 1.9739+ for Sierra compatibility
35    depends_build-append \
36                    port:p${perl5.major}-time-hires
37
38    depends_lib-append \
39                    port:mesa \
40                    port:libGLU \
41                    port:freeglut \
42                    port:xorg-libXext \
43                    port:xorg-libXmu \
44                    port:xorg-libXi \
45                    port:xorg-libice \
46                    port:xorg-libX11
47
48
49    patchfiles      patch-Makefile.PL.diff \
50                    patch-utils-Makefile.macosx.diff
51
52    post-patch {
53        reinplace "s|@@MP_PREFIX@@|${prefix}|" ${worksrcpath}/Makefile.PL
54        reinplace "s|@@MP_CC@@|${configure.cc}|" ${worksrcpath}/utils/Makefile.macosx
55    }
56
57    configure.pre_args-append verbose interface=GLX
58}
Note: See TracBrowser for help on using the repository browser.