aboutsummaryrefslogtreecommitdiffstats
path: root/misc/gkx86info2/Makefile
blob: c960e89a19a3ce60edd59877dc056c2d952d0e88 (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
# Created by: Tobias Roth <ports@fsck.ch>
# $FreeBSD$

PORTNAME=   gkx86info2
PORTVERSION=    0.0.2
PORTREVISION=   8
CATEGORIES= misc
MASTER_SITES=   http://anchois.free.fr/ \
        http://depot.fsck.ch/mirror/distfiles/

MAINTAINER= ports@FreeBSD.org
COMMENT=    GKrellM2 plugin that simply prints the current clock speed

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  ${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
RUN_DEPENDS=    gkrellm:${PORTSDIR}/sysutils/gkrellm2

ONLY_FOR_ARCHS= i386 amd64
USES=       pkgconfig
USE_GNOME=  gtk20

WRKSRC=     ${WRKDIR}/gkx86info${PORTVERSION}
PLUGINDIR=  ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins

OPTIONS_DEFINE= DOCS

do-build:
    @cd ${WRKSRC} && ${CC} ${CFLAGS} -fPIC -o MHz.o -c MHz.c
    @cd ${WRKSRC} && ${CC} ${CFLAGS} -fPIC \
        `pkg-config gtk+-2.0 --cflags` -c gkx86info.c
    @cd ${WRKSRC} && ${CC} ${CFLAGS} -shared \
         -o ${PORTNAME}.so MHz.o gkx86info.o

do-install:
    @${MKDIR} ${PLUGINDIR}
    ${INSTALL_LIB} ${WRKSRC}/${PORTNAME}.so ${PLUGINDIR}

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>