summaryrefslogtreecommitdiff
path: root/net/gpxe
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2011-09-26 01:15:34 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2011-09-26 01:15:34 +0000
commitca68688414460ad352a98f2934f7b5d404cce219 (patch)
tree6fe593555987a3319b91c2bbe10056c171173280 /net/gpxe
parentConnect the new gcc port. (diff)
- Fix build under amd64 [1]
- Add missing USE_PERL5 to fix build - Mark port MAKE_JOBS_SAFE PR: ports/160734 Submitted by: Gürkan Karaman <gk.freebsd@googlemail.com> (maintainer) [1]
Notes
Notes: svn path=/head/; revision=282398
Diffstat (limited to 'net/gpxe')
-rw-r--r--net/gpxe/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/net/gpxe/Makefile b/net/gpxe/Makefile
index 56df3fd27b11..4b9689b9056d 100644
--- a/net/gpxe/Makefile
+++ b/net/gpxe/Makefile
@@ -14,17 +14,16 @@ MASTER_SITE_SUBDIR=software/utils/boot/gpxe
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
+USE_PERL5= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
-ONLY_FOR_ARCHS= i386
+MAKE_JOBS_SAFE= yes
PLIST_DIRS= %%DATADIR%%
PLIST_FILES= %%DATADIR%%/gpxe.dsk \
@@ -33,6 +32,12 @@ PLIST_FILES= %%DATADIR%%/gpxe.dsk \
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 +50,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>