Annotation of pkgsrc/devel/sdcc3/Makefile, revision 1.29
1.29 ! adam 1: # $NetBSD: Makefile,v 1.28 2018/12/09 21:05:32 adam Exp $
1.1 ryoon 2:
1.25 bouyer 3: DISTNAME= sdcc-src-3.7.0
1.1 ryoon 4: PKGNAME= ${DISTNAME:S/-src//}
1.29 ! adam 5: PKGREVISION= 3
1.1 ryoon 6: CATEGORIES= devel lang
7: MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sdcc/}
8: EXTRACT_SUFX= .tar.bz2
9:
1.16 bouyer 10: MAINTAINER= [email protected]
1.1 ryoon 11: HOMEPAGE= http://sdcc.sourceforge.net/
1.12 ryoon 12: COMMENT= Cross compile microcontroller code
1.1 ryoon 13: LICENSE= gnu-gpl-v2
14:
15: DEPENDS+= gputils-[0-9]*:../../devel/gputils
16:
17: USE_LANGUAGES= c c++
18:
19: # XXX - This HACK circumvent a problem with the use of yacc that breaks the
20: # XXX - building process of sdcc. Use of bison fixes this problem for now.
21: #
1.16 bouyer 22: USE_TOOLS+= bison makeinfo
23: INFO_FILES= yes
1.1 ryoon 24:
25: BUILD_TARGET= dep all
26:
1.25 bouyer 27: WRKSRC= ${WRKDIR}/sdcc
1.1 ryoon 28: GNU_CONFIGURE= YES
1.9 jperkin 29: USE_TOOLS+= gmake lex:run perl:run
1.1 ryoon 30:
31: CONFIGURE_ARGS+= --datadir=${PREFIX}/share/sdcc
32: CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/sdcc
33:
34: # needed for some arch's. -fdollars-in-identifiers is enabled
35: # by default on some, not on others
36: CPPFLAGS+= -fdollars-in-identifiers
37: CONFIGURE_ENV+= MACHINE_ARCH=${MACHINE_ARCH:Q}
38: CONFIGURE_ENV+= sdcc_cv_c_ggdb="no"
39:
40: REPLACE_PYTHON= support/scripts/as2gbmap.py
1.16 bouyer 41: MAKE_JOBS_SAFE= NO
1.1 ryoon 42:
43: .include "../../mk/bsd.prefs.mk"
44:
45: .if ${OPSYS} == "NetBSD"
46: CPPFLAGS+= -DYY_NEVER_INTERACTIVE
47:
48: pre-configure: sys-endian-buildlink
49:
50: sys-endian-buildlink:
51: ${MKDIR} ${BUILDLINK_DIR}/include
52: ${LN} -fs /usr/include/sys/endian.h ${BUILDLINK_DIR}/include
53: .endif
54:
55: post-install:
56: ${INSTALL_DATA} ${WRKSRC}/doc/*.lyx ${DESTDIR}${PREFIX}/share/doc/sdcc
57: ${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DESTDIR}${PREFIX}/share/doc/sdcc
58:
59: .include "../../devel/boehm-gc/buildlink3.mk"
60: .include "../../devel/boost-libs/buildlink3.mk"
61: .include "../../devel/readline/buildlink3.mk"
62: .include "../../lang/python/application.mk"
63: .include "../../mk/bsd.pkg.mk"
CVSweb <[email protected]>