2000-05-09 20:32:04 +02:00
|
|
|
# Ports collection makefile for: cc65
|
|
|
|
# Date created: 8 May 2000
|
|
|
|
# Whom: Tim Vanderhoek <hoek@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cc65
|
2010-01-09 01:05:42 +01:00
|
|
|
PORTVERSION= 2.13.1
|
2000-05-09 20:32:04 +02:00
|
|
|
CATEGORIES= devel
|
2003-05-22 23:32:42 +02:00
|
|
|
MASTER_SITES= ftp://ftp.musoftware.de/pub/uz/cc65/ \
|
|
|
|
http://www.funet.fi/pub/cbm/programming/cc65/ \
|
|
|
|
http://www.acc.umu.se/~arvid/cc65_mirror/ \
|
|
|
|
http://bj.spline.de/cc65/
|
2004-01-07 01:31:37 +01:00
|
|
|
DISTNAME= ${PORTNAME}-sources-${PORTVERSION}
|
2000-05-09 20:32:04 +02:00
|
|
|
|
2007-03-28 00:12:03 +02:00
|
|
|
MAINTAINER= stas@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Cross-compiler for 6502-based systems, includes 65816 assembler
|
2000-05-09 20:32:04 +02:00
|
|
|
|
2003-05-22 23:32:42 +02:00
|
|
|
USE_SUBMAKE= yes
|
2002-09-02 19:09:25 +02:00
|
|
|
USE_BZIP2= yes
|
2000-05-29 04:13:36 +02:00
|
|
|
USE_GMAKE= yes
|
2003-05-22 23:32:42 +02:00
|
|
|
WRKSRC= ${WRKDIR}/cc65-${PORTVERSION}
|
2006-09-09 07:26:46 +02:00
|
|
|
MAKEFILE= ${WRKSRC}/make/gcc.mak
|
2009-11-19 23:07:43 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2003-05-22 23:32:42 +02:00
|
|
|
|
2006-09-09 07:26:46 +02:00
|
|
|
SUB_FILES= pkg-message
|
2000-05-09 20:32:04 +02:00
|
|
|
|
2006-09-09 07:26:46 +02:00
|
|
|
post-patch:
|
|
|
|
#
|
|
|
|
# CFLAGS safety
|
|
|
|
#
|
2008-05-15 12:12:03 +02:00
|
|
|
@(${FIND} ${WRKSRC}/ -name gcc.mak -type f|${XARGS} ${REINPLACE_CMD} -E \
|
|
|
|
-e "s,=[[:space:]]*-g -O2 -Wall -W(.*),+=\1," \
|
|
|
|
-e "s,=[[:space:]]*-g -O2 -Wall(.*),+=\1," \
|
|
|
|
-e "s,=[[:space:]]*-O2 -g -Wall -W(.*),+=\1," \
|
|
|
|
-e "s,-std=c89,-std=c99,g" \
|
2006-09-09 07:26:46 +02:00
|
|
|
-e "s,CC[[:space:]]*=.*,#&,")
|
|
|
|
.if defined(NOPORTDOCS)
|
2008-06-15 19:02:02 +02:00
|
|
|
@${REINPLACE_CMD} -E -e "s,(install:.*)install-docs(.*)$$,\1\2," \
|
|
|
|
-e '/\(MKDIR\)[[:space:]]+\$$\(CC65DOC\)/d' \
|
2006-09-09 07:26:46 +02:00
|
|
|
${WRKSRC}/make/gcc.mak
|
|
|
|
.endif
|
2000-05-09 20:32:04 +02:00
|
|
|
|
2006-09-09 07:26:46 +02:00
|
|
|
post-install:
|
2002-09-02 19:09:25 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-09-09 07:26:46 +02:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
|
2002-09-02 19:09:25 +02:00
|
|
|
.endif
|
2006-09-09 07:26:46 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-09-02 19:09:25 +02:00
|
|
|
|
2007-06-24 10:29:17 +02:00
|
|
|
.include <bsd.port.mk>
|