blob: d2a825dcb1f1f8a1e82397a87be32442aa6711b0 (
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
56
57
58
59
60
61
|
# Created by: luigi@FreeBSD.org
# $FreeBSD$
PORTNAME= syslinux
PORTVERSION= 6.01
CATEGORIES= sysutils
MASTER_SITES= KERNEL_ORG/linux/utils/boot/syslinux
MAINTAINER= ports@FreeBSD.org
COMMENT= Boot loader for the Linux operating system
LICENSE= GPLv2
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
RUN_DEPENDS= mtools:${PORTSDIR}/emulators/mtools
USES= perl5
USE_XZ= yes
USE_PERL5= build
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}"
ALL_TARGET= bios
MAN1= syslinux.1
.include <bsd.port.pre.mk>
# utility target to build pkg-plist
_A = mbr/mbr.bin mbr/gptmbr.bin \
core/pxelinux.0 core/isolinux.bin gpxe/gpxelinux.0 \
memdisk/memdisk \
com32/chain/*.c32 com32/cmenu/libmenu/libmenu.c32 \
com32/elflink/ldlinux/*.c32 com32/gfxboot/*.c32 \
com32/hdt/*.c32 com32/lib/*.c32 \
com32/lua/src/*.c32 com32/mboot/*.c32 \
com32/menu/*.c32 com32/modules/*.c32 \
com32/rosh/*.c32 com32/sysdump/*.c32
# convert elf_i386 to elf_i386_fbsd
pre-patch:
@(cd ${WRKSRC}; \
${FIND} . -type f -exec ${GREP} -le 'elf_i386' \{\} \; | \
${XARGS} ${REINPLACE_CMD} -e 's/elf_i386/elf_i386_fbsd/g;' )
post-patch:
@${REINPLACE_CMD} -e \
's|^UMAKEDEPS|#UMAKEDEPS|' ${WRKSRC}/mk/syslinux.mk
build_pkg-plist:
@( ${ECHO_CMD} "bin/syslinux" ; \
cd ${WRKSRC}; for i in ${_A} ; do \
${ECHO_CMD} share/syslinux/`basename $$i` ; done ; \
${ECHO_CMD} "@dirrm share/syslinux" )
do-install:
(cd ${WRKSRC}/bios/mtools && ${INSTALL_PROGRAM} syslinux ${PREFIX}/bin)
(cd ${WRKSRC}/man && ${INSTALL_MAN} syslinux.1 ${MANPREFIX}/man/man1)
@${MKDIR} ${DATADIR}
(cd ${WRKSRC}/bios && ${INSTALL_DATA} ${_A} ${DATADIR})
.include <bsd.port.post.mk>
|