Ticket #8473: Portfile.2

File Portfile.2, 1.7 KB (added by aschenke@…, 18 years ago)

Portfile for py-sip-4.4.2

Line 
1# $Id: $
2
3PortSystem 1.0
4
5name                    py-sip
6version                 4.4.2
7categories              python devel
8platforms               darwin
9maintainers             mww@opendarwin.org
10description             create Python bindings for C and C++ libraries
11long_description        SIP is a tool that makes it very easy to create Python \
12                                bindings for C and C++ libraries. It was originally \
13                                developed to create PyQt, the Python bindings for the \
14                                Qt toolkit, but can be used to create bindings for any \
15                                C or C++ library.
16
17homepage                http://www.riverbankcomputing.co.uk/sip/index.php
18master_sites    http://www.riverbankcomputing.com/Downloads/sip4/
19distname                sip-${version}
20checksums               md5 03c777fec36607a7c3210c65d88f8a66
21dist_subdir             python
22
23patchfiles      patch-specs_macx-g++
24
25depends_lib             port:python24
26
27configure.cmd   ${prefix}/bin/python2.4 configure.py
28configure.pre_args  -d ${prefix}/lib/python2.4/site-packages \
29                                -e ${prefix}/include/python2.4 \
30                                -v ${prefix}/share/sip
31configure.post_args     LFLAGS="-L${prefix}/lib"
32
33#variant qt3-x11 {
34#       depends_lib-append                      lib:libqt-mt:qt3
35#       configure.env-append            QTDIR=${prefix}
36#       configure.args-append           -l qt-mt
37#       configure.post_args-append      INCDIR_QT=${prefix}/include/qt3
38#}
39
40#variant qt3-mac {
41#       depends_lib-append                      lib:libqt-mt:qt3-mac
42#       configure.env-append            QTDIR=${prefix}
43#       configure.args-append           -l qt-mt
44#       configure.post_args-append      INCDIR_QT=${prefix}/include/qt3
45#}
46
47variant darwin {
48        configure.args  -p macx-g++
49}
50
51platform darwin 8 {
52        configure.post_args-append      CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0
53}
54
55post-destroot {
56        xinstall -m 755 -d ${destroot}/${prefix}/share/doc
57        file copy ${worksrcpath}/doc ${destroot}/${prefix}/share/doc/${name}
58        xinstall -m 644 -W ${worksrcpath} LICENSE NEWS README THANKS TODO \
59                ${destroot}${prefix}/share/doc/${name}
60}
61