[90685] trunk/dports/graphics/vlfeat/Portfile
jmr at macports.org
jmr at macports.org
Mon Mar 12 05:05:49 PDT 2012
Revision: 90685
http://trac.macports.org/changeset/90685
Author: jmr at macports.org
Date: 2012-03-12 05:05:49 -0700 (Mon, 12 Mar 2012)
Log Message:
-----------
vlfeat: support i386
Modified Paths:
--------------
trunk/dports/graphics/vlfeat/Portfile
Modified: trunk/dports/graphics/vlfeat/Portfile
===================================================================
--- trunk/dports/graphics/vlfeat/Portfile 2012-03-12 11:53:51 UTC (rev 90684)
+++ trunk/dports/graphics/vlfeat/Portfile 2012-03-12 12:05:49 UTC (rev 90685)
@@ -28,12 +28,18 @@
use_configure no
-supported_archs x86_64
+supported_archs x86_64 i386
-build.args-append ARCH=maci64
-if {${configure.sdkroot} != ""}
+if {$build_arch == "x86_64"} {
+ set vlfeat_arch maci64
+} elseif {$build_arch == "i386"} {
+ set vlfeat_arch maci
+}
+build.args-append ARCH=${vlfeat_arch}
+
+if {${configure.sdkroot} != ""} {
build.args-append SDKROOT="${configure.sdkroot}"
-else {
+} else {
build.args-append SDKROOT=/
}
@@ -42,8 +48,8 @@
}
destroot {
- xinstall -m 755 -W ${worksrcpath}/bin/maci64 libvl.dylib ${destroot}${prefix}/lib
- xinstall -m 755 -W ${worksrcpath}/bin/maci64 sift mser ${destroot}${prefix}/bin
+ xinstall -m 755 -W ${worksrcpath}/bin/${vlfeat_arch} libvl.dylib ${destroot}${prefix}/lib
+ xinstall -m 755 -W ${worksrcpath}/bin/${vlfeat_arch} sift mser ${destroot}${prefix}/bin
xinstall -d -m 755 ${destroot}${prefix}/include/vl
foreach header [glob -directory ${worksrcpath}/vl *.h] {
xinstall -m 644 $header ${destroot}${prefix}/include/vl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120312/65d76bab/attachment.html>
More information about the macports-changes
mailing list