Ticket #17020: qwtplot3d-Portfile

File qwtplot3d-Portfile, 1.3 KB (added by michaelld (Michael Dickens), 16 years ago)

Portfile for qwtplot3d 0.2.7

Line 
1PortSystem          1.0
2
3name                qwtplot3d
4version             0.2.7
5revision            0
6categories          graphics science
7maintainers         nomaintainer
8description         Qt-based 3D-widgets
9long_description    Feature-rich Qt / OpenGL-based C++ programming library, \
10                    providing 3D-widgets for technical applications
11homepage            http://${name}.sourceforge.net
12master_sites        sourceforge:${name}
13distname            ${name}-${version}
14worksrcdir          ${name}
15extract.suffix      .tgz
16checksums           md5 2f14660152e2e26bfeaaeec479ed9f2b \
17                    sha1  4463fafb8420a91825e165da7a296aaabd70abea \
18                    rmd160 0f28462cb95ef6091d73642c8b26ece60d50bfb8
19platforms           darwin
20
21configure.cmd       qmake
22configure.pre_args 
23
24depends_lib         port:qwt
25
26patch {
27        reinplace "s|0.2.6|0.2.7|g" ${worksrcpath}/qwtplot3d.pro
28}
29
30destroot {
31        cd ${destroot}/${prefix}/lib
32        xinstall -m 0644 ${worksrcpath}/lib/lib${name}.${version}.dylib ${destroot}/${prefix}/lib
33        ln -s lib${name}.${version}.dylib lib${name}.0.2.dylib
34        ln -s lib${name}.${version}.dylib lib${name}.0.dylib
35        ln -s lib${name}.${version}.dylib lib${name}.dylib
36        system "mkdir -p ${destroot}/${prefix}/include/${name}"
37        eval xinstall -m 0644 [glob ${worksrcpath}/include/*] ${destroot}/${prefix}/include/${name}
38}