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

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

audio/taglib upgraded version from 1.6.3 to 1.7, incremented revision of 15 dependents

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