Ticket #8473: Portfile

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

Portfile for py-sip 4.4.1

Line 
1# $Id: $
2
3PortSystem 1.0
4
5name                    py-sip
6version                 4.4.1
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 81e62ad2a715151992bc8309863056b5
21dist_subdir             python
22
23depends_lib             port:python24
24
25configure.cmd   ${prefix}/bin/python2.4 configure.py
26configure.pre_args  -d ${prefix}/lib/python2.4/site-packages \
27                                -e ${prefix}/include/python2.4 \
28                                -v ${prefix}/share/sip
29configure.post_args     LFLAGS="-L${prefix}/lib"
30
31#variant qt3-x11 {
32#       depends_lib-append                      lib:libqt-mt:qt3
33#       configure.env-append            QTDIR=${prefix}
34#       configure.args-append           -l qt-mt
35#       configure.post_args-append      INCDIR_QT=${prefix}/include/qt3
36#}
37
38#variant qt3-mac {
39#       depends_lib-append                      lib:libqt-mt:qt3-mac
40#       configure.env-append            QTDIR=${prefix}
41#       configure.args-append           -l qt-mt
42#       configure.post_args-append      INCDIR_QT=${prefix}/include/qt3
43#}
44
45variant darwin {
46        configure.args  -p macx-g++
47}
48
49platform darwin 8 {
50        configure.post_args-append      CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0
51}
52
53post-destroot {
54        xinstall -m 755 -d ${destroot}/${prefix}/share/doc
55        file copy ${worksrcpath}/doc ${destroot}/${prefix}/share/doc/${name}
56        xinstall -m 644 -W ${worksrcpath} LICENSE NEWS README THANKS TODO \
57                ${destroot}${prefix}/share/doc/${name}
58}
59