Ticket #12112: Portfile.2

File Portfile.2, 1.2 KB (added by akiva@…, 16 years ago)
Line 
1# $Id: Portfile 26151 2007-06-14 16:30:29Z takanori@macports.org $
2PortSystem      1.0
3name            wxd
4version         0.12
5maintainers     usami-k@yc5.so-net.ne.jp
6platforms       darwin
7categories      devel
8description     wxWidgets bindings for the D programming language
9long_description \
10                wxD is wxWidgets bindings for the D programming language.
11homepage        http://wxd.sourceforge.net/
12master_sites    sourceforge:wxd
13extract.suffix  .tgz
14checksums       md5 19c61c5ad617689a5344364814349394
15worksrcdir      ${name}
16depends_lib     bin:gdc:gdc \
17                port:wxWidgets
18
19configure {}
20
21destroot.destdir DESTDIR=${destroot} PREFIX=${prefix}
22post-destroot {
23    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
24    foreach f {COPYING.LIB LICENCE.txt README.txt} {
25        xinstall -m 644 ${worksrcpath}/${f} ${destroot}${prefix}/share/doc/${name}
26    }
27    copy ${worksrcpath}/Configs ${destroot}${prefix}/share/doc/${name}
28    copy ${worksrcpath}/Samples ${destroot}${prefix}/share/doc/${name}
29}
30
31universal_variant   no
32
33variant with_doxygen {
34    depends_build   port:doxygen
35    build.target-append docs
36    post-destroot {
37        copy ${worksrcpath}/html ${destroot}${prefix}/share/doc/${name}
38    }
39}