# -*- 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 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup github 1.0 name glfw categories graphics maintainers michaelld openmaintainer description GLFW is a free, open-source, portable library for OpenGL and OpenGL ES application development license zlib platforms darwin macosx platform darwin { if {${os.major} < 11} { # Mac OS X 10.6 and prior: latest commit supporting github.setup glfw glfw a94a84b507b0d6d11e8a3f257cb21f4bd6553516 checksums rmd160 1c07a75a88f272653ca246aa1212a208a83ecb30 \ sha256 ff4745264f92b740c50ecc90370f102c86c439f2b6108f1495bd60c87e5d6a83 # bump the epoch because I moved the version from 20151012 to 3.1.2 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. # patch to fix install directory for cmake files and docs patchfiles-append patch-CMakeLists.txt.legacy.diff } else { # Mac OS X 10.7 and newer: release and devel subport glfw-devel {} if {${subport} eq ${name}} { # release 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 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. } else { # devel github.setup glfw glfw 8d6f265441959d0eff2d3fd97edfb99b98ce2777 version 20161019 checksums rmd160 43b59ba3be7d03b23536db3628021f4dda8d3147 \ sha256 6a9cc3d0f8effac9978613523fd5c5f1b81c8577ed13f206fa177678619cb445 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 name of library patchfiles-append patch-src_CMakeLists.txt.diff # patch to fix install directory for cmake files and docs patchfiles-append patch-CMakeLists.txt.diff } } # use the real home page, not github's homepage http://www.glfw.org/ # do VPATH (out of source tree) build cmake.out_of_source yes # configuration arguments for MacPorts build configure.args-append \ -DBUILD_SHARED_LIBS=on \ -DGLFW_BUILD_EXAMPLES=off \ -DGLFW_BUILD_TESTS=off \ -DGLFW_CMAKE_CONFIG_PATH=share # remove top-level library path, such that internal libraries are used # instead of any already-installed ones. configure.ldflags-delete -L${prefix}/lib variant docs description {build documentation} {} default_variants +docs if {[variant_isset docs]} { depends_build-append port:doxygen configure.args-append -DDOXYGEN_EXECUTABLE=${prefix}/bin/doxygen } else { configure.args-append -DDOXYGEN_EXECUTABLE= }