From b4a21248f44da190a8e1b7632566b8545e944337 Mon Sep 17 00:00:00 2001 From: pawel Date: Sun, 17 Feb 2013 13:22:15 +0000 Subject: - Fix build on amd64 [1] - Convert to OptionsNG - Trim Makefile header PR: ports/175450 [1] Submitted by: Lawrence Chen [1] --- misc/gkx86info2/Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'misc/gkx86info2') diff --git a/misc/gkx86info2/Makefile b/misc/gkx86info2/Makefile index eddf19f4b606..e33286a6036d 100644 --- a/misc/gkx86info2/Makefile +++ b/misc/gkx86info2/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: gkx86info2 -# Date created: Tue Apr 27 14:15:53 CEST 2004 -# Whom: Tobias Roth -# +# Created by: Tobias Roth # $FreeBSD$ -# PORTNAME= gkx86info2 PORTVERSION= 0.0.2 @@ -18,13 +14,16 @@ COMMENT= GKrellM2 plugin that simply prints the current clock speed BUILD_DEPENDS= ${LOCALBASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2 RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2 -ONLY_FOR_ARCHS= i386 +ONLY_FOR_ARCHS= i386 amd64 +USE_PKGCONFIG= build USE_GNOME= gtk20 WRKSRC= ${WRKDIR}/gkx86info${PORTVERSION} +.include + do-build: - @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -o MHz.o -c MHz.c + @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -fPIC -o MHz.o -c MHz.c @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -fPIC \ `pkg-config gtk+-2.0 --cflags` -c gkx86info.c @cd ${WRKSRC} && eval ${CC} ${CFLAGS} -shared \ @@ -35,7 +34,7 @@ do-install: ${PREFIX}/libexec/gkrellm2/plugins/ post-install: -.ifndef(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} .endif -- cgit