[27923] trunk/dports/devel/macstl

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 16 00:11:46 PDT 2007


Revision: 27923
          http://trac.macosforge.org/projects/macports/changeset/27923
Author:   nox at macports.org
Date:     2007-08-16 00:11:46 -0700 (Thu, 16 Aug 2007)

Log Message:
-----------
macstl:
 * Updated to 0.3.1.
 * Ported to xcode portgroup.
 * Added universal support.
 * Added sha1 and rmd160 checksums.

Modified Paths:
--------------
    trunk/dports/devel/macstl/Portfile

Added Paths:
-----------
    trunk/dports/devel/macstl/files/
    trunk/dports/devel/macstl/files/patch-macstl.xcodeproj-project.pbxproj

Modified: trunk/dports/devel/macstl/Portfile
===================================================================
--- trunk/dports/devel/macstl/Portfile	2007-08-16 06:15:20 UTC (rev 27922)
+++ trunk/dports/devel/macstl/Portfile	2007-08-16 07:11:46 UTC (rev 27923)
@@ -1,34 +1,49 @@
 # $Id$
 
 PortSystem		1.0
+PortGroup		xcode 1.0
 
 name			macstl
-version			0.2.2
+version			0.3.1
 categories		devel
 maintainers		nomaintainer
-platforms		darwin
 description		C++ header library
 
 long_description \
 	The C++ header library designed to bring the Macintosh \
-	into the world of modern generic programming.
+	into the world of modern generic programming, and deliver \
+	the surprising speed of SIMD in an intuitive cross-platform package.
 
 homepage		http://www.pixelglow.com/macstl/
 master_sites	http://www.pixelglow.com/downloads/
 extract.suffix	.tgz
 
-checksums		md5 454ccf7015b7d606ecefccf76ded5f10
+checksums		md5 28288965464ed69718d616f7596939bb \
+				sha1 009e8ffdba976e3c09cbf3ff21091535771e86d9 \
+				rmd160 1485e24d9be7b5ed75ed62237208271d183edd86
 
-worksrcdir		${name}
+worksrcdir		${name}/mac
 
-use_configure    no
+patchfiles		patch-macstl.xcodeproj-project.pbxproj
 
-build.type       pbx
-build.dir        ${worksrcpath}/mac
-build.target     -project macstl.xcode
+xcode.target			${name}
+set xcode.configuration	"\"Optimized for PowerPC and Intel\""
+xcode.destroot.type		framework
 
-destroot {
-	file mkdir ${destroot}/Library/Frameworks
-	file copy ${build.dir}/build/macstl.framework \
-		${destroot}/Library/Frameworks
+# Dummy configure to enable universal variant
+use_configure	yes
+configure		{}
+
+if {! [variant_isset universal]} {
+	if {[regexp {ppc(7[45]|95)} [exec machine] _ number]} {
+		switch [string index ${number} 0] {
+			7 { set model G4 }
+			9 { set model G5 }
+		}
+
+		if {[info exists model]} {
+			set xcode.configuration "\"Optimized for ${model}\""
+		}
+	}
 }
+

Added: trunk/dports/devel/macstl/files/patch-macstl.xcodeproj-project.pbxproj
===================================================================
--- trunk/dports/devel/macstl/files/patch-macstl.xcodeproj-project.pbxproj	                        (rev 0)
+++ trunk/dports/devel/macstl/files/patch-macstl.xcodeproj-project.pbxproj	2007-08-16 07:11:46 UTC (rev 27923)
@@ -0,0 +1,34 @@
+--- macstl.xcodeproj/project.pbxproj.orig	2007-08-16 09:04:47.000000000 +0200
++++ macstl.xcodeproj/project.pbxproj	2007-08-16 09:05:12.000000000 +0200
+@@ -552,7 +552,6 @@
+ 			buildPhases = (
+ 				8D07F2BD0486CC7A007CD1D0 /* Headers */,
+ 				8D07F2BF0486CC7A007CD1D0 /* Resources */,
+-				D8C524450731298C008CB8AF /* ShellScript */,
+ 			);
+ 			buildRules = (
+ 			);
+@@ -853,23 +852,6 @@
+ 		};
+ /* End PBXResourcesBuildPhase section */
+ 
+-/* Begin PBXShellScriptBuildPhase section */
+-		D8C524450731298C008CB8AF /* ShellScript */ = {
+-			isa = PBXShellScriptBuildPhase;
+-			buildActionMask = 2147483647;
+-			files = (
+-			);
+-			inputPaths = (
+-			);
+-			outputPaths = (
+-				"$(SYMROOT)/$(PUBLIC_HEADERS_FOLDER_PATH)/impl",
+-			);
+-			runOnlyForDeploymentPostprocessing = 0;
+-			shellPath = /bin/sh;
+-			shellScript = "cd \"${SYMROOT}/${PUBLIC_HEADERS_FOLDER_PATH}\"\nln -s ../PrivateHeaders impl";
+-		};
+-/* End PBXShellScriptBuildPhase section */
+-
+ /* Begin PBXSourcesBuildPhase section */
+ 		D807C42607A23B0A003DE6EC /* Sources */ = {
+ 			isa = PBXSourcesBuildPhase;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070816/dbcc0c91/attachment.html


More information about the macports-changes mailing list