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-11-24 20:21:43 +01:00
|
|
|
PORTVERSION= 6.03
|
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
|
|
|
|
2014-10-13 12:22:18 +02:00
|
|
|
MAINTAINER= uffe@uffe.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
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
BUILD_DEPENDS= nasm:devel/nasm
|
|
|
|
RUN_DEPENDS= mtools:emulators/mtools
|
2010-09-09 04:23:20 +02:00
|
|
|
|
2014-05-19 17:57:57 +02:00
|
|
|
USES= perl5 gmake tar:xz
|
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
|
|
|
|
2014-09-30 12:42:08 +02:00
|
|
|
PLIST_FILES= bin/syslinux \
|
|
|
|
man/man1/syslinux.1.gz
|
|
|
|
PORTDATA= *
|
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:
|
2014-11-24 20:21:43 +01:00
|
|
|
${STRIP_CMD} ${WRKSRC}/bios/mtools/syslinux
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bios/mtools/syslinux ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/syslinux.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
|
|
${FIND} -d ${WRKSRC} -type d -empty -delete
|
|
|
|
${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>
|