source: trunk/dports/science/scidavis/Portfile @ 147879

Last change on this file since 147879 was 144117, checked in by nicos@…, 4 years ago

scidavis: adding missing dependency libGLU (ticket #50186)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
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: Portfile 144117 2016-01-02 03:28:15Z nicos@macports.org $
3
4PortSystem          1.0
5PortGroup           qmake 1.0
6
7name                scidavis
8version             1.D9
9categories          science
10license             GPL-2+
11maintainers         nicos openmaintainer
12
13description         SciDAVis is a user-friendly data analysis and visualization program \
14                    primarily aimed at high-quality plotting of scientific data
15long_description    ${description}
16
17platforms           darwin
18homepage            http://scidavis.sourceforge.net
19master_sites        sourceforge:project/scidavis/SciDAVis/${version}
20distname            ${name}.${version}
21
22depends_build-append    port:doxygen \
23                        path:bin/cmake:cmake
24
25depends_lib-append  port:qwt52 \
26                    port:qwtplot3d \
27                    port:gsl \
28                    port:boost \
29                    port:muparser \
30                    port:zlib \
31                    port:libGLU
32
33checksums           rmd160  ecd99befd493e54e3bd599f174f291ddb2c92d2b \
34                    sha256  484089713cec7824f9557ac345ec2693f24e074999d6d1d7d00c10b1e2f37eb8
35
36universal_variant   no
37
38patchfiles          patch-OriginObj.diff \
39                    patch-liborigin.diff
40
41configure.pre_args-append   "'CONFIG+=osx_dist noassistant'"
42
43pre-configure {
44    reinplace "s|/usr|${prefix}|g" ${worksrcpath}/config.pri
45    reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro
46    reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/explin/explin.pro
47    reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/fitRational0/fitRational0.pro
48    reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro
49    reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/planck_wavelength/planck_wavelength.pro
50
51    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/3rdparty/liborigin/CMakeLists.txt
52
53    if {![variant_isset python27]} {
54        reinplace "s|CONFIG+=python| |g" \
55            ${worksrcpath}/config.pri
56    }
57}
58
59post-destroot {
60    #Put the application to the right folder
61    move ${destroot}${prefix}/bin/scidavis.app ${destroot}${applications_dir}/scidavis.app
62
63    if {[variant_isset python27]} {
64        move ${destroot}/opt/etc/scidavisrc.py ${destroot}${prefix}/etc/scidavisrc.py
65    }
66}
67
68variant python27 description "add support for python scripting" {
69    # Can use either py*-pyqt4 or py*-pyqt4-devel.
70    depends_lib-append port:python27 \
71                       port:py27-sip \
72                       path:share/py27-sip/PyQt4:py27-pyqt4
73}
74
75livecheck.type      sourceforge
76livecheck.url       http://sourceforge.net/projects/scidavis/files/SciDAVis/
77livecheck.regex     (\[0-9.\]+\[A-Z\]+\[0-9.\])
Note: See TracBrowser for help on using the repository browser.