Ticket #47471: py-gst1-python

File py-gst1-python, 1.9 KB (added by springermac (Jonathan Springer), 6 years ago)

py-gst1-python

Line 
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
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-gst1-python
8python.versions 27 34
9python.default_version 27
10version             1.4.0
11revision            0
12license             LGPL
13categories          python gnome multimedia
14maintainers         springermac openmaintainer
15description         GStreamer python bindings
16set my_name         gst-python
17long_description    ${my_name} allows python programs built with the gnome toolkit to use gstreamer for multimedia input/output
18homepage            http://gstreamer.freedesktop.org/modules/gst-python.html
19platforms           darwin
20master_sites        http://gstreamer.freedesktop.org/src/${my_name}/
21distname            ${my_name}-${version}
22dist_subdir         py-gst1-python
23use_xz              yes
24checksums           rmd160 0527738b6260a06a54584a8bb8ebf6c278b7c3ac \
25                    sha256 b1e40c29ceb41b03f08d38aca6056054f0341d0706276326dceeec6ac8d53d3e
26
27# pre-declare provided subports
28
29foreach py_ver ${python.versions} {
30    subport py${py_ver}-gst1-python {}
31}
32
33if {${name} ne ${subport}} {
34
35    depends_build       port:pkgconfig
36    depends_lib         port:py${python.version}-gobject3 \
37                        port:gstreamer1-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.pkg_config_path   ${python.prefix}/lib/pkgconfig
42    configure.python            ${python.bin}
43   
44    build.cmd           make
45    build.target        all
46   
47    destroot.cmd        ${build.cmd}
48    destroot.destdir    DESTDIR=${destroot}
49}
50
51livecheck.url       http://gstreamer.freedesktop.org/src/${my_name}/
52livecheck.regex     "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"