pkgsrc/devel/sdcc3/Makefile
bouyer 9470cde812 Update to sdcc 3.5.0
Main changes since 3.4.0:
--disable-non-free configure option
Changed default language dialect from --std-sdcc89 to --std-sdcc99
Reorganized and updated manual
Reduced memory consumption (most noticeable for high --max-allocs-per-node)
Faster compilation for stm8 (most noticeable for high --max-allocs-per-node)
atoll() function for conversion of strings to long long
__z88dk_fastcall and __z88dk_callee calling conventions for more
    efficient function calls and better compability with z88dk
--lospre-unsafe-read renamed to --allow-unsafe-read
Add new microchip devices
2015-08-22 17:06:16 +00:00

61 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2015/08/22 17:06:16 bouyer Exp $
DISTNAME= sdcc-src-3.5.0
PKGNAME= ${DISTNAME:S/-src//}
#PKGREVISION= 2
CATEGORIES= devel lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sdcc/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sdcc.sourceforge.net/
COMMENT= Cross compile microcontroller code
LICENSE= gnu-gpl-v2
DEPENDS+= gputils-[0-9]*:../../devel/gputils
USE_LANGUAGES= c c++
# XXX - This HACK circumvent a problem with the use of yacc that breaks the
# XXX - building process of sdcc. Use of bison fixes this problem for now.
#
USE_TOOLS+= bison
BUILD_TARGET= dep all
WRKSRC= ${WRKDIR}/${DISTNAME:S/src-//}
GNU_CONFIGURE= YES
USE_TOOLS+= gmake lex:run perl:run
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/sdcc
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/sdcc
# needed for some arch's. -fdollars-in-identifiers is enabled
# by default on some, not on others
CPPFLAGS+= -fdollars-in-identifiers
CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH:Q}
CONFIGURE_ENV+= sdcc_cv_c_ggdb="no"
REPLACE_PYTHON= support/scripts/as2gbmap.py
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
CPPFLAGS+= -DYY_NEVER_INTERACTIVE
pre-configure: sys-endian-buildlink
sys-endian-buildlink:
${MKDIR} ${BUILDLINK_DIR}/include
${LN} -fs /usr/include/sys/endian.h ${BUILDLINK_DIR}/include
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/*.lyx ${DESTDIR}${PREFIX}/share/doc/sdcc
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DESTDIR}${PREFIX}/share/doc/sdcc
.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"