pkgsrc/devel/sdcc/Makefile
jakllsch 608facf428 Add gputils dependency so that the SDCC Microchip PIC support actually
has the runtime libraries ready-to-use.  This also fixes any issues
where the sdcc PLIST would be incorrect if gputils was installed at
sdcc build time.
2010-01-15 21:23:12 +00:00

57 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.40 2010/01/15 21:23:12 jakllsch Exp $
DISTNAME= sdcc-src-2.8.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 8051 code
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}/sdcc/
GNU_CONFIGURE= YES
USE_GNU_READLINE= yes
USE_TOOLS+= gmake lex 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_CCggdb="no"
.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 ${PREFIX}/share/doc/sdcc
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${PREFIX}/share/doc/sdcc
.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"