source: trunk/dports/graphics/glfw/Portfile

Last change on this file was 154313, checked in by ryandesign@…, 9 months ago

glfw: Fix typo in description

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 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 154313 2016-10-27 16:22:34Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           github 1.0
7
8name                glfw
9categories          graphics
10maintainers         michaelld openmaintainer
11description         GLFW is a free, open-source, portable library for OpenGL and OpenGL ES application development
12license             zlib
13platforms           darwin macosx
14
15platform darwin {
16    if {${os.major} < 11} {
17
18        # Mac OS X 10.6 and prior: latest commit supporting
19
20        github.setup    glfw glfw a94a84b507b0d6d11e8a3f257cb21f4bd6553516
21        checksums       rmd160 1c07a75a88f272653ca246aa1212a208a83ecb30 \
22                        sha256 ff4745264f92b740c50ecc90370f102c86c439f2b6108f1495bd60c87e5d6a83
23
24        # bump the epoch because I moved the version from 20151012 to 3.1.2
25
26        epoch           1
27
28        long_description ${description}. This version of GLFW is the latest to provide support for Mac OS X 10.6 and prior, and it will not be updated. It is provided in the hope that it allows ports depending on GLFW to build on these older Mac OS X installs.
29
30        # patch to fix install directory for cmake files and docs
31
32        patchfiles-append patch-CMakeLists.txt.legacy.diff
33
34    } else {
35
36        # Mac OS X 10.7 and newer: release and devel
37
38        subport glfw-devel {}
39
40        if {${subport} eq ${name}} {
41
42            # release
43
44            github.setup    glfw glfw 3.2.1
45            checksums       rmd160 5fb5988736a0a2812426907ab8d64b94eeacc010 \
46                            sha256 34bc25f8111501eec35a52fd39fa50336a0c2e812d4a14454c7c946458ab015c
47
48            # bump the epoch because I moved the version from 20151012 to 3.1.2
49
50            epoch           1
51
52            conflicts       glfw-devel
53            long_description ${description}: \
54                This port follows the release version of GLFW, which is typically updated every 6 months. If for some reason this port does not build or function as desired, try the ${name}-devel port.
55
56        } else {
57
58            # devel
59
60            github.setup    glfw glfw 8d6f265441959d0eff2d3fd97edfb99b98ce2777
61            version         20161019
62            checksums       rmd160 43b59ba3be7d03b23536db3628021f4dda8d3147 \
63                            sha256 6a9cc3d0f8effac9978613523fd5c5f1b81c8577ed13f206fa177678619cb445
64
65            conflicts       glfw
66            long_description ${description}: \
67                This port follows the GIT master version of GLFW, which is typically updated every few days to weeks.
68        }
69
70        # patch to fix install name of library
71
72        patchfiles-append patch-src_CMakeLists.txt.diff
73
74        # patch to fix install directory for cmake files and docs
75
76        patchfiles-append patch-CMakeLists.txt.diff
77
78    }
79}
80
81# use the real home page, not github's
82
83homepage            http://www.glfw.org/
84
85# do VPATH (out of source tree) build
86
87cmake.out_of_source yes
88
89# configuration arguments for MacPorts build
90
91configure.args-append \
92    -DBUILD_SHARED_LIBS=on \
93    -DGLFW_BUILD_EXAMPLES=off \
94    -DGLFW_BUILD_TESTS=off \
95    -DGLFW_CMAKE_CONFIG_PATH=share
96
97# remove top-level library path, such that internal libraries are used
98# instead of any already-installed ones.
99
100configure.ldflags-delete -L${prefix}/lib
101
102variant docs description {build documentation} {}
103
104default_variants    +docs
105
106if {[variant_isset docs]} {
107    depends_build-append  port:doxygen
108    configure.args-append -DDOXYGEN_EXECUTABLE=${prefix}/bin/doxygen
109} else {
110    configure.args-append -DDOXYGEN_EXECUTABLE=
111}
Note: See TracBrowser for help on using the repository browser.