mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- fix build on FreeBSD <= 10
- add stage support PR: 186559 [1] PR: 183444 Submitted by: ohauer [1] Approved by: maintainer-timeout
This commit is contained in:
parent
5a0d7f3f94
commit
be59e9da7a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351669
@ -9,15 +9,13 @@ MASTER_SITES= http://etherboot.org/rel/gpxe/ \
|
||||
http://slackware.cs.utah.edu/pub/kernel.org/pub/software/utils/boot/gpxe/
|
||||
|
||||
MAINTAINER= gk.freebsd@googlemail.com
|
||||
COMMENT= Create an open-source PXE implementation and bootloader
|
||||
|
||||
BROKEN= Fails to build
|
||||
COMMENT= Open Source (GPL) gPXE network bootloader
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
BUILD_DEPENDS= syslinux:${PORTSDIR}/sysutils/syslinux
|
||||
BUILD_DEPENDS= syslinux:${PORTSDIR}/sysutils/syslinux \
|
||||
mkisofs:${PORTSDIR}/sysutils/cdrtools
|
||||
|
||||
USE_CDRTOOLS= yes
|
||||
USES= gmake perl5
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
|
||||
@ -28,26 +26,32 @@ PLIST_FILES= %%DATADIR%%/gpxe.dsk \
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
ONLY_FOR_ARCHS= amd64 i386
|
||||
ONLY_FOR_ARCHS_REASON= not yet ported to anything other than amd64/i386
|
||||
|
||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000000
|
||||
BROKEN= does not build on FreeBSD 10.x and later
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
MAKE_ARGS+= ARCH=i386
|
||||
.endif
|
||||
|
||||
ISOLINUX_BIN?= ${LOCALBASE}/share/syslinux/bios/core/isolinux.bin
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/arch/i386/Makefile
|
||||
@${REINPLACE_CMD} "s|%%WRKSRC%%|${WRKSRC}|" ${WRKSRC}/arch/i386/Makefile
|
||||
|
||||
pre-build:
|
||||
# ISO creation fails if isolinux.bin is read only
|
||||
${INSTALL} -m 644 ${ISOLINUX_BIN} ${WRKSRC}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.dsk ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.usb ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.iso ${DATADIR}
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.dsk ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.usb ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/bin/gpxe.iso ${STAGEDIR}${DATADIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,12 +1,12 @@
|
||||
--- ./arch/i386/Makefile.orig 2010-06-29 21:31:33.000000000 +0200
|
||||
+++ ./arch/i386/Makefile 2010-08-07 16:06:23.000000000 +0200
|
||||
@@ -72,7 +72,8 @@
|
||||
+++ ./arch/i386/Makefile 2014-02-08 11:45:50.000000000 +0100
|
||||
@@ -71,8 +71,7 @@
|
||||
#
|
||||
ISOLINUX_BIN_LIST := \
|
||||
$(ISOLINUX_BIN) \
|
||||
/usr/lib/syslinux/isolinux.bin \
|
||||
- /usr/lib/syslinux/isolinux.bin \
|
||||
- /usr/share/syslinux/isolinux.bin
|
||||
+ %%PREFIX%%/share/syslinux/isolinux.bin \
|
||||
+ %%PREFIX%%/share/syslinux/isolinux.bin
|
||||
+ %%WRKSRC%%/isolinux.bin
|
||||
ISOLINUX_BIN = $(firstword $(wildcard $(ISOLINUX_BIN_LIST)))
|
||||
|
||||
# i386-specific directories containing source files
|
||||
|
Loading…
Reference in New Issue
Block a user