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

Last change on this file since 17833 was 17833, checked in by markd, 14 years ago

Correct maintainer address.

  • Property svn:eol-style set to native
File size: 2.0 KB
RevLine 
[17833]1# $Id: Portfile,v 1.2 2006/05/03 06:52:33 markd Exp $
[17832]2PortSystem      1.0
3
4name                    gkrellm
5version                 2.2.9
6categories              sysutils
[17833]7maintainers             markd@opendarwin.org
[17832]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/
16checksums               md5 5334155797901724f4eb46a82ad72395
17use_bzip2               yes
18
19depends_lib             port:gtk2
20
21use_configure           no
22
23build.type              gnu
24build.env               CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
25                        CFLAGS=-I${prefix}/include \
26                        LDFLAGS=-L${prefix}/lib
27
28build.target            darwin
29destroot.target         install_darwin
30
31set plugin_dir          ${prefix}/libexec/gkrellm2/plugins
32set theme_dir           ${prefix}/share/gkrellm2/themes
33
34post-patch {
35        reinplace "s|\$(PREFIX)|${prefix}|g" \
36                "${worksrcpath}/Makefile"
37
38        reinplace "s|/usr/local/share/gkrellm2/themes|${theme_dir}|g" \
39                "${worksrcpath}/src/gkrellm.h"
40
41        reinplace "s|/usr/share/gkrellm2/themes|${theme_dir}|g" \
42                "${worksrcpath}/src/gkrellm.h"
43
44        reinplace "s|/usr/local/lib/gkrellm2/plugins|${plugin_dir}|g" \
45                "${worksrcpath}/src/gkrellm.h"
46
47        reinplace "s|/usr/lib/gkrellm2/plugins|${plugin_dir}|g" \
48                "${worksrcpath}/src/gkrellm.h"
49}
50
51post-destroot {
52        xinstall -m 755 -d ${destroot}${theme_dir}
53        xinstall -m 755 -d ${destroot}${plugin_dir}
54
55        destroot.keepdirs \
56                ${destroot}${theme_dir} \
57                ${destroot}${plugin_dir}
58}
59
60post-activate {
61ui_msg "\n
62
63After the first launch of GkrellM, the directory ~/.gkrellm2/
64is created that contains the file user-config to keep your
65settings, and also contains directories named themes/ and plugins/.
66However, the plugins and themes directories for this port of
67GkrellM are fixed at these locations:
68
69${plugin_dir}
70${theme_dir}
71\n"
72}
Note: See TracBrowser for help on using the repository browser.