source: trunk/dports/sysutils/gkrellm/Portfile @ 88008

Last change on this file since 88008 was 88008, checked in by dports@…, 7 years ago

gkrellm: apply an upstream patch to fix crashes on Lion (#29565)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 88008 2011-12-15 23:42:32Z dports@macports.org $
3
4PortSystem              1.0
5
6name                    gkrellm
7version                 2.3.5
8revision                3
9categories              sysutils
10platforms               darwin
11maintainers             markd openmaintainer
12license                 GPL-3+
13
14description             A GTK based system monitor
15
16long_description        ${description}
17
18homepage                http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html
19master_sites            http://members.dslextreme.com/users/billw/gkrellm/
20
21checksums               sha1    bcfc2efb5fd3f27e9bb703bda73f6a1d96b080df \
22                        rmd160  6ac017985981a8731690a54a296e673b6bf7fab0
23
24use_bzip2               yes
25
26depends_build           port:pkgconfig
27
28depends_lib             port:gtk2 \
29                        port:xorg-libsm
30
31patchfiles              207a0519ac73290ba65b6e5f7446549a2a66f5d2.patch
32
33use_configure           no
34
35variant universal {}
36
37build.type              gnu
38build.env               CC="${configure.cc}" \
39                        CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
40                        CPPFLAGS="${configure.cppflags}" \
41                        LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
42
43build.target            darwin9
44destroot.target         install_darwin9
45
46set plugin_dir          ${prefix}/libexec/gkrellm2/plugins
47set theme_dir           ${prefix}/share/gkrellm2/themes
48
49platform darwin 8 {
50    build.target        darwin
51    destroot.target     install_darwin
52}
53
54post-patch {
55    reinplace "s|\$(PREFIX)|${prefix}|g" \
56        "${worksrcpath}/Makefile"
57
58    reinplace "s|/usr/local/share/gkrellm2/themes|${theme_dir}|g" \
59        "${worksrcpath}/src/gkrellm.h"
60
61    reinplace "s|/usr/share/gkrellm2/themes|${theme_dir}|g" \
62        "${worksrcpath}/src/gkrellm.h"
63
64    reinplace "s|/usr/local/lib/gkrellm2/plugins|${plugin_dir}|g" \
65        "${worksrcpath}/src/gkrellm.h"
66
67    reinplace "s|/usr/lib/gkrellm2/plugins|${plugin_dir}|g" \
68        "${worksrcpath}/src/gkrellm.h"
69}
70
71post-destroot {
72    xinstall -m 755 -d ${destroot}${theme_dir}
73    xinstall -m 755 -d ${destroot}${plugin_dir}
74
75    destroot.keepdirs \
76        ${destroot}${theme_dir} \
77        ${destroot}${plugin_dir}
78}
79
80notes "
81After the first launch of GkrellM, the directory ~/.gkrellm2/\
82is created that contains the file user-config to keep your\
83settings, and also contains directories named themes/ and plugins/.\
84However, the plugins and themes directories for this port of\
85GkrellM are fixed at these locations:
86
87${plugin_dir}
88${theme_dir}
89"
90
91startupitem.create      yes
92startupitem.executable  ${prefix}/bin/gkrellmd
Note: See TracBrowser for help on using the repository browser.