2012-10-31 12:16:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.44 2012/10/31 11:19:45 asau Exp $
|
2000-08-25 23:07:13 +02:00
|
|
|
|
2008-10-17 09:20:22 +02:00
|
|
|
DISTNAME= sdcc-src-2.8.0
|
2004-04-21 05:50:07 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/-src//}
|
2012-10-03 23:53:53 +02:00
|
|
|
PKGREVISION= 3
|
2000-08-25 23:07:13 +02:00
|
|
|
CATEGORIES= devel lang
|
2004-06-07 02:16:58 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sdcc/}
|
2008-10-17 09:20:22 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2000-08-25 23:07:13 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2000-08-25 23:49:28 +02:00
|
|
|
HOMEPAGE= http://sdcc.sourceforge.net/
|
2001-02-16 15:38:16 +01:00
|
|
|
COMMENT= Cross compile 8051 code
|
2011-03-11 12:36:28 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
2000-08-25 23:07:13 +02:00
|
|
|
|
2010-01-15 22:23:12 +01:00
|
|
|
DEPENDS+= gputils-[0-9]*:../../devel/gputils
|
|
|
|
|
2011-12-11 15:24:38 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2006-05-11 15:55:38 +02:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
|
2001-11-28 05:49:01 +01:00
|
|
|
# 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.
|
2001-04-23 19:33:05 +02:00
|
|
|
#
|
2005-05-22 22:28:47 +02:00
|
|
|
USE_TOOLS+= bison
|
2001-04-23 19:33:05 +02:00
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= dep all
|
2004-04-21 05:50:07 +02:00
|
|
|
|
2008-10-17 09:20:22 +02:00
|
|
|
WRKSRC= ${WRKDIR}/sdcc/
|
2001-11-28 05:49:01 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2008-10-17 09:20:22 +02:00
|
|
|
USE_GNU_READLINE= yes
|
2006-06-08 17:52:49 +02:00
|
|
|
USE_TOOLS+= gmake lex perl:run
|
2004-01-22 09:24:28 +01:00
|
|
|
|
2001-11-28 05:49:01 +01:00
|
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/sdcc
|
2008-10-17 09:20:22 +02:00
|
|
|
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/sdcc
|
2000-08-25 23:49:28 +02:00
|
|
|
|
2001-05-04 00:03:31 +02:00
|
|
|
# needed for some arch's. -fdollars-in-identifiers is enabled
|
|
|
|
# by default on some, not on others
|
2001-11-28 05:49:01 +01:00
|
|
|
CPPFLAGS+= -fdollars-in-identifiers
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH:Q}
|
2004-06-07 02:16:58 +02:00
|
|
|
CONFIGURE_ENV+= sdcc_cv_CCggdb="no"
|
2001-05-04 00:03:31 +02:00
|
|
|
|
2000-08-25 23:49:28 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
2001-11-28 05:49:01 +01:00
|
|
|
CPPFLAGS+= -DYY_NEVER_INTERACTIVE
|
2000-08-25 23:49:28 +02:00
|
|
|
|
2001-11-28 05:49:01 +01:00
|
|
|
pre-configure: sys-endian-buildlink
|
|
|
|
|
|
|
|
sys-endian-buildlink:
|
2008-10-17 09:20:22 +02:00
|
|
|
${MKDIR} ${BUILDLINK_DIR}/include
|
|
|
|
${LN} -fs /usr/include/sys/endian.h ${BUILDLINK_DIR}/include
|
2000-08-25 23:49:28 +02:00
|
|
|
.endif
|
2000-08-25 23:07:13 +02:00
|
|
|
|
2000-09-25 17:59:59 +02:00
|
|
|
post-install:
|
2011-03-11 12:36:28 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.lyx ${DESTDIR}${PREFIX}/share/doc/sdcc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DESTDIR}${PREFIX}/share/doc/sdcc
|
2000-09-25 17:59:59 +02:00
|
|
|
|
2004-04-21 05:50:07 +02:00
|
|
|
.include "../../devel/boehm-gc/buildlink3.mk"
|
2008-10-17 09:20:22 +02:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
2000-08-25 23:49:28 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|