| 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-gst1-python |
|---|
| 8 | python.versions 27 34 |
|---|
| 9 | python.default_version 27 |
|---|
| 10 | version 1.4.0 |
|---|
| 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-gst1-python |
|---|
| 23 | use_xz yes |
|---|
| 24 | checksums rmd160 0527738b6260a06a54584a8bb8ebf6c278b7c3ac \ |
|---|
| 25 | sha256 b1e40c29ceb41b03f08d38aca6056054f0341d0706276326dceeec6ac8d53d3e |
|---|
| 26 | |
|---|
| 27 | # pre-declare provided subports |
|---|
| 28 | |
|---|
| 29 | foreach py_ver ${python.versions} { |
|---|
| 30 | subport py${py_ver}-gst1-python {} |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | if {${name} ne ${subport}} { |
|---|
| 34 | |
|---|
| 35 | depends_build port:pkgconfig |
|---|
| 36 | depends_lib port:py${python.version}-gobject3 \ |
|---|
| 37 | port:gstreamer1-gst-plugins-base |
|---|
| 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 | |
|---|
| 51 | livecheck.url http://gstreamer.freedesktop.org/src/${my_name}/ |
|---|
| 52 | livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
|---|