blob: 992f973d05c3b800edb98cea98bb9535dd9b5a3a (
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
|
# 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
LICENSE_FILE= ${WRKSRC}/COPYING
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
PLIST_FILES+= bin/syslinux
NO_STAGE= yes
.include <bsd.port.pre.mk>
# 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
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/bios/mtools/syslinux ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/man/syslinux.1 ${MANPREFIX}/man/man1
@${FIND} -d ${WRKSRC} -type d -empty -delete
@${MKDIR} ${DATADIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "bios efi32 efi64" ${DATADIR})
post-install:
@(cd ${PREFIX} && ${FIND} -d ${DATADIR_REL} -type f >> ${TMPPLIST})
@(cd ${PREFIX} && ${FIND} -d ${DATADIR_REL} -type d -exec echo "@dirrm {}" \; >> ${TMPPLIST})
.include <bsd.port.post.mk>
|