summaryrefslogtreecommitdiffstats
path: root/misc/gkx86info/Makefile
blob: 1d61cde46e68c5bce83ddb39c22d7b8edfa3e288 (plain)
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
# New ports collection makefile for:	gkx86info
# Date created:		Thu Aug  8 01:49:15 UTC 2002
# Whom:			Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	gkx86info
PORTVERSION=	0.0.2
PORTREVISION=	1
CATEGORIES=	misc
MASTER_SITES=	http://asdfnews.org/yargon/
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	lioux@FreeBSD.org
COMMENT=	GKrellM plugin that simply prints the current clock speed

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

ONLY_FOR_ARCHS=	i386
USE_X_PREFIX=	yes
USE_GNOME=	gtk12 imlib
USE_SIZE=	yes

DOC_FILES=	COPYING README

do-build:
	@cd ${WRKSRC} && eval ${CC} ${CFLAGS} -o MHz.o -c MHz.c
	@cd ${WRKSRC} && eval ${CC} -fPIC ${CFLAGS} \
		`${GTK_CONFIG} --cflags` \
		`${IMLIB_CONFIG} --cflags-gdk` -c gkx86info.c
	@cd ${WRKSRC} && eval ${CC} -shared ${CFLAGS} ${LDFLAGS} \
		-o ${PORTNAME}.so MHz.o gkx86info.o

do-install:
.ifndef(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif #NOPORTDOCS
	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.so \
		${PREFIX}/libexec/gkrellm/plugins/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud