2004-05-09 23:26:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sdcc
|
2013-05-31 16:15:51 +00:00
|
|
|
PORTVERSION= 3.3.0
|
2013-09-07 18:21:14 +00:00
|
|
|
PORTREVISION= 1
|
2007-10-13 12:26:37 +00:00
|
|
|
DISTVERSIONPREFIX= src-
|
2004-05-09 23:26:39 +00:00
|
|
|
CATEGORIES= lang
|
2007-10-13 12:26:37 +00:00
|
|
|
MASTER_SITES= SF
|
2004-05-09 23:26:39 +00:00
|
|
|
|
2013-04-24 08:01:28 +00:00
|
|
|
MAINTAINER= tijl@FreeBSD.org
|
2004-05-09 23:26:39 +00:00
|
|
|
COMMENT= Small Device C Compiler
|
|
|
|
|
2012-10-18 22:41:54 +00:00
|
|
|
LICENSE= GPLv3
|
2012-01-18 17:05:16 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/graph/adjacency_list.hpp:${PORTSDIR}/devel/boost-libs
|
|
|
|
|
2013-09-07 18:21:14 +00:00
|
|
|
CONFLICTS_INSTALL= sdcc-[0-9]* sdcc-devel-[0-9]*
|
2004-05-09 23:26:39 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2013-09-07 18:21:14 +00:00
|
|
|
USES= gmake
|
2007-10-13 12:26:37 +00:00
|
|
|
USE_BZIP2= yes
|
2004-05-09 23:26:39 +00:00
|
|
|
|
2013-05-31 16:15:51 +00:00
|
|
|
OPTIONS_DEFINE= DEVLIB DOCS UCSIM
|
|
|
|
OPTIONS_MULTI= TARGETS
|
|
|
|
OPTIONS_MULTI_TARGETS= HC08 MCS51 PIC Z80
|
|
|
|
OPTIONS_DEFAULT= DEVLIB UCSIM HC08 MCS51 PIC Z80
|
2012-08-24 16:58:07 +00:00
|
|
|
DEVLIB_DESC= Device libraries
|
|
|
|
HC08_DESC= Freescale 68HC08/S08
|
|
|
|
MCS51_DESC= Intel MCS51, Maxim DS80C390/DS80C400
|
|
|
|
PIC_DESC= Microchip PIC
|
|
|
|
UCSIM_DESC= The ucSim simulator
|
|
|
|
Z80_DESC= Zilog Z80/Z180/GBZ80, Rabbit 2000/3000/3000A
|
2004-05-09 23:26:39 +00:00
|
|
|
|
2013-05-31 16:15:51 +00:00
|
|
|
CPPFLAGS+= -idirafter ${LOCALBASE}/include
|
|
|
|
CONFIGURE_ARGS= --disable-avr --disable-install-libbfd --disable-werror \
|
|
|
|
--enable-new-pics docdir=${DOCSDIR}
|
2012-01-18 17:05:16 +00:00
|
|
|
CONFIGURE_ENV= ARCH=""
|
2013-05-31 16:15:51 +00:00
|
|
|
PORTDATA= *
|
|
|
|
PORTDOCS= *
|
|
|
|
WRKSRC= ${WRKDIR}/sdcc-${DISTVERSION}
|
2007-10-13 12:26:37 +00:00
|
|
|
|
2013-09-07 18:21:14 +00:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
DEVLIB_CONFIGURE_OFF= --disable-device-lib
|
|
|
|
HC08_CONFIGURE_OFF= --disable-hc08 --disable-hc08-port \
|
|
|
|
--disable-s08-port
|
|
|
|
MCS51_CONFIGURE_OFF= --disable-51 --disable-mcs51-port \
|
|
|
|
--disable-ds390-port --disable-ds400-port
|
|
|
|
PIC_BUILD_DEPENDS= gputils>=1.0.0:${PORTSDIR}/devel/gputils
|
|
|
|
PIC_RUN_DEPENDS= gpasm:${PORTSDIR}/devel/gputils
|
|
|
|
PIC_CONFIGURE_OFF= --disable-pic14-port --disable-pic16-port
|
|
|
|
UCSIM_CONFIGURE_OFF= --disable-ucsim
|
|
|
|
Z80_CONFIGURE_OFF= --disable-z80 --disable-z80-port \
|
|
|
|
--disable-z180-port --disable-gbz80-port \
|
|
|
|
--disable-r2k-port --disable-r3ka-port
|
|
|
|
|
2013-10-22 18:20:01 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2004-05-09 23:26:39 +00:00
|
|
|
|
2012-08-28 12:02:30 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
|
|
|
|
.endif
|
|
|
|
|
2007-10-13 12:26:37 +00:00
|
|
|
post-patch:
|
2012-08-24 16:58:07 +00:00
|
|
|
@${REINPLACE_CMD} '/install:/s/:.*/:/' \
|
2013-05-31 16:15:51 +00:00
|
|
|
${WRKSRC}/Makefile.in \
|
2012-08-24 16:58:07 +00:00
|
|
|
${WRKSRC}/support/sdbinutils/libiberty/Makefile.in
|
2013-10-22 18:20:01 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
2009-03-28 13:37:25 +00:00
|
|
|
@${REINPLACE_CMD} 's, [a-z-]*doc,,' \
|
|
|
|
${WRKSRC}/Makefile.in \
|
|
|
|
${WRKSRC}/sim/ucsim/packages_in.mk
|
|
|
|
.endif
|
2007-10-13 12:26:37 +00:00
|
|
|
|
2013-05-31 16:15:51 +00:00
|
|
|
post-install:
|
2013-10-22 18:20:01 +00:00
|
|
|
${FIND} -d ${STAGEDIR}${DATADIR} -type d -empty -delete
|
2013-05-31 16:15:51 +00:00
|
|
|
|
2013-10-22 18:20:01 +00:00
|
|
|
.include <bsd.port.mk>
|