1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-gst010-python |
---|
8 | python.versions 27 |
---|
9 | python.default_version 27 |
---|
10 | version 0.10.22 |
---|
11 | revision 0 |
---|
12 | license LGPL |
---|
13 | categories python gnome multimedia |
---|
14 | maintainers springermac openmaintainer |
---|
15 | description GStreamer python bindings |
---|
16 | set my_name gst-python |
---|
17 | long_description ${my_name} allows python programs built with the gnome toolkit to use gstreamer for multimedia input/output |
---|
18 | homepage http://gstreamer.freedesktop.org/modules/gst-python.html |
---|
19 | platforms darwin |
---|
20 | master_sites http://gstreamer.freedesktop.org/src/${my_name}/ |
---|
21 | distname ${my_name}-${version} |
---|
22 | dist_subdir py-gst010-python |
---|
23 | use_bzip2 yes |
---|
24 | checksums rmd160 6c4e43c5464297e0d45aa89f3cb82ed424caa283 \ |
---|
25 | sha256 8f26f519a5bccd770864317e098e5e307fc5ad1201eb96329634b6508b253178 |
---|
26 | |
---|
27 | # pre-declare provided subports |
---|
28 | |
---|
29 | foreach py_ver ${python.versions} { |
---|
30 | subport py${py_ver}-gst010-python {} |
---|
31 | } |
---|
32 | |
---|
33 | if {${name} ne ${subport}} { |
---|
34 | |
---|
35 | depends_build port:pkgconfig |
---|
36 | depends_lib port:py${python.version}-pygtk \ |
---|
37 | port:gstreamer010-gst-plugins-good |
---|
38 | |
---|
39 | #gst-python does not use setup.py, so python arguments are passed to configure |
---|
40 | use_configure yes |
---|
41 | configure.pre_args-delete --prefix=${prefix} |
---|
42 | configure.pre_args-append --prefix=${python.prefix} |
---|
43 | configure.pkg_config_path ${python.prefix}/lib/pkgconfig |
---|
44 | configure.python ${python.bin} |
---|
45 | |
---|
46 | build.cmd make |
---|
47 | build.target all |
---|
48 | |
---|
49 | destroot.cmd ${build.cmd} |
---|
50 | destroot.destdir DESTDIR=${destroot} |
---|
51 | } |
---|
52 | |
---|
53 | livecheck.url http://gstreamer.freedesktop.org/src/${my_name}/ |
---|
54 | livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|