[72144] trunk/dports/devel/activewire/Portfile
ryandesign at macports.org
ryandesign at macports.org
Mon Oct 4 19:34:36 PDT 2010
Revision: 72144
http://trac.macports.org/changeset/72144
Author: ryandesign at macports.org
Date: 2010-10-04 19:34:34 -0700 (Mon, 04 Oct 2010)
Log Message:
-----------
activewire: whitespace changes / reformatting
Modified Paths:
--------------
trunk/dports/devel/activewire/Portfile
Modified: trunk/dports/devel/activewire/Portfile
===================================================================
--- trunk/dports/devel/activewire/Portfile 2010-10-05 02:29:47 UTC (rev 72143)
+++ trunk/dports/devel/activewire/Portfile 2010-10-05 02:34:34 UTC (rev 72144)
@@ -6,6 +6,7 @@
name activewire
version 4.0
categories devel
+platforms darwin
maintainers nomaintainer
description Driver for the ActiveWire board
@@ -15,7 +16,6 @@
The REALbasic Plugin not included.
homepage http://activewire-osx.sourceforge.net/
-platforms darwin
master_sites sourceforge:activewire-osx
distname aw_${version}
@@ -27,9 +27,10 @@
worksrcdir ${distname}/Source/
use_dmg yes
xcode.configuration Default
+
default_variants +doc \
+dev
-
+
# Doesn't build with 10.5
macosx_deployment_target 10.5
variant awdriver description {Installs the ActiveWire driver} {}
@@ -39,14 +40,12 @@
# variant realbasic description {Installs the realbasic plugin} {}
-pre-configure {
- foreach {i} {libaw awdriver awconfig} {
- reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/$i/$i.xcodeproj/project.pbxproj"
-
- reinplace "s|/usr/share/man/man1/|${prefix}/include|g" "${worksrcpath}/$i/$i.xcodeproj/project.pbxproj"
- reinplace "s|MacOSX10.4u.sdk|MacOSX10.5.sdk|g" "${worksrcpath}/$i/$i.xcodeproj/project.pbxproj"
-
- }
+pre-configure {
+ foreach i {libaw awdriver awconfig} {
+ reinplace "s|/usr/local|${prefix}|g" "${worksrcpath}/$i/$i.xcodeproj/project.pbxproj"
+ reinplace "s|/usr/share/man/man1/|${prefix}/include|g" "${worksrcpath}/$i/$i.xcodeproj/project.pbxproj"
+ reinplace "s|MacOSX10.4u.sdk|MacOSX10.5.sdk|g" "${worksrcpath}/$i/$i.xcodeproj/project.pbxproj"
+ }
}
proc xcode::get_build_args {args} {
@@ -54,16 +53,16 @@
global universal_archs universal_target macosx_deployment_target
global os.major os.arch
global developer_dir
-
+
set xcode_build_args "OBJROOT=build/ SYMROOT=build/"
-
+
# MACOSX_DEPLOYMENT_TARGET
if {[variant_isset universal] && [info exists universal_target]} {
append xcode_build_args " MACOSX_DEPLOYMENT_TARGET=${universal_target}"
} else {
append xcode_build_args " MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}"
}
-
+
# ARCHS
if {[variant_isset universal]} {
append xcode_build_args " ARCHS=\"${universal_archs}\""
@@ -76,7 +75,7 @@
append xcode_build_args " ARCHS=i386"
}
}
-
+
# SDKROOT
if {[variant_isset universal] && ${os.arch} == "powerpc" && ${os.major} == "8"} {
if {[info exists developer_dir]} {
@@ -89,50 +88,44 @@
}
build {
- set xcode_build_args [xcode::get_build_args]
-
- foreach {i} {libaw awdriver awconfig} {
- if {[variant_isset $i] || $i == "libaw"} {
- set command "cd '${worksrcpath}/$i' && ${build.cmd} ${xcode_build_args}"
- ui_debug "Assembled Command: ${command}"
- system ${command}
+ set xcode_build_args [xcode::get_build_args]
+
+ foreach i {libaw awdriver awconfig} {
+ if {[variant_isset $i] || $i == "libaw"} {
+ set command "cd '${worksrcpath}/$i' && ${build.cmd} ${xcode_build_args}"
+ ui_debug "Assembled Command: ${command}"
+ system ${command}
+ }
}
-
- }
-
}
destroot {
- xinstall -m 755 -d ${destroot}${prefix}/bin
- xinstall -m 755 -d ${destroot}${prefix}/lib
- xinstall -m 0755 -d ${destroot}${prefix}/share/activewire
- xinstall -m 0755 -d ${destroot}${prefix}/share/doc/activewire
-
- set xcode_build_args [xcode::get_build_args]
-
-
-
- foreach {target dest} { libaw lib awconfig bin awdriver bin } {
- set pre_command "cd '${worksrcpath}/${target}' && ${build.cmd} \
- ${xcode_build_args} install DSTROOT=${destroot} \
- INSTALL_PATH=${prefix}"
+ xinstall -m 755 -d ${destroot}${prefix}/bin
+ xinstall -m 755 -d ${destroot}${prefix}/lib
+ xinstall -m 0755 -d ${destroot}${prefix}/share/activewire
+ xinstall -m 0755 -d ${destroot}${prefix}/share/doc/activewire
- if {[variant_isset $target] || $target == "libaw"} {
- set command "${pre_command}/${dest}"
- ui_debug "Assembled Command: ${command}"
- system ${command}
+ set xcode_build_args [xcode::get_build_args]
+
+ foreach {target dest} {libaw lib awconfig bin awdriver bin} {
+ set pre_command "cd '${worksrcpath}/${target}' && ${build.cmd} \
+ ${xcode_build_args} install DSTROOT=${destroot} \
+ INSTALL_PATH=${prefix}"
+
+ if {[variant_isset $target] || $target == "libaw"} {
+ set command "${pre_command}/${dest}"
+ ui_debug "Assembled Command: ${command}"
+ system ${command}
+ }
}
- }
-
-
- if {[variant_isset doc]} {
- set doc_path "${worksrcpath}/../Documentation/"
- foreach i [glob -tails -directory $doc_path *] {
- file copy $doc_path/$i "${destroot}${prefix}/share/doc/activewire"
+
+ if {[variant_isset doc]} {
+ set doc_path "${worksrcpath}/../Documentation/"
+ foreach i [glob -tails -directory $doc_path *] {
+ file copy $doc_path/$i "${destroot}${prefix}/share/doc/activewire"
}
-
- set example_path "${worksrcpath}/../Examples"
- system "cp -r '${example_path}/C Example' ${destroot}${prefix}/share/doc/activewire"
- system "cp -r '${example_path}/Cocoa Example' ${destroot}${prefix}/share/doc/activewire"
-
- }
+
+ set example_path "${worksrcpath}/../Examples"
+ system "cp -r '${example_path}/C Example' ${destroot}${prefix}/share/doc/activewire"
+ system "cp -r '${example_path}/Cocoa Example' ${destroot}${prefix}/share/doc/activewire"
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101004/671110e7/attachment.html>
More information about the macports-changes
mailing list