1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name py-sip |
---|
6 | version 4.4.1 |
---|
7 | categories python devel |
---|
8 | platforms darwin |
---|
9 | maintainers mww@opendarwin.org |
---|
10 | description create Python bindings for C and C++ libraries |
---|
11 | long_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 | |
---|
17 | homepage http://www.riverbankcomputing.co.uk/sip/index.php |
---|
18 | master_sites http://www.riverbankcomputing.com/Downloads/sip4/ |
---|
19 | distname sip-${version} |
---|
20 | checksums md5 81e62ad2a715151992bc8309863056b5 |
---|
21 | dist_subdir python |
---|
22 | |
---|
23 | depends_lib port:python24 |
---|
24 | |
---|
25 | configure.cmd ${prefix}/bin/python2.4 configure.py |
---|
26 | configure.pre_args -d ${prefix}/lib/python2.4/site-packages \ |
---|
27 | -e ${prefix}/include/python2.4 \ |
---|
28 | -v ${prefix}/share/sip |
---|
29 | configure.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 | |
---|
45 | variant darwin { |
---|
46 | configure.args -p macx-g++ |
---|
47 | } |
---|
48 | |
---|
49 | platform darwin 8 { |
---|
50 | configure.post_args-append CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0 |
---|
51 | } |
---|
52 | |
---|
53 | post-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 | |
---|