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

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

gkrellm: use notes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 74108 2010-12-04 21:59:29Z ryandesign@macports.org $
2PortSystem      1.0
3
4name                    gkrellm
5version                 2.3.2
6revision                1
7categories              sysutils
8maintainers             markd openmaintainer
9
10description             A GTK based system monitor
11long_description        ${description}
12
13homepage                http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html
14
15platforms               darwin
16master_sites            http://members.dslextreme.com/users/billw/gkrellm/
17checksums               md5 d5543a439ee77950282d06b000048be7 \
18                        sha1 fe94996c4fe084c28bf7a7fbc3f8d4fd64724ac0 \
19                        rmd160 0aacc0d0783cff5bb2fd8c6736553a3ce8874ad9
20use_bzip2               yes
21
22depends_lib             port:gtk2
23
24patchfiles              patch-Makefile.diff
25
26use_configure           no
27
28build.type              gnu
29build.env               CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
30                        CFLAGS=-I${prefix}/include \
31                        LDFLAGS=-L${prefix}/lib
32
33build.target            darwin
34destroot.target         install_darwin
35
36set plugin_dir          ${prefix}/libexec/gkrellm2/plugins
37set theme_dir           ${prefix}/share/gkrellm2/themes
38
39platform darwin 8 {
40        patchfiles-delete   patch-Makefile.diff
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.