ports/160734: Fix port broken and amd64 problem

Gürkan Karaman gk.freebsd at googlemail.com
Wed Sep 14 13:20:08 UTC 2011


>Number:         160734
>Category:       ports
>Synopsis:       Fix port broken and amd64 problem
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 14 13:20:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Gürkan Karaman
>Release:        7.1
>Organization:
>Environment:
>Description:
Gpxe use gcc compiler options to create 32-bit output. I hope my patch is correct. I have tested it on a amd64 machine. 
>How-To-Repeat:

>Fix:
see patch file

Patch attached with submission follows:

--- Makefile.orig	2011-01-13 10:44:23.000000000 +0100
+++ Makefile	2011-09-14 13:31:41.000000000 +0200
@@ -2,7 +2,7 @@
 # Date created:				27-02-2010
 # Whom:					Guerkan Karaman <gk.freebsd at googlemail.com>
 #
-# $FreeBSD: ports/net/gpxe/Makefile,v 1.3 2011/01/13 09:44:23 erwin Exp $
+# $FreeBSD$
 #
 
 PORTNAME=	gpxe
@@ -14,17 +14,14 @@
 MAINTAINER=	gk.freebsd at googlemail.com
 COMMENT=	Create an open-source PXE implementation and bootloader
 
-BUILD_DEPENDS=	syslinux:${PORTSDIR}/sysutils/syslinux
-
-BROKEN=		does not build
-
 LICENSE=	GPLv2
 
+BUILD_DEPENDS=	syslinux:${PORTSDIR}/sysutils/syslinux
+
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 USE_CDRTOOLS=	yes
 WRKSRC=		${WRKDIR}/${DISTNAME}/src
-ONLY_FOR_ARCHS=	i386
 
 PLIST_DIRS=	%%DATADIR%%
 PLIST_FILES=	%%DATADIR%%/gpxe.dsk \
@@ -33,6 +30,12 @@
 
 SUB_FILES=	pkg-message
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+MAKE_ARGS+=	ARCH=i386
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/arch/i386/Makefile
 
@@ -45,4 +48,4 @@
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


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



More information about the freebsd-ports-bugs mailing list