mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
ee9ede56db
while the policy was unclear Feature safe: yes
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# Created by: Tim Vanderhoek <hoek@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cc65
|
|
PORTVERSION= 2.13.3
|
|
DISTVERSIONPREFIX= sources-
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://bj.spline.de/cc65/ \
|
|
http://cc65.oldos.net/ \
|
|
ftp://ftp.musoftware.de/pub/uz/cc65/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Cross-compiler for 6502-based systems, includes 65816 assembler
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
USE_BZIP2= yes
|
|
USE_PERL5_BUILD=yes
|
|
USE_GMAKE= yes
|
|
MAKEFILE= ${WRKSRC}/make/gcc.mak
|
|
MAKE_JOBS_UNSAFE=yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name "gcc.mak" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
'/gcc/s|^CC|#CC| ; \
|
|
/-O2/s|^CFLAGS|#CFLAGS|'
|
|
@${REINPLACE_CMD} -e \
|
|
'/^prefix/s|=.*|= $${PREFIX}| ; \
|
|
/^docdir/s|=.*|=| ; \
|
|
/^CC65_DOC/s|=.*|=| ; \
|
|
/^INSTALL_DATA/s|=.*|= $${BSD_INSTALL_DATA}| ; \
|
|
/^INSTALL_PROG/s|=.*|= $${BSD_INSTALL_SCRIPT}| ; \
|
|
/^INSTALL_STRIP/s|=.*|= $${BSD_INSTALL_PROGRAM}| ; \
|
|
/^all:/s|docs|| ; \
|
|
/^install:/s|install-docs||' ${WRKSRC}/make/gcc.mak
|
|
|
|
# XXX: gmake>=3.82 hack: beats the hell out of me. Quick fix.
|
|
pre-install:
|
|
@${MKDIR} ${PREFIX}/lib/cc65/tgi
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for i in BUGS CREDITS compile.txt internal.txt newvers.txt readme.1st
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/src/ca65/macpack/*.mac ${DOCSDIR}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|