2010-08-12 20:20:23 +00:00
|
|
|
# New ports collection Makefile for: gpxe
|
|
|
|
# Date created: 27-02-2010
|
|
|
|
# Whom: Guerkan Karaman <gk.freebsd@googlemail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gpxe
|
|
|
|
PORTVERSION= 1.0.1
|
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_KERNEL_ORG}
|
|
|
|
MASTER_SITE_SUBDIR=software/utils/boot/gpxe
|
|
|
|
|
|
|
|
MAINTAINER= gk.freebsd@googlemail.com
|
|
|
|
COMMENT= Create an open-source PXE implementation and bootloader
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2011-09-26 01:15:34 +00:00
|
|
|
BUILD_DEPENDS= syslinux:${PORTSDIR}/sysutils/syslinux
|
|
|
|
|
2010-08-12 20:20:23 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_CDRTOOLS= yes
|
2011-09-26 01:15:34 +00:00
|
|
|
USE_PERL5= yes
|
2010-08-12 20:20:23 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
2011-09-26 01:15:34 +00:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2010-08-12 20:20:23 +00:00
|
|
|
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
PLIST_FILES= %%DATADIR%%/gpxe.dsk \
|
|
|
|
%%DATADIR%%/gpxe.usb \
|
|
|
|
%%DATADIR%%/gpxe.iso
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2011-09-26 01:15:34 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
MAKE_ARGS+= ARCH=i386
|
|
|
|
.endif
|
|
|
|
|
2010-08-12 20:20:23 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/arch/i386/Makefile
|
|
|
|
|
|
|
|
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}
|
|
|
|
|
2011-09-26 01:15:34 +00:00
|
|
|
.include <bsd.port.post.mk>
|