Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
glfw: prevent error on non-darwin platforms
The version option is required, and was not set on platforms other than
darwin.
  • Loading branch information
jmroot committed Jun 8, 2018
1 parent ae982df commit a5dfad0
Showing 1 changed file with 40 additions and 42 deletions.
82 changes: 40 additions & 42 deletions graphics/glfw/Portfile
Expand Up @@ -11,75 +11,73 @@ description GLFW is a free, open-source, portable library for OpenGL and
license zlib
platforms darwin macosx

platform darwin {
if {${os.major} < 11} {
if {${os.platform} eq "darwin" && ${os.major} < 11} {

# Mac OS X 10.6 and prior: latest commit supporting
# Mac OS X 10.6 and prior: latest commit supporting

github.setup glfw glfw a94a84b507b0d6d11e8a3f257cb21f4bd6553516
checksums rmd160 1c07a75a88f272653ca246aa1212a208a83ecb30 \
sha256 ff4745264f92b740c50ecc90370f102c86c439f2b6108f1495bd60c87e5d6a83
github.setup glfw glfw a94a84b507b0d6d11e8a3f257cb21f4bd6553516
checksums rmd160 1c07a75a88f272653ca246aa1212a208a83ecb30 \
sha256 ff4745264f92b740c50ecc90370f102c86c439f2b6108f1495bd60c87e5d6a83

# bump the epoch because I moved the version from 20151012 to 3.1.2
# bump the epoch because I moved the version from 20151012 to 3.1.2

epoch 1
epoch 1

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.
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.

# patch to fix install directory for cmake files and docs
# patch to fix install directory for cmake files and docs

patchfiles-append patch-CMakeLists.txt.legacy.diff
patchfiles-append patch-CMakeLists.txt.legacy.diff

} else {
} else {

# Mac OS X 10.7 and newer: release and devel
# Mac OS X 10.7 and newer: release and devel

subport glfw-devel {}
subport glfw-devel {}

if {${subport} eq ${name}} {
if {${subport} eq ${name}} {

# release
# release

github.setup glfw glfw 3.2.1
checksums rmd160 5fb5988736a0a2812426907ab8d64b94eeacc010 \
sha256 34bc25f8111501eec35a52fd39fa50336a0c2e812d4a14454c7c946458ab015c
github.setup glfw glfw 3.2.1
checksums rmd160 5fb5988736a0a2812426907ab8d64b94eeacc010 \
sha256 34bc25f8111501eec35a52fd39fa50336a0c2e812d4a14454c7c946458ab015c

# bump the epoch because I moved the version from 20151012 to 3.1.2
# bump the epoch because I moved the version from 20151012 to 3.1.2

epoch 1
epoch 1

conflicts glfw-devel
long_description ${description}: \
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.
conflicts glfw-devel
long_description ${description}: \
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.

# patch to fix install directory for cmake files and docs
# patch to fix install directory for cmake files and docs

patchfiles-append patch-CMakeLists.txt.release.diff
patchfiles-append patch-CMakeLists.txt.release.diff

} else {
} else {

# devel
# devel

github.setup glfw glfw 0be4f3f75aebd9d24583ee86590a38e741db0904
version 20180529
checksums rmd160 cd37e134aeda004d49474ec6f31f1dd6dc6ef624 \
sha256 2388276834e597ad056c89afa8fe9c516e2651732071c624421c217e105aae52 \
size 753412
github.setup glfw glfw 0be4f3f75aebd9d24583ee86590a38e741db0904
version 20180529
checksums rmd160 cd37e134aeda004d49474ec6f31f1dd6dc6ef624 \
sha256 2388276834e597ad056c89afa8fe9c516e2651732071c624421c217e105aae52 \
size 753412

conflicts glfw
long_description ${description}: \
This port follows the GIT master version of GLFW, which is typically updated every few days to weeks.
conflicts glfw
long_description ${description}: \
This port follows the GIT master version of GLFW, which is typically updated every few days to weeks.

# patch to fix install directory for cmake files and docs
# patch to fix install directory for cmake files and docs

patchfiles-append patch-CMakeLists.txt.devel.diff
}
patchfiles-append patch-CMakeLists.txt.devel.diff
}

# patch to fix install name of library
# patch to fix install name of library

patchfiles-append patch-src_CMakeLists.txt.diff
patchfiles-append patch-src_CMakeLists.txt.diff

}
}

# use the real home page, not github's
Expand Down

0 comments on commit a5dfad0

Please sign in to comment.