Date: Wed, 14 Sep 2011 13:12:46 GMT From: Gürkan Karaman <gk.freebsd@googlemail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/160734: Fix port broken and amd64 problem Message-ID: <201109141312.p8EDCk5g007033@red.freebsd.org> Resent-Message-ID: <201109141320.p8EDK8uv056952@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109141312.p8EDCk5g007033>