aboutsummaryrefslogtreecommitdiffstats
path: root/net/gpxe/Makefile
blob: 07e8de4ec67d622091145683452cce2df24836b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created by: Guerkan Karaman <gk.freebsd@googlemail.com>
# $FreeBSD$

PORTNAME=   gpxe
PORTVERSION=    1.0.1
PORTREVISION=   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

BUILD_DEPENDS=  syslinux:${PORTSDIR}/sysutils/syslinux \
        mkisofs:${PORTSDIR}/sysutils/cdrtools

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_PERL5=  yes
WRKSRC=     ${WRKDIR}/${DISTNAME}/src
MAKE_JOBS_SAFE= yes

BROKEN= checksum mismatch

PLIST_DIRS= %%DATADIR%%
PLIST_FILES=    %%DATADIR%%/gpxe.dsk \
        %%DATADIR%%/gpxe.usb \
        %%DATADIR%%/gpxe.iso

SUB_FILES=  pkg-message

.include <bsd.port.options.mk>

ONLY_FOR_ARCHS=     amd64 i386
ONLY_FOR_ARCHS_REASON=  not yet ported to anything other than amd64/i386

.if ${ARCH} == "amd64"
MAKE_ARGS+= ARCH=i386
.endif

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}

.include <bsd.port.mk>