[61947] trunk/dports/graphics/glitz/Portfile
nox at macports.org
nox at macports.org
Thu Dec 24 12:50:56 PST 2009
Revision: 61947
http://trac.macports.org/changeset/61947
Author: nox at macports.org
Date: 2009-12-24 12:50:54 -0800 (Thu, 24 Dec 2009)
Log Message:
-----------
Fix universal build of glitz
glitz universal build does not fail anymore when glitz is already
installed.
Modified Paths:
--------------
trunk/dports/graphics/glitz/Portfile
Modified: trunk/dports/graphics/glitz/Portfile
===================================================================
--- trunk/dports/graphics/glitz/Portfile 2009-12-24 17:54:28 UTC (rev 61946)
+++ trunk/dports/graphics/glitz/Portfile 2009-12-24 20:50:54 UTC (rev 61947)
@@ -1,11 +1,13 @@
# $Id$
PortSystem 1.0
+PortGroup archcheck 1.0
PortGroup muniversal 1.0
+PortGroup xcodeversion 1.0
name glitz
version 0.5.6
-revision 2
+revision 3
maintainers nomaintainer
categories graphics devel x11
platforms darwin
@@ -26,37 +28,23 @@
sha1 81604bf02ceda85ea32b52423f78a883aaec6dc6 \
rmd160 547ef1be273856942e0fa36c097c4acb367336b2
-configure.args --mandir=${prefix}/share/man
+minimum_xcodeversions {9 3.1}
+archcheck.files ${prefix}/lib/libGL.dylib
+
+configure.args \
+ --mandir=${prefix}/share/man
+
+configure.ldflags-delete \
+ -L${prefix}/lib
+
post-destroot {
- set docdir ${prefix}/share/doc/${name}-${version}
+ set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README TODO \
${destroot}${docdir}
}
-pre-extract {
- if {"darwin" == ${os.platform} && 9 == ${os.major}} {
- set minimum_xcodeversion 3.1
- set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
- if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
- ui_msg "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}."
- return -code error "incompatible Xcode version"
- }
- }
-}
-
-# There is no reason to have the build directory in the .la file.
-pre-destroot {
- if { ! [variant_isset universal] } {
- reinplace "s| -L${worksrcpath}/src||g" ${worksrcpath}/src/agl/.libs/libglitz-agl.lai
- } else {
- foreach arch ${universal_archs_to_use} {
- reinplace "s| -L${worksrcpath}-${arch}/src||g" ${worksrcpath}-${arch}/src/agl/.libs/libglitz-agl.lai
- }
- }
-}
-
livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex LATEST-${name}-(\\d+(?:\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091224/0601b99c/attachment.html>
More information about the macports-changes
mailing list