Ticket #17020: qwtplot3d-Portfile_MP_1_7

File qwtplot3d-Portfile_MP_1_7, 1.6 KB (added by michaelld (Michael Dickens), 15 years ago)

Portfile for qwtplot3d under MacPorts 1.7

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2
3PortSystem          1.0
4
5name                qwtplot3d
6version             0.2.7
7revision            0
8categories          graphics science
9maintainers         nomaintainer
10description         Qt-based 3D-widgets
11long_description    Feature-rich Qt / OpenGL-based C++ programming library, \
12                    providing 3D-widgets for technical applications
13homepage            http://${name}.sourceforge.net
14master_sites        sourceforge:${name}
15distname            ${name}-${version}
16worksrcdir          ${name}
17extract.suffix      .tgz
18checksums           md5 2f14660152e2e26bfeaaeec479ed9f2b \
19                    sha1  4463fafb8420a91825e165da7a296aaabd70abea \
20                    rmd160 0f28462cb95ef6091d73642c8b26ece60d50bfb8
21platforms           darwin
22
23set qt_dir          ${prefix}/libexec/qt4-mac
24
25configure.cmd       ${qt_dir}/bin/qmake
26configure.pre_args 
27
28depends_lib         port:qwt
29
30patch {
31        reinplace "s|0.2.6|0.2.7|g" ${worksrcpath}/qwtplot3d.pro
32}
33
34destroot {
35        xinstall -m 0644 ${worksrcpath}/lib/lib${name}.${version}.dylib ${destroot}/${prefix}/lib
36        system "cd ${destroot}/${prefix}/lib && ln -s lib${name}.${version}.dylib lib${name}.0.2.dylib"
37        system "cd ${destroot}/${prefix}/lib && ln -s lib${name}.${version}.dylib lib${name}.0.dylib"
38        system "cd ${destroot}/${prefix}/lib && ln -s lib${name}.${version}.dylib lib${name}.dylib"
39        xinstall -m 755 -d  ${destroot}/${prefix}/include/${name}
40        eval xinstall -m 0644 [glob ${worksrcpath}/include/*] ${destroot}/${prefix}/include/${name}
41}