source: trunk/dports/science/yorick-gl/Portfile

Last change on this file was 127620, checked in by thibaut@…, 3 years ago

yorick-gl: update to 1.1.0.git20120925

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 127620 2014-10-30 21:53:55Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7set udate           20120925
8github.setup        dhmunro yorick-gl 1.1.0.git${udate} gl_
9fetch.type          git
10git.branch          03b553ac53ff6b4cc377faea6af1bcd9a2c6648f
11
12license             BSD
13categories          science yorick
14platforms           darwin
15maintainers         thibaut openmaintainer
16description         OpenGL 3D graphics support for the Yorick language
17long_description    This is a compiled add-on for yorick (an interpreted \
18                    computer language specialized for numerical and \
19                    scientific problems). Yorick-gl adds support for OpenGL \
20                    3D graphics.
21homepage            http://maumae.net/yorick/doc/plugins.php
22
23depends_lib         port:yorick \
24                    port:mesa
25
26universal_variant   no
27
28configure.cmd       ${prefix}/bin/yorick
29configure.pre_args  {}
30configure.args      -batch make.i
31
32post-configure {
33    set MakeglFD [open "$worksrcpath/Makegl" "w"]
34    puts $MakeglFD "PKG_I=\$(YISO_PKG_I) \$(YGL_PKG_I)"
35    puts $MakeglFD "OBJS=\$(YISO_OBJS) \$(YGL_OBJS)"
36    puts $MakeglFD "OGLXW=oglx.o"
37    puts $MakeglFD "D_MESA_PIXMAPS="
38    puts $MakeglFD "PKG_DEPLIBS=-lGL -lXext -lX11"
39    puts $MakeglFD "PKG_CFLAGS="
40    puts $MakeglFD "PKG_LDFLAGS="
41    puts $MakeglFD "PKG_I_START=yiso3d.i yorgl.i"
42    puts $MakeglFD "PKG_I_EXTRA=\$(YISO_I) \$(YGL_I)"
43    close $MakeglFD
44}
45
46build.args-append   CC=${configure.cc} \
47                    Y_CFLAGS="${configure.cppflags} ${configure.cflags}" \
48                    Y_LDFLAGS="${configure.ldflags}" \
49                    COPTS_DEFAULT=""
Note: See TracBrowser for help on using the repository browser.