1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/sysutils/syslinux/Makefile
Kurt Jaeger 839f9f1983 sysutils/syslinux: USES tar:xz, strip one file
Approved by:    culot (mentor)
2014-05-19 15:57:57 +00:00

44 lines
1.2 KiB
Makefile

# Created by: luigi@FreeBSD.org
# $FreeBSD$
PORTNAME= syslinux
PORTVERSION= 6.02
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 gmake tar:xz
USE_PERL5= build
MAKE_ARGS= CC="${CC}"
ALL_TARGET= bios
#.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 ${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})
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/syslinux/bios/mtools/syslinux
.include <bsd.port.mk>