Ticket #15527: Portfile

File Portfile, 1.8 KB (added by clubjuggler@…, 16 years ago)
Line 
1# $Id: Portfile 16 2008-06-06 13:34:47Z lovelace $
2
3PortSystem 1.0
4
5name            qtpfsgui
6version         1.9.2
7categories      aqua
8maintainers     clubjuggler@gmail.com openmaintainer
9description     Qtpfsgui is an open source graphical user interface application that aims to provide a workflow for HDR imaging.
10long_description Qtpfsgui is an open source graphical user interface application that aims to provide a workflow for HDR imaging.
11platforms       darwin
12homepage        http://qtpfsgui.sourceforge.net/
13master_sites    sourceforge
14use_bzip2       no
15distname        qtpfsgui-${version}
16patchfiles      qtpfsgui-1.9.2-app-path.patch qtpfsgui-1.9.2-exp10f.patch
17patch.pre_args  -p1
18
19depends_lib     port:qt4-mac port:exiv2 port:openexr port:ilmbase port:fftw-3-single port:tiff
20
21checksums       ${distname}.tar.gz md5 8a037c1dc75f04752dc36a59e7237fc4
22
23
24# This shouldn't be this hard.  Taken from portconfigure.tcl because
25# I couldn't see any other way to set this.
26# Set pre-compiler filter to use (ccache/distcc), if any.
27if {[tbool configure.ccache] && [tbool configure.distcc]} {
28   set filter "ccache "
29   append_list_to_environment_value configure "CCACHE_PREFIX" "distcc"
30} elseif {[tbool configure.ccache]} {
31   set filter "ccache "
32} elseif {[tbool configure.distcc]} {
33   set filter "distcc "
34} else {
35   set filter ""
36}
37
38# This also shouldn't be this hard.  All I want to do is set QMAKE_CC to the
39# environment variable CC (and QMAKE_CXX to CXX) that are set in portconfigure.tcl.
40# However, I couldn't figure out how to get the environment variable here so
41# this is a kludge to replicate what's done in portconfigure.tcl.  It should
42# be fixed as soon as possible.
43configure.pre_args  "PREFIX=${prefix} QMAKE_CC=\"${filter}gcc\" QMAKE_CXX=\"${filter}g++\""
44configure.cmd   "LOCALSOFT=${prefix} qmake"
45destroot.destdir INSTALL_ROOT=${destroot}
46