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

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

gkrellm: fix build error due to incorrect pkg-config invocation in Makefile (#34434)

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