2013-01-21 04:39:17 +01:00
|
|
|
# Created by: luigi@FreeBSD.org
|
2008-12-31 12:43:34 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= syslinux
|
2014-03-06 19:36:27 +01:00
|
|
|
PORTVERSION= 6.02
|
2008-12-31 12:43:34 +01:00
|
|
|
CATEGORIES= sysutils
|
2013-01-21 04:39:17 +01:00
|
|
|
MASTER_SITES= KERNEL_ORG/linux/utils/boot/syslinux
|
2008-12-31 12:43:34 +01:00
|
|
|
|
2012-08-16 10:14:16 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-01-21 04:39:17 +01:00
|
|
|
COMMENT= Boot loader for the Linux operating system
|
2008-12-31 12:43:34 +01:00
|
|
|
|
2013-07-15 16:42:57 +02:00
|
|
|
LICENSE= GPLv2
|
2013-08-03 21:12:45 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2013-07-15 16:42:57 +02:00
|
|
|
|
2008-12-31 12:43:34 +01:00
|
|
|
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
|
2010-11-18 18:42:52 +01:00
|
|
|
RUN_DEPENDS= mtools:${PORTSDIR}/emulators/mtools
|
2010-09-09 04:23:20 +02:00
|
|
|
|
2013-11-16 13:33:15 +01:00
|
|
|
USES= perl5 gmake
|
2013-01-21 04:39:17 +01:00
|
|
|
USE_XZ= yes
|
2013-08-03 15:44:00 +02:00
|
|
|
USE_PERL5= build
|
2013-01-21 04:39:17 +01:00
|
|
|
MAKE_ARGS= CC="${CC}"
|
2013-07-15 16:42:57 +02:00
|
|
|
ALL_TARGET= bios
|
2013-01-21 04:39:17 +01:00
|
|
|
|
2013-11-16 13:33:15 +01:00
|
|
|
#.include <bsd.port.pre.mk>
|
2010-11-18 18:42:52 +01:00
|
|
|
|
2008-12-31 12:43:34 +01:00
|
|
|
# convert elf_i386 to elf_i386_fbsd
|
2010-11-18 18:42:52 +01:00
|
|
|
pre-patch:
|
|
|
|
@(cd ${WRKSRC}; \
|
2008-12-31 12:43:34 +01:00
|
|
|
${FIND} . -type f -exec ${GREP} -le 'elf_i386' \{\} \; | \
|
2010-11-18 18:42:52 +01:00
|
|
|
${XARGS} ${REINPLACE_CMD} -e 's/elf_i386/elf_i386_fbsd/g;' )
|
2008-12-31 12:43:34 +01:00
|
|
|
|
2013-01-21 04:39:17 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^UMAKEDEPS|#UMAKEDEPS|' ${WRKSRC}/mk/syslinux.mk
|
|
|
|
|
2008-12-31 12:43:34 +01:00
|
|
|
do-install:
|
2013-11-16 13:33:15 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bios/mtools/syslinux ${STAGEDIR}${PREFIX}/bin
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/syslinux.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
2013-08-03 21:12:45 +02:00
|
|
|
@${FIND} -d ${WRKSRC} -type d -empty -delete
|
2013-11-16 13:33:15 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "bios efi32 efi64" ${STAGEDIR}${DATADIR})
|
2008-12-31 12:43:34 +01:00
|
|
|
|
2013-11-16 13:33:15 +01:00
|
|
|
.include <bsd.port.mk>
|