[38442] trunk/dports/aqua
jmr at macports.org
jmr at macports.org
Sun Jul 20 09:15:10 PDT 2008
Revision: 38442
http://trac.macosforge.org/projects/macports/changeset/38442
Author: jmr at macports.org
Date: 2008-07-20 09:15:10 -0700 (Sun, 20 Jul 2008)
Log Message:
-----------
New port: qtpfsgui (#15527)
Added Paths:
-----------
trunk/dports/aqua/qtpfsgui/
trunk/dports/aqua/qtpfsgui/Portfile
trunk/dports/aqua/qtpfsgui/files/
trunk/dports/aqua/qtpfsgui/files/patch-qtpfsgui-1.9.2-app-path.diff
trunk/dports/aqua/qtpfsgui/files/patch-qtpfsgui-1.9.2-exp10f.diff
Added: trunk/dports/aqua/qtpfsgui/Portfile
===================================================================
--- trunk/dports/aqua/qtpfsgui/Portfile (rev 0)
+++ trunk/dports/aqua/qtpfsgui/Portfile 2008-07-20 16:15:10 UTC (rev 38442)
@@ -0,0 +1,44 @@
+# $Id$
+
+PortSystem 1.0
+
+name qtpfsgui
+version 1.9.2
+categories aqua graphics
+maintainers gmail.com:clubjuggler openmaintainer
+description GUI for HDR imaging workflow
+long_description Qtpfsgui is an open source graphical user interface \
+ application that aims to provide a workflow for HDR imaging.
+platforms darwin
+homepage http://qtpfsgui.sourceforge.net/
+master_sites sourceforge
+patchfiles patch-qtpfsgui-1.9.2-app-path.diff patch-qtpfsgui-1.9.2-exp10f.diff
+patch.pre_args -p1
+
+depends_lib port:qt4-mac port:exiv2 port:openexr port:ilmbase port:fftw-3-single port:tiff
+
+checksums md5 8a037c1dc75f04752dc36a59e7237fc4
+
+
+# This shouldn't be this hard. Taken from portconfigure.tcl because
+# I couldn't see any other way to set this.
+# Set pre-compiler filter to use (ccache/distcc), if any.
+if {[tbool configure.ccache] && [tbool configure.distcc]} {
+ set filter "ccache "
+ append_list_to_environment_value configure "CCACHE_PREFIX" "distcc"
+} elseif {[tbool configure.ccache]} {
+ set filter "ccache "
+} elseif {[tbool configure.distcc]} {
+ set filter "distcc "
+} else {
+ set filter ""
+}
+
+# This also shouldn't be this hard. All I want to do is set QMAKE_CC to the
+# environment variable CC (and QMAKE_CXX to CXX) that are set in portconfigure.tcl.
+# However, I couldn't figure out how to get the environment variable here so
+# this is a kludge to replicate what's done in portconfigure.tcl. It should
+# be fixed as soon as possible.
+configure.pre_args "PREFIX=${prefix} QMAKE_CC=\"${filter}gcc\" QMAKE_CXX=\"${filter}g++\""
+configure.cmd "LOCALSOFT=${prefix} qmake"
+destroot.destdir INSTALL_ROOT=${destroot}
Property changes on: trunk/dports/aqua/qtpfsgui/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/aqua/qtpfsgui/files/patch-qtpfsgui-1.9.2-app-path.diff
===================================================================
--- trunk/dports/aqua/qtpfsgui/files/patch-qtpfsgui-1.9.2-app-path.diff (rev 0)
+++ trunk/dports/aqua/qtpfsgui/files/patch-qtpfsgui-1.9.2-app-path.diff 2008-07-20 16:15:10 UTC (rev 38442)
@@ -0,0 +1,16 @@
+diff -uNr qtpfsgui-1.9.2.orig/project.pro qtpfsgui-1.9.2/project.pro
+--- qtpfsgui-1.9.2.orig/project.pro 2008-04-30 10:23:36.000000000 -0400
++++ qtpfsgui-1.9.2/project.pro 2008-06-06 00:58:11.000000000 -0400
+@@ -302,7 +302,11 @@
+ }
+ }
+
+-target.path = $${PREFIX}/bin
++mac {
++ target.path = /Applications/MacPorts
++} else {
++ target.path = $${PREFIX}/bin
++}
+ menu.files = qtpfsgui.desktop
+ menu.path = $${PREFIX}/share/applications
+ icon.files = images/qtpfsgui.png
Added: trunk/dports/aqua/qtpfsgui/files/patch-qtpfsgui-1.9.2-exp10f.diff
===================================================================
--- trunk/dports/aqua/qtpfsgui/files/patch-qtpfsgui-1.9.2-exp10f.diff (rev 0)
+++ trunk/dports/aqua/qtpfsgui/files/patch-qtpfsgui-1.9.2-exp10f.diff 2008-07-20 16:15:10 UTC (rev 38442)
@@ -0,0 +1,11 @@
+--- qtpfsgui-1.9.2.orig/src/TM_operators/mantiuk06/contrast_domain.cpp 2008-04-28 12:15:22.000000000 -0400
++++ qtpfsgui-1.9.2/src/TM_operators/mantiuk06/contrast_domain.cpp 2008-06-06 01:09:54.000000000 -0400
+@@ -41,7 +41,7 @@
+ #include <string.h>
+ #include <math.h>
+
+-#ifdef WIN32
++#if defined(WIN32) || defined(__APPLE__)
+ #define exp10f( x ) exp( x * log (10))
+ #endif
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080720/9242a853/attachment.html
More information about the macports-changes
mailing list