[78689] trunk/dports/graphics
ryandesign at macports.org
ryandesign at macports.org
Wed May 18 01:45:05 PDT 2011
Revision: 78689
http://trac.macports.org/changeset/78689
Author: ryandesign at macports.org
Date: 2011-05-18 01:45:03 -0700 (Wed, 18 May 2011)
Log Message:
-----------
iulib: new port, version 0.4; see #29489
Added Paths:
-----------
trunk/dports/graphics/iulib/
trunk/dports/graphics/iulib/Portfile
trunk/dports/graphics/iulib/files/
trunk/dports/graphics/iulib/files/patch-SConstruct.diff
trunk/dports/graphics/iulib/files/patch-components.cc.diff
Added: trunk/dports/graphics/iulib/Portfile
===================================================================
--- trunk/dports/graphics/iulib/Portfile (rev 0)
+++ trunk/dports/graphics/iulib/Portfile 2011-05-18 08:45:03 UTC (rev 78689)
@@ -0,0 +1,48 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name iulib
+hg.tag d9b9406fac75
+version 0.4-${hg.tag}
+categories graphics
+platforms darwin
+maintainers nomaintainer
+
+description C++ library of image understanding-related algorithms
+
+long_description ${name} is a library of image understanding-related \
+ algorithms. It provides basic image processing, \
+ mathematical morphology, and machine learning algorithms.
+
+fetch.type hg
+hg.url https://iulib.googlecode.com/hg/
+homepage http://code.google.com/p/iulib/
+
+depends_build port:scons
+
+depends_lib port:libpng \
+ port:jpeg \
+ port:tiff \
+ port:zlib \
+ port:libsdl \
+ port:libsdl_image \
+ port:libsdl_gfx
+
+patchfiles patch-SConstruct.diff \
+ patch-components.cc.diff
+
+post-patch {
+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct
+}
+
+use_configure no
+
+build.cmd scons
+build.target
+# you can remove the build.args test=yes, but it nice to know they work
+build.args test=yes
+
+destroot.cmd scons
+destroot.destdir prefix=${destroot}${prefix}
Property changes on: trunk/dports/graphics/iulib/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/iulib/files/patch-SConstruct.diff
===================================================================
--- trunk/dports/graphics/iulib/files/patch-SConstruct.diff (rev 0)
+++ trunk/dports/graphics/iulib/files/patch-SConstruct.diff 2011-05-18 08:45:03 UTC (rev 78689)
@@ -0,0 +1,25 @@
+--- SConstruct.orig 2011-05-17 17:29:32.000000000 -0700
++++ SConstruct 2011-05-17 20:11:54.000000000 -0700
+@@ -48,6 +48,12 @@
+ # opts.Add(BoolVariable('style', 'Check style', "no"))
+
+ env = Environment(options=opts, CXXFLAGS=["${opt}","${warn}"])
++env.Append( CPPPATH=["@@PREFIX@@/include"] )
++env.Append( LIBPATH=["@@PREFIX@@/lib/"] )
++env["CFLAGS"] = os.getenv("CFLAGS")
++env["CXXFLAGS"] = os.getenv("CXXFLAGS")
++env["LINKFLAGS"] = os.getenv("LINKFLAGS")
++
+ Help(opts.GenerateHelpText(env))
+
+ conf = Configure(env)
+@@ -146,7 +152,8 @@
+
+ if env["test"]:
+ for file in glob.glob("*/test-*.cc") + glob.glob("*/*/test-*.cc"):
+- if not file.startswith('vidio'):
++ #Jason C - I exclude test-pbmpng becuase it depends on convert from ImageMagick
++ if not (file.startswith('vidio') or file.startswith('imgio/tests/test-pbmpng')):
+ progs.Program(file[:-3],file)
+ progs.Test(file[:-3])
+ progs.Alias("test",file[:-3]+".passed")
Added: trunk/dports/graphics/iulib/files/patch-components.cc.diff
===================================================================
--- trunk/dports/graphics/iulib/files/patch-components.cc.diff (rev 0)
+++ trunk/dports/graphics/iulib/files/patch-components.cc.diff 2011-05-18 08:45:03 UTC (rev 78689)
@@ -0,0 +1,16 @@
+--- components/components.cc.orig 2011-05-17 17:37:48.000000000 -0700
++++ components/components.cc 2011-05-17 17:43:04.000000000 -0700
+@@ -23,10 +23,13 @@
+ // Web Sites: www.iupr.org, www.dfki.de
+
+ #include <unistd.h>
++#include <crt_externs.h>
+ #include "colib/colib.h"
+ #include "iulib.h"
+ #include "components.h"
+
++#define environ (*_NSGetEnviron())
++
+ using namespace colib;
+
+ namespace {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110518/82f4a6a6/attachment-0001.html>
More information about the macports-changes
mailing list