[112099] trunk/dports/graphics

michaelld at macports.org michaelld at macports.org
Fri Oct 11 16:07:39 PDT 2013


Revision: 112099
          https://trac.macports.org/changeset/112099
Author:   michaelld at macports.org
Date:     2013-10-11 16:07:39 -0700 (Fri, 11 Oct 2013)
Log Message:
-----------
glfw: new port, version 3.0.3 + devel.

Added Paths:
-----------
    trunk/dports/graphics/glfw/
    trunk/dports/graphics/glfw/Portfile
    trunk/dports/graphics/glfw/files/
    trunk/dports/graphics/glfw/files/patch-src-CMakeLists.txt.diff

Added: trunk/dports/graphics/glfw/Portfile
===================================================================
--- trunk/dports/graphics/glfw/Portfile	                        (rev 0)
+++ trunk/dports/graphics/glfw/Portfile	2013-10-11 23:07:39 UTC (rev 112099)
@@ -0,0 +1,98 @@
+# -*- 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             as-is
+platforms           darwin macosx
+
+dist_subdir         glfw
+set base_version    3.0.3
+
+if {${subport} eq ${name}} {
+
+    long_description ${description}: \
+Provides the release version, which is typically updated every few months.
+
+    github.setup    glfw glfw ${base_version}
+    conflicts       glfw-devel
+    checksums       rmd160 c6d4729fd03a0066b455dd12e9e30dfd0ddecf0e \
+                    sha256 c8d1d70193bdf201dbb89b19dc052e177c5566fd88e42bd7f6f9c58fa7f755dc
+
+}
+
+subport glfw-devel {
+
+    long_description ${description}: \
+Provides the GIT master version, which is typically updated every few days to weeks.
+
+    github.setup    glfw glfw 2c920fbb8bb13382274be590f351d0b93960e7df
+    name            glfw-devel
+    version         ${base_version}_20131010
+    conflicts       glfw
+    checksums       rmd160 5756276b3e6695dfec7127aef68f5b8d1ae04e63 \
+                    sha256 747a1128794255d45cc35f6303e72d85ba59cece1d2f712c0e06875ad32794af
+
+}
+
+# use the real home page, not github's
+
+homepage            http://www.glfw.org/
+
+# fix library to include proper self-id
+
+patchfiles          patch-src-CMakeLists.txt.diff
+
+# do VPATH build
+
+set vpath           ${workpath}/build
+pre-configure       { file mkdir ${vpath} }
+configure.dir       ${vpath}
+build.dir           ${vpath}
+
+# configuration arguments for MacPorts build
+
+configure.args      -DBUILD_SHARED_LIBS=on \
+                    -DGLFW_BUILD_EXAMPLES=off \
+                    -DGLFW_BUILD_TESTS=off
+
+# set last configure argument to the reletive path
+# to the top-level cmake source
+
+configure.post_args ../${worksrcdir}
+
+# be verbose when building, for debugging purposes
+
+build.post_args     VERBOSE=1
+
+variant docs description {build documentation} {
+    depends_lib-append    port:doxygen
+    configure.args-append -DDOXYGEN_EXECUTABLE=${prefix}/bin/doxygen
+}
+
+if {![variant_isset docs]} {
+    configure.args-append -DDOXYGEN_EXECUTABLE=
+}
+
+default_variants    +docs
+
+post-destroot {
+
+    # move cmake Modules to an appropriate location
+
+    xinstall -m 755 -d ${destroot}${prefix}/share/cmake/Modules
+    move ${destroot}${prefix}/lib/cmake/glfw ${destroot}${prefix}/share/cmake/Modules
+
+    # copy html docs if requested
+
+    if {[variant_isset docs]} {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+        copy ${vpath}/docs/html ${destroot}${prefix}/share/doc/${name}
+    }
+}


Property changes on: trunk/dports/graphics/glfw/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/graphics/glfw/files/patch-src-CMakeLists.txt.diff
===================================================================
--- trunk/dports/graphics/glfw/files/patch-src-CMakeLists.txt.diff	                        (rev 0)
+++ trunk/dports/graphics/glfw/files/patch-src-CMakeLists.txt.diff	2013-10-11 23:07:39 UTC (rev 112099)
@@ -0,0 +1,12 @@
+--- src/CMakeLists.txt.orig	2013-10-11 15:25:00.000000000 -0400
++++ src/CMakeLists.txt	2013-10-11 18:39:54.000000000 -0400
+@@ -72,7 +72,8 @@
+             set(glfw_CFLAGS "")
+         endif()
+         set_target_properties(glfw PROPERTIES
+-                              COMPILE_FLAGS "${glfw_CFLAGS} -fno-common")
++                              COMPILE_FLAGS "${glfw_CFLAGS} -fno-common"
++			      INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib)
+     endif()
+ 
+     target_link_libraries(glfw ${glfw_LIBRARIES})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131011/4f127f02/attachment.html>


More information about the macports-changes mailing list