source: trunk/dports/sysutils/OpenIPMI/Portfile

Last change on this file was 108689, checked in by ryandesign@…, 4 years ago

OpenIPMI: allow glib2-devel to satisfy glib2 dependency

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 108689 2013-07-31 01:19:52Z ryandesign@macports.org $
3PortSystem          1.0
4
5name                OpenIPMI
6version             2.0.19
7revision            2
8license             {GPL-2 LGPL-2}
9categories          sysutils
10platforms           darwin
11maintainers         eborisch \
12                    openmaintainer
13
14description         OpenIPMI provides a full-function IPMI interface.
15
16long_description    The Open IPMI project aims to develop an open code base to\
17                    allow access to platform information using Intelligent\
18                    Platform Management Interface (IPMI).
19
20homepage            http://openipmi.sourceforge.net/
21master_sites        sourceforge:openipmi
22
23universal_variant   no
24use_parallel_build  no
25
26checksums \
27    rmd160  ca624701659416da55a6b96abbec6aef4d323a26 \
28    sha256  5b0de4741f07e350bf53b7d31bb20dd1109c2dc005dfb13969d8a9ff290f3a4e
29
30patchfiles          weak_symbols.patch \
31                    configure.in.patch
32
33depends_lib         port:popt \
34                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
35                    port:net-snmp \
36                    port:tcl
37                       
38configure.args      --with-poptlibs=-lpopt \
39                    --with-swig=no \
40                    --with-python=no \
41                    --with-perl=no
42
43variant python description "Build python bindings" {
44    configure.args-delete --with-swig=no --with-python=no
45    depends_lib-append      port:swig-python \
46                            port:py27-tkinter
47}
48
49variant perl description "Build perl bindings" {
50    configure.args-delete --with-swig=no --with-perl=no
51    depends_lib-append      port:swig-perl \
52                            port:perl5
53}
54
55platform darwin {
56    post-extract {
57        system -W ${worksrcpath} \
58            "find . -name 'Makefile*' | xargs sed -i '' -e 's/Map/map/g'"
59        system -W ${worksrcpath} \
60            "grep -R 'rdynamic' -l * | xargs sed -i '' -e 's/-rdynamic//g'"
61        set REPLSTR "s/LD_PRELOAD=/DYLD_INSERT_LIBRARIES=/g"
62        system -W ${worksrcpath} \
63            "grep -R 'LD_PRELOAD' -l * | xargs sed -i '' -e '${REPLSTR}'"
64    }
65
66    use_autoreconf  yes
67
68    post-configure {
69        set REPLSTR "s/lib(\[^ :\/\]*)\.so/lib\\1.dylib/g"
70        system -W ${worksrcpath} \
71            "find . -name 'Makefile' | xargs sed -E -i '' -e '${REPLSTR}'"
72
73        if {[variant_isset python]} {
74            set LIBPATH \
75"../../../unix/.libs:../../../lib/.libs:../../../utils/.libs:../../../cmdlang/.libs:../../../tcl/.libs:../../../swig/python/.libs"
76            reinplace "s|DYLD_\[^ \]*|DYLD_LIBRARY_PATH=${LIBPATH}|g" \
77                swig/python/openipmigui/Makefile
78        }
79    }
80}
81
82livecheck.type      sourceforge
83livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.