Ticket #28764: hdrsee_portfile_test.txt

File hdrsee_portfile_test.txt, 3.3 KB (added by pac@…, 13 years ago)
Line 
1# -*- 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
2# $Id$
3PortSystem         1.0
4name               hdrsee
5version            0.6
6categories         x11 graphics
7maintainers       tuxfamily.org:pac
8description       HDRSee is a LDR/HDR Image viewer
9long_description  HDRSee is a OpenGL/GLSL software that displays High Dynamic Range and Low Dynamic Range images. To display HDR images, HDRSee implements \
10                                  a few tone-mapping operators. Moreover, it is designed with a plugin mechanism \
11                  that let developers add, as easily as possible, their own tone-mapping operator.\
12                  All tone-mapping operations are done using Graphics Hardware thus maximing performance.
13
14homepage        http://mhdrviewer.gforge.inria.fr/
15
16master_sites    https://gforge.inria.fr/frs/download.php/28339/
17
18checksums       md5     9aa136ab38fd156b0555df5aea672622 \
19                                sha1    7915be7bc6be77aa941f054f6b0c1e0489aec142
20
21depends_lib     port:scons port:glew
22
23
24distfiles       ${distname}_348-src.tgz
25
26build.cmd           scons   
27build.pre_args      buildMode=release arch=nocona include=/opt/local/include/ libpath=/opt/local/lib/
28use_parallel_build  no
29build.target       
30
31
32configure {}
33
34destroot {
35# Create /opt/local/hdrsee   
36    xinstall -d -m 755 ${destroot}${prefix}/lib/${name}
37    xinstall -d -m 755 ${destroot}${prefix}/lib/${name}/toneMaps/
38    xinstall -d -m 755 ${destroot}${prefix}/lib/${name}/shaders/
39
40    xinstall -m 755  ${workpath}/${distname}/bin/release/darwin/hdrsee ${destroot}${prefix}/bin
41
42    xinstall -m 755  ${workpath}/${distname}/bin/release/darwin/shaders.shl ${destroot}${prefix}/lib/${name}
43    eval xinstall -m 755  [ glob ${workpath}/${distname}/bin/release/darwin/*.dylib ] ${destroot}${prefix}/lib/${name}
44    eval xinstall -m 755  [ glob ${workpath}/${distname}/bin/release/darwin/toneMaps/*.plg ] ${destroot}${prefix}/lib/${name}/tonemaps
45    eval xinstall -m 755  [ glob ${workpath}/${distname}/bin/release/darwin/shaders/*.frag ] ${destroot}${prefix}/lib/${name}/shaders
46    eval xinstall -m 755  [ glob ${workpath}/${distname}/bin/release/darwin/shaders/*.vert ] ${destroot}${prefix}/lib/${name}/shaders
47
48    # CHANGE DYD_LIBRARY_PATH as well !!!
49    # Change HDRSEE_PATH environment variable to ${destroot}${prefix}/lib/${name}
50 
51    puts "******************** INFO  ********************"
52    puts " hdrsee has been installed in ${prefix}/bin "
53    puts " Check that this directory is in your PATH !!! "
54    puts "***********************************************"
55
56    puts "******************** INFO  ********************"
57    puts " hdrsee libraries have been installed in ${prefix}/lib/${name} "
58    puts " UPDATE YOUR DYLD_LIBRARY_PATH now !!! "
59    puts " export DYLD_LIBRARY_PATH=${prefix}/lib/${name}:\$DYLD_LIBRARY_PATH"
60    puts "***********************************************"
61
62
63    puts "******************** INFO  ********************"
64    puts " hdrsee plugins have been installed in ${prefix}/lib/${name}/tonemaps/ "
65    puts " UPDATE HDRSEE_PATH now !!! "
66    puts " export HDRSEE_PATH=${prefix}/lib/${name}"
67    puts "***********************************************"
68
69
70}
71
72
73
74#    set cmd {puts set $env(HDRSEE_PATH) ${destroot}${prefix}/lib/${name}}
75#    puts "CMD IS: $cmd"
76#    eval $cmd