mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Set NO_WRKSUBDIR and BUILD_WRKSRC
- Add stage support PR: ports/176195 Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
This commit is contained in:
parent
8c5bce2cf1
commit
e26ce691e9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332162
@ -13,34 +13,29 @@ COMMENT= Corewars Redcode Evolver
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
USE_DOS2UNIX= ../*.txt
|
||||
WRKSRC= ${WRKDIR}/src
|
||||
USE_DOS2UNIX= *.txt
|
||||
NO_WRKSUBDIR= yes
|
||||
BUILD_WRKSRC= ${WRKSRC}/src
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME}
|
||||
|
||||
PORTDOCS= *.txt
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-extract:
|
||||
@${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}
|
||||
@cd ${WRKDIR} && ${MV} "CRE Manual.txt" CRE_Manual.txt && \
|
||||
@${CP} ${FILESDIR}/${MAKEFILE} ${BUILD_WRKSRC}
|
||||
@cd ${WRKSRC} && ${MV} "CRE Manual.txt" CRE_Manual.txt && \
|
||||
${MV} "Exhaust README.txt" Exhaust_README.txt
|
||||
|
||||
post-patch:
|
||||
@cd ${WRKSRC} && ${REINPLACE_CMD} -e '/memwatch\.h/d' \
|
||||
@cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} -e '/memwatch\.h/d' \
|
||||
asm.c pspace.c sim.c
|
||||
@cd ${WRKSRC} && ${REINPLACE_CMD} \
|
||||
@cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} \
|
||||
-e 's|random[[:blank:]]*(|myrandom(|' \
|
||||
battler.c generator.c globals.h Main.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${DOCSDIR}
|
||||
.endif
|
||||
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user