1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/sysutils/cromwell/Makefile
Renato Botelho b882a2132c Add cromwell 20060308, linux (and FreeBSD :-) BIOS images for the
Microsoft Xbox.

PR:		ports/94250
Submitted by:	Rink Springer <rink@FreeBSD.org>
2006-03-15 10:29:04 +00:00

62 lines
1.4 KiB
Makefile

# New ports collection makefile for: cromwell
# Date created: 8 March 2006
# Whom: Rink Springer <rink@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= cromwell
PORTVERSION= 20060308
CATEGORIES= sysutils
MASTER_SITES= http://rink.nu/downloads/xbox/
DISTNAME= cromwell-snapshot-${PORTVERSION}
# This patch allows Cromwell to load kernels directly from UFS partitions
PATCH_SITES= http://rink.nu/downloads/xbox-patches/
PATCHFILES= cromwell-ufs.diff
PATCH_DIST_STRIP= -p1
MAINTAINER= rink@FreeBSD.org
COMMENT= Linux (and FreeBSD :-) BIOS images for the Microsoft Xbox
USE_PERL5_BUILD= yes
SUB_FILES= pkg-message
PLIST_DIRS= %%DATADIR%%
PLIST_FILES= %%DATADIR%%/cromwell.bin \
%%DATADIR%%/cromwell_1024.bin \
%%DATADIR%%/ethboot \
%%DATADIR%%/xromwell.xbe
# Xbox is an i386 box, mostly
ONLY_FOR_ARCHS= i386
WRKSRC= ${WRKDIR}/cromwell
USE_BZIP2= yes
USE_GMAKE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= Not supported below 5.x
.endif
post-patch:
@${REINPLACE_CMD} -e 's,perl,${PERL},g' \
-e 's,^CC.=,CC ?=,' \
-e 's,CFLAGS=,CFLAGS+=,' \
${WRKSRC}/Makefile
do-install:
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/cromwell/image/cromwell.bin ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/cromwell/image/cromwell_1024.bin ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/cromwell/boot_eth/ethboot ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/cromwell/xbe/xromwell.xbe ${DATADIR}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>