svn commit: r312414 - head/misc/gkx86info2
Pawel Pekala
pawel at FreeBSD.org
Sun Feb 17 13:22:16 UTC 2013
Author: pawel
Date: Sun Feb 17 13:22:15 2013
New Revision: 312414
URL: http://svnweb.freebsd.org/changeset/ports/312414
Log:
- Fix build on amd64 [1]
- Convert to OptionsNG
- Trim Makefile header
PR: ports/175450 [1]
Submitted by: Lawrence Chen <lchen at zen.lhaven.homeip.net> [1]
Modified:
head/misc/gkx86info2/Makefile
Modified: head/misc/gkx86info2/Makefile
==============================================================================
--- head/misc/gkx86info2/Makefile Sun Feb 17 11:49:50 2013 (r312413)
+++ head/misc/gkx86info2/Makefile Sun Feb 17 13:22:15 2013 (r312414)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gkx86info2
-# Date created: Tue Apr 27 14:15:53 CEST 2004
-# Whom: Tobias Roth <ports at fsck.ch>
-#
+# Created by: Tobias Roth <ports at fsck.ch>
# $FreeBSD$
-#
PORTNAME= gkx86info2
PORTVERSION= 0.0.2
@@ -18,13 +14,16 @@ COMMENT= GKrellM2 plugin that simply pri
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 <bsd.port.options.mk>
+
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
More information about the svn-ports-head
mailing list