[69642] trunk/dports/x11

jeremyhu at macports.org jeremyhu at macports.org
Sun Jul 11 15:09:37 PDT 2010


Revision: 69642
          http://trac.macports.org/changeset/69642
Author:   jeremyhu at macports.org
Date:     2010-07-11 15:09:34 -0700 (Sun, 11 Jul 2010)
Log Message:
-----------
glxinfo: New port based on mesa-demos-8.0.0

Added Paths:
-----------
    trunk/dports/x11/glxinfo/
    trunk/dports/x11/glxinfo/Portfile

Added: trunk/dports/x11/glxinfo/Portfile
===================================================================
--- trunk/dports/x11/glxinfo/Portfile	                        (rev 0)
+++ trunk/dports/x11/glxinfo/Portfile	2010-07-11 22:09:34 UTC (rev 69642)
@@ -0,0 +1,54 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id: Portfile 69640 2010-07-11 21:18:51Z jeremyhu at macports.org $
+
+PortSystem          1.0
+
+name                glxinfo
+set pkg_name        mesa-demos
+version             8.0.0
+categories          x11 graphics
+maintainers         jeremyhu openmaintainer
+description         Show information about GLX capabilities
+long_description    ${description}
+
+homepage            http://mesa3d.sourceforge.net/
+distname            ${pkg_name}-${version}
+
+platforms           macosx darwin
+use_bzip2           yes
+master_sites        ftp://ftp.freedesktop.org/pub/mesa/7.8.2
+
+checksums           sha1    4832d94174f32cb869d9a5b055bf45c3141b347f \
+                    rmd160  3e9d06e590ca5feaf93e8891e501fef7eb2e3909
+
+depends_lib \
+	port:mesa
+
+use_configure no
+
+variant universal {}
+if {[variant_isset universal]} {
+    set extra_cflags ${configure.universal_cflags}
+    set extra_ldflags ${configure.universal_ldflags}
+} else {
+    set extra_cflags ${configure.cc_archflags}
+    if {![info exists configure.ld_archflags]} {
+        eval configure.ldflags-append ${configure.cc_archflags}
+        set extra_ldflags ${configure.cc_archflags}
+    } else {
+        set extra_ldflags ${configure.ld_archflags}
+    }
+}
+
+build {
+	system "${configure.cc} ${configure.cppflags} ${configure.cflags} ${extra_cflags} -c ${worksrcpath}/src/xdemos/${name}.c"
+	system "${configure.cc} ${configure.ldflags} ${extra_ldflags} ${name}.o -lGL -lX11 -o ${name}"
+}
+
+destroot {
+	xinstall -m 755 ${name} "${destroot}${prefix}/bin"
+}
+
+use_parallel_build yes
+
+livecheck.name  ${pkg_name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100711/3d522a1a/attachment.html>


More information about the macports-changes mailing list