summaryrefslogtreecommitdiff
path: root/net/gpxe/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/gpxe/Makefile')
-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>