Ticket #28764: Portfile

File Portfile, 3.0 KB (added by pac@…, 11 years ago)

The new portfile that needs to be validated

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               HDRSeeGlut
5version            0.65
6categories         x11 graphics
7license            CeCILL CeCILL-C
8
9platforms         darwin
10supported_archs   x86_64
11
12maintainers       tuxfamily.org:pac
13description       HDRSee is a GPU-based High Dynamic Range (HDR) Image viewer
14long_description  HDRSee is a OpenGL/GLSL software that displays High Dynamic Range and Low Dynamic Range images. To display HDR images, HDRSee implements \
15                                  a few tone-mapping operators. Moreover, it is designed with a plugin mechanism \
16                  that let developers add, as easily as possible, their own tone-mapping operator.\
17                  All tone-mapping operations are done using Graphics Hardware thus maximing performance.
18
19homepage        http://mhdrviewer.gforge.inria.fr/
20
21master_sites    https://gforge.inria.fr/frs/download.php/33356
22
23checksums       md5     93024f951458069bfb9054615136e90e \
24                                sha1    3645d540308e321fd0ca1e4e8daf97ba20e243c9 \
25                rmd160  8869707c5d0c58605886de527648613035a3d140
26
27depends_lib     port:glew
28depends_build   port:scons
29
30distfiles       ${distname}.tar.tgz
31
32build.cmd           scons   
33build.pre_args      -f SConstruct.HDRSeeGlut buildMode=release include=${prefix}/include/ libpath=${prefix}/lib/
34use_parallel_build  no
35build.target       
36
37use_configure no
38destroot.violate_mtree     yes
39
40destroot {
41
42    # Create /opt/local/hdrseeGLUT
43    xinstall -d -m 755 ${destroot}${prefix}/${name}
44    xinstall -d -m 755 ${destroot}${prefix}/${name}/toneMaps/
45    xinstall -d -m 755 ${destroot}${prefix}/${name}/shaders/
46
47    xinstall -m 755  ${workpath}/${distname}/test-install/HDRSeeGlut ${destroot}${prefix}/${name}
48    xinstall -m 755  ${workpath}/${distname}/test-install/shaders.shl ${destroot}${prefix}/${name}
49
50#    eval xinstall -m 755  [ glob ${workpath}/${distname}/test-install/*.dylib ] ${destroot}${prefix}/${name}
51    eval xinstall -m 755  [ glob ${workpath}/${distname}/test-install/toneMaps/*.plg ] ${destroot}${prefix}/${name}/tonemaps
52    eval xinstall -m 755  [ glob ${workpath}/${distname}/test-install/shaders/*.frag ] ${destroot}${prefix}/${name}/shaders
53    eval xinstall -m 755  [ glob ${workpath}/${distname}/test-install/shaders/*.vert ] ${destroot}${prefix}/${name}/shaders
54
55    ui_msg "******************** INFO  ********************"   
56    ui_msg " hdrsee has been installed in ${prefix}/${name} "
57    ui_msg " Check that this directory is in your PATH !!! "
58    ui_msg "***********************************************"
59
60    ui_msg "******************** INFO  ********************"
61    ui_msg " hdrsee default plugins have been installed in ${prefix}/${name}/tonemaps/ "
62    ui_msg " You can set HDRSEE_PATH if you would like to add another path from where plugins will be loaded !!! "
63    ui_msg " export HDRSEE_PATH=YOUR_NEW_PATH_WHERE_YOUR_PLUGINS_ARE"
64    ui_msg "***********************************************"
65
66   
67}
68
69
70post-destroot {
71
72}