source: trunk/dports/multimedia/libgpod/Portfile @ 97894

Last change on this file since 97894 was 97894, checked in by rmstonecipher@…, 8 years ago

audio/taglib upgraded version from 1.7.2 to 1.8, incremented revision of 19 dependent ports due to .dylib change

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
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: Portfile 97894 2012-09-19 02:07:44Z rmstonecipher@macports.org $
3
4PortSystem          1.0
5
6name                libgpod
7version             0.8.0
8set branch          [join [lrange [split ${version} .] 0 1] .]
9revision            11
10categories          multimedia
11platforms           darwin
12maintainers         rmstonecipher openmaintainer
13description         libgpod is a library to access the contents of an iPod.
14long_description    ${description} This library is based on code used in the \
15                    gtkpod project. Starting with V0.96.CVS gtkpod depends \
16                    on this library.
17
18homepage            http://www.gtkpod.org/libgpod/
19license             LGPL-2.1+ GPL-2+
20master_sites        sourceforge:project/gtkpod/libgpod/libgpod-${branch}
21checksums           md5     6660f74cc53293dcc847407aa5f672ce \
22                    sha1    ddef7f3583535242b4928b300eb8aa6bc9a0e6dc \
23                    rmd160  446d5045f6c91e55e894c5d5370658afc8abe8ef
24
25depends_build       path:bin/pkg-config:pkgconfig \
26                    port:intltool
27
28depends_lib         port:p5.12-xml-parser \
29                    port:libplist \
30                    port:libpng \
31                    port:gdk-pixbuf2 \
32                    port:taglib \
33                    path:lib/pkgconfig/libusb-1.0.pc:libusb
34
35# make sure to not use already-installed files,
36# to the best of our ability
37configure.ldflags-delete "-L${prefix}/lib"
38configure.cppflags-delete "-I${prefix}/include"
39
40variant python27 conflicts python26 \
41description {Build Bindings for Python 2.7} {}
42
43variant python26 conflicts python27 \
44description {Build Bindings for Python 2.6} {}
45
46# default to python27 bindings
47if {![variant_isset python27] && ![variant_isset python26]} {
48    default_variants +python27
49}
50
51# allow for -python27 to disable all Python support
52
53set python.branch ""
54if {[variant_isset python27]} {
55    set python.branch 2.7
56} elseif {[variant_isset python26]} {
57    set python.branch 2.6
58}
59
60if {${python.branch} != ""} {
61    set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
62    set pyver [join [split ${python.branch} "."] ""]
63    depends_lib-append  port:py${pyver}-gobject port:py${pyver}-mutagen
64    configure.env-append PYGOBJECT_CODEGEN=${python.prefix}/bin/pygobject-codegen-2.0
65    configure.pkg_config_path ${python.prefix}/lib/pkgconfig
66    configure.env-append PYTHON=${prefix}/bin/python${python.branch}
67} else {
68    configure.args-append --disable-pygobject --with-python=no
69}
70
71configure.args-append --disable-silent-rules
72
73post-destroot {
74    # fix install location of Python stuff, if variant is selected
75    if {${python.branch} != ""} {
76        set dr_python_dir ${destroot}${python.prefix}/lib
77        xinstall -m 755 -d ${dr_python_dir}
78        move ${destroot}${prefix}/lib/python${python.branch} \
79            ${dr_python_dir}
80    }
81}
82
83livecheck.type          regex
84livecheck.url           http://sourceforge.net/projects/gtkpod/files/${name}
85livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.