1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name py-sip |
---|
6 | version 4.4.2 |
---|
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 03c777fec36607a7c3210c65d88f8a66 |
---|
21 | dist_subdir python |
---|
22 | |
---|
23 | patchfiles patch-specs_macx-g++ |
---|
24 | |
---|
25 | depends_lib port:python24 |
---|
26 | |
---|
27 | configure.cmd ${prefix}/bin/python2.4 configure.py |
---|
28 | configure.pre_args -d ${prefix}/lib/python2.4/site-packages \ |
---|
29 | -e ${prefix}/include/python2.4 \ |
---|
30 | -v ${prefix}/share/sip |
---|
31 | configure.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 | |
---|
47 | variant darwin { |
---|
48 | configure.args -p macx-g++ |
---|
49 | } |
---|
50 | |
---|
51 | platform darwin 8 { |
---|
52 | configure.post_args-append CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0 |
---|
53 | } |
---|
54 | |
---|
55 | post-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 | |
---|