aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/gkrellm/Makefile
blob: 24784e81f2cc634963048eef6b42a4183431ecae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:    gkrellm
# Date Created:     Mar 4 2000
# Whom:         Hajimu UMEMOTO <ume@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gkrellm
PORTVERSION=    0.10.5
CATEGORIES= sysutils ipv6
MASTER_SITES=   http://web.wt.net/~billw/gkrellm/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ume

MAINTAINER= ume@FreeBSD.org

USE_X_PREFIX=   yes
USE_IMLIB=  yes
USE_GMAKE=  yes

INCLUDES=   gkrellm.h gkrellm_public_proto.h gkrellm_private_proto.h
DOCS=       COPYRIGHT README Themes.html

# You should aware that GKrellM must be setuid root to obtain
# temperatures.  If your motherboard doesn't support LM78/79 feature,
# you may not want this build WITHOUT_SENSOR=yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 300000
ALL_TARGET= freebsd2
.else
ALL_TARGET= freebsd
.endif

BINGRP=     kmem
.if !defined(WITHOUT_SENSOR)
BINOWN=     root
BINMODE=    4111
.else
BINMODE=    2111
.endif

post-patch:
    @${MV} ${WRKSRC}/src/gkrellm.h ${WRKSRC}/src/gkrellm.h.orig
    @${SED} \
    -e "s^/usr/share/gkrellm/themes^${PREFIX}/share/gkrellm/themes^" \
    -e "s^/usr/share/gkrellm/plugins^${PREFIX}/libexec/gkrellm/plugins^" \
        ${WRKSRC}/src/gkrellm.h.orig > ${WRKSRC}/src/gkrellm.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/gkrellm ${PREFIX}/bin/gkrellm
    @${MKDIR} ${PREFIX}/include/gkrellm
.for file in ${INCLUDES}
    ${INSTALL_DATA} ${WRKSRC}/src/${file} ${PREFIX}/include/gkrellm
.endfor
    @${MKDIR} ${PREFIX}/libexec/gkrellm/plugins
    @${MKDIR} ${PREFIX}/share/gkrellm/themes
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/gkrellm
.for file in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gkrellm
.endfor
.endif
.if !defined(WITHOUT_SENSOR)
    @${CAT} ${PKGDIR}/MESSAGE
.endif

.include <bsd.port.post.mk>