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

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

gkrellm: update to 2.3.5; see #24004 (maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 74109 2010-12-04 22:11:09Z ryandesign@macports.org $
2PortSystem      1.0
3
4name                    gkrellm
5version                 2.3.5
6categories              sysutils
7maintainers             markd openmaintainer
8
9description             A GTK based system monitor
10long_description        ${description}
11
12homepage                http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html
13
14platforms               darwin
15master_sites            http://members.dslextreme.com/users/billw/gkrellm/
16
17checksums               sha1    bcfc2efb5fd3f27e9bb703bda73f6a1d96b080df \
18                        rmd160  6ac017985981a8731690a54a296e673b6bf7fab0
19
20use_bzip2               yes
21
22depends_lib             port:gtk2
23
24use_configure           no
25
26build.type              gnu
27build.env               CC="${configure.cc}" \
28                        CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
29                        CPPFLAGS="${configure.cppflags}" \
30                        LDFLAGS="${configure.ldflags}"
31
32build.target            darwin9
33destroot.target         install_darwin9
34
35set plugin_dir          ${prefix}/libexec/gkrellm2/plugins
36set theme_dir           ${prefix}/share/gkrellm2/themes
37
38platform darwin 8 {
39    build.target        darwin
40    destroot.target     install_darwin
41}
42
43post-patch {
44        reinplace "s|\$(PREFIX)|${prefix}|g" \
45                "${worksrcpath}/Makefile"
46
47        reinplace "s|/usr/local/share/gkrellm2/themes|${theme_dir}|g" \
48                "${worksrcpath}/src/gkrellm.h"
49
50        reinplace "s|/usr/share/gkrellm2/themes|${theme_dir}|g" \
51                "${worksrcpath}/src/gkrellm.h"
52
53        reinplace "s|/usr/local/lib/gkrellm2/plugins|${plugin_dir}|g" \
54                "${worksrcpath}/src/gkrellm.h"
55
56        reinplace "s|/usr/lib/gkrellm2/plugins|${plugin_dir}|g" \
57                "${worksrcpath}/src/gkrellm.h"
58}
59
60post-destroot {
61        xinstall -m 755 -d ${destroot}${theme_dir}
62        xinstall -m 755 -d ${destroot}${plugin_dir}
63
64        destroot.keepdirs \
65                ${destroot}${theme_dir} \
66                ${destroot}${plugin_dir}
67}
68
69notes "
70After the first launch of GkrellM, the directory ~/.gkrellm2/\
71is created that contains the file user-config to keep your\
72settings, and also contains directories named themes/ and plugins/.\
73However, the plugins and themes directories for this port of\
74GkrellM are fixed at these locations:
75
76${plugin_dir}
77${theme_dir}
78"
Note: See TracBrowser for help on using the repository browser.