mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-07 02:06:57 +00:00
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# Created by: Samy Al Bahra <samy@kerneled.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= z80-asm
|
|
PORTVERSION= 2.4.p3
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://wwwhomes.uni-bielefeld.de/achim/z80-asm/
|
|
DISTNAME= ${PORTNAME}-2.3
|
|
DIST_SUBDIR= z80-asm
|
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
PATCHFILES= diff_2.3_2.4-pre3.gz
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Z80 assembly code assembler and disassembler
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PORTDOCS= CHANGELOG README TODO z80-asm.html z80-mon.html
|
|
|
|
USES= gmake
|
|
|
|
post-extract:
|
|
@${TOUCH} ${WRKSRC}/hardware/bus_masters
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|/usr/local|${PREFIX}|g ; \
|
|
s|^CC=|CC?=|g ; \
|
|
s|=-O2|+=|g ; \
|
|
s|make |$$(MAKE) |g ; \
|
|
s|gcc |$$(CC) |g' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e \
|
|
'/LCD=/s|^|#|g ; \
|
|
s|^CC=|CC?=|g ; \
|
|
s|=-O2|+=|g ; \
|
|
s|gcc |$$(CC) |g ; \
|
|
s|-lc ||g' ${WRKSRC}/hardware/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/z80-asm ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/z80-mon ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/*.3 ${STAGEDIR}${MAN3PREFIX}/man/man3
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/*.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for file in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|