source: trunk/dports/graphics/glfw/Portfile @ 139238

Last change on this file since 139238 was 139238, checked in by michaelld@…, 4 years ago

glfw: update to 52795210 (20150728).

  • 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:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 139238 2015-08-08 17:28:35Z michaelld@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           github 1.0
7
8github.setup        glfw glfw 527952102a13d0caad479a75a4385950f10d79d7
9version             20150728
10checksums           rmd160 623f9e7e234519b4e7458a315e24c48ac2bb69d5 \
11                    sha256 e31e6206d7494bd657f9ffccdde93abe457a3077046ce558a0afdf43b0a521da
12
13categories          graphics
14maintainers         michaelld openmaintainer
15description         GLFW is a free, open-source, portable library for OpenGL and OpenGL ES application development
16license             zlib
17platforms           darwin macosx
18
19long_description ${description}: \
20    This port follows the GIT master version of GLFW, which is typically updated every few days to weeks.
21
22# use the real home page, not github's
23
24homepage            http://www.glfw.org/
25
26# do VPATH (out of source tree) build
27
28cmake.out_of_source yes
29
30# configuration arguments for MacPorts build
31
32configure.args      -DBUILD_SHARED_LIBS=on \
33                    -DGLFW_BUILD_EXAMPLES=off \
34                    -DGLFW_BUILD_TESTS=off
35
36# remove top-level library path, such that internal libraries are used
37# instead of any already-installed ones.
38
39configure.ldflags-delete -L${prefix}/lib
40
41variant docs description {build documentation} {}
42
43default_variants    +docs
44
45if {[variant_isset docs]} {
46    depends_build-append  port:doxygen
47    configure.args-append -DDOXYGEN_EXECUTABLE=${prefix}/bin/doxygen
48} else {
49    configure.args-append -DDOXYGEN_EXECUTABLE=
50}
51
52post-destroot {
53
54    # move cmake Modules to an appropriate location
55
56    xinstall -m 755 -d ${destroot}${prefix}/share/cmake
57    move ${destroot}${prefix}/lib/cmake/glfw ${destroot}${prefix}/share/cmake
58
59    # copy html docs if requested
60
61    if {[variant_isset docs]} {
62        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
63        copy ${cmake.build_dir}/docs/html ${destroot}${prefix}/share/doc/${name}
64    }
65}
Note: See TracBrowser for help on using the repository browser.