source: trunk/dports/x11/glui/Portfile

Last change on this file was 56100, checked in by ryandesign@…, 8 years ago

glui: remove unnecessary statements that do nothing

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 56100 2009-08-24 07:01:14Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            glui
7version                 2.36
8revision                1
9categories      x11
10maintainers     mcalhoun
11description     A GLUT-based C++ user interface library.
12long_description \
13    GLUI is a GLUT-based C++ user interface library \
14    which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications.
15homepage        http://glui.sourceforge.net/
16master_sites    sourceforge:glui
17extract.suffix  .tgz
18worksrcdir      ${name}-${version}/src
19platforms       darwin
20checksums \
21    md5 9e8d506af9a9428dac09e8cd7bda7c1e \
22    sha1 00e6a4a8a331ccfde951966526c63b0f37c7d8f3 \
23    rmd160 f39fe98e3e215816b0af2089ab7ac460df5701b8
24
25patchfiles-append patch-makefile.diff patch-glui.diff patch-glui_filebrowser.diff
26
27configure.ldflags -framework GLUT -framework OpenGL
28
29use_configure    no
30
31post-configure {
32    reinplace "s|__CONFIGURE_CXX__|${configure.cxx}|" ${worksrcpath}/makefile
33    reinplace "s|__CONFIGURE_CXXFLAGS__|${configure.cxxflags}|" ${worksrcpath}/makefile
34    reinplace "s|__CONFIGURE_LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/makefile
35    reinplace "s|__CONFIGURE_CPPFLAGS__|${configure.cppflags}|" ${worksrcpath}/makefile
36}
37
38destroot {
39    xinstall -m 644 ${worksrcpath}/include/GL/glui.h ${destroot}${prefix}/include
40    xinstall -m 644 ${worksrcpath}/lib/libglui.a ${destroot}${prefix}/lib
41    xinstall -m 755 ${worksrcpath}/bin/ppm2array ${destroot}${prefix}/bin
42}
43
44post-destroot {
45    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
46    xinstall -m 644 ${worksrcpath}/doc/glui_manual.pdf ${destroot}${prefix}/share/doc/${name}
47    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
48    eval xinstall -m 644 [glob ${worksrcpath}/example/example*.cpp] ${destroot}${prefix}/share/doc/${name}/examples
49    eval xinstall -m 755 [glob ${worksrcpath}/bin/example*] ${destroot}${prefix}/share/doc/${name}/examples
50}
51
52livecheck.distname Source
Note: See TracBrowser for help on using the repository browser.