[78511] trunk/dports/graphics/objectmarker

ryandesign at macports.org ryandesign at macports.org
Tue May 10 05:44:21 PDT 2011


Revision: 78511
          http://trac.macports.org/changeset/78511
Author:   ryandesign at macports.org
Date:     2011-05-10 05:44:19 -0700 (Tue, 10 May 2011)
Log Message:
-----------
objectmarker:

 * use a real version number (or nearest approximation: the distfile's modification date)
 * use dist_subdir since distfile name doesn't contain version number
 * use correct checksums
 * use "extract.mkdir yes"
 * use a patchfile instead of a reinplace
 * ensure we're UsingTheRightCompiler and right build_arch
 * define master_sites based on homepage
 * enable livecheck

See #29295

Modified Paths:
--------------
    trunk/dports/graphics/objectmarker/Portfile

Added Paths:
-----------
    trunk/dports/graphics/objectmarker/files/
    trunk/dports/graphics/objectmarker/files/patch-ObjectMarker.cpp.diff

Modified: trunk/dports/graphics/objectmarker/Portfile
===================================================================
--- trunk/dports/graphics/objectmarker/Portfile	2011-05-10 12:23:12 UTC (rev 78510)
+++ trunk/dports/graphics/objectmarker/Portfile	2011-05-10 12:44:19 UTC (rev 78511)
@@ -4,8 +4,7 @@
 PortSystem          1.0
 
 name                objectmarker
-version             dev
-revision            2
+version             20070501
 categories          graphics
 platforms           darwin
 maintainers         phw openmaintainer
@@ -15,9 +14,10 @@
 long_description    ${description}
 
 homepage            http://www.cs.utah.edu/~turcsans/DUC_files/HaarTraining/
-master_sites        http://www.cs.utah.edu/~turcsans/DUC_files/HaarTraining/
+master_sites        ${homepage}
 
 distfiles           ObjectMarker.cpp
+dist_subdir         ${name}/${version}
 
 depends_build       port:pkgconfig
 
@@ -25,25 +25,26 @@
 
 extract.only
 
-checksums           md5     f1f032209858427156259e7a54b5fe1d \
-                    sha1    ce07b8f7b58836192e478bc7f91b967878ff326b \
-                    rmd160  8e026342d5b7a21627171ee589c660d49752f057
+checksums           sha1    ba58d18320d50f01f9e7e861100a298403e7cd7c \
+                    rmd160  32946c7a8950ed505150f716c77576438ebe7494
 
+extract.mkdir       yes
+
 post-extract {
-    xinstall -d ${worksrcpath}
     file copy ${distpath}/ObjectMarker.cpp ${worksrcpath}/
-    reinplace "s|#include <io.h>|#include <sys/uio.h>|g" ${distpath}/ObjectMarker.cpp
 }
 
+patchfiles          patch-ObjectMarker.cpp.diff
+
 use_configure       no
 
-build.cmd {
-    g++ ObjectMarker.cpp `pkg-config --cflags opencv` -o objectmarker `pkg-config --libs opencv`
+build {
+    system "cd ${worksrcpath} && ${configure.cxx} ${configure.cxx_archflags} ObjectMarker.cpp `pkg-config --cflags opencv` -o objectmarker `pkg-config --libs opencv`"
 }
-build.target {}
 
 destroot {
-    eval xinstall -m 750 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
+    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
 }
 
-livecheck.type      none
+livecheck.type      moddate
+livecheck.url       [lindex ${master_sites} 0]${distfiles}

Added: trunk/dports/graphics/objectmarker/files/patch-ObjectMarker.cpp.diff
===================================================================
--- trunk/dports/graphics/objectmarker/files/patch-ObjectMarker.cpp.diff	                        (rev 0)
+++ trunk/dports/graphics/objectmarker/files/patch-ObjectMarker.cpp.diff	2011-05-10 12:44:19 UTC (rev 78511)
@@ -0,0 +1,11 @@
+--- ObjectMarker.cpp.orig	2007-05-01 18:18:30.000000000 -0500
++++ ObjectMarker.cpp	2011-05-10 07:27:33.000000000 -0500
+@@ -4,7 +4,7 @@
+ 
+ // for filelisting
+ #include <stdio.h>
+-#include <io.h>
++#include <sys/uio.h>
+ // for fileoutput
+ #include <string>
+ #include <fstream>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110510/a36b80c4/attachment.html>


More information about the macports-changes mailing list