ports/175450: [patch] Get gkx86info plugin to build on amd64

Lawrence Chen lchen at lhaven.homeip.net
Sun Jan 20 15:10:01 UTC 2013


>Number:         175450
>Category:       ports
>Synopsis:       [patch] Get gkx86info plugin to build on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 20 15:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Lawrence Chen
>Release:        FreeBSD 9.0-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD zen.lhaven.homeip.net 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	Fix build to get it to compile on amd64
>How-To-Repeat:
	
>Fix:

	See patch

--- Makefile.diff begins here ---
--- Makefile.orig	2012-11-16 23:59:37.000000000 -0600
+++ Makefile	2013-01-20 08:46:02.947222766 -0600
@@ -18,13 +18,13 @@
 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_GNOME=	gtk20
 
 WRKSRC=		${WRKDIR}/gkx86info${PORTVERSION}
 
 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 \
--- Makefile.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list