blob: 5ad0c43f81a96ebc9815fc064fdf2d8616b56219 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# $NetBSD: Makefile,v 1.5 2001/04/23 17:35:41 wulf Exp $
# FreeBSD: ports/devel/sdcc/Makefile,v 1.5 2000/04/15 15:13:38 knu Exp
DISTNAME= sdcc-2.2.1-src
PKGNAME= sdcc-2.2.1
CATEGORIES= devel lang
MASTER_SITES= http://web.kd0yu.com/sdcc/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://sdcc.sourceforge.net/
COMMENT= Cross compile 8051 code
ALL_TARGET= dep all
WRKSRC= ${WRKDIR}/${PKGNAME}
#
# This HACK circumvent a problem with the use of
# yacc that breaks the building process of sdcc.
# Use of bison fixes this problem for now.
#
BUILD_DEPENDS+= bison-*:../../devel/bison
YACC= bison
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS+=--datadir=${LOCALBASE}/share/sdcc
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
CONFIGURE_ENV+= CPPFLAGS=-I${WRKDIR}/include
post-extract:
${MKDIR} ${WRKDIR}/include
${LN} -fs /usr/include/sys/endian.h ${WRKDIR}/include
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sdcc
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sdcc/avr
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sdcc/z80
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/sdcc/
${INSTALL_DATA} ${WRKSRC}/doc/*.sgml ${PREFIX}/share/doc/sdcc/
${INSTALL_DATA} ${WRKSRC}/doc/*.lyx ${PREFIX}/share/doc/sdcc/
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${PREFIX}/share/doc/sdcc/
${INSTALL_DATA} ${WRKSRC}/doc/avr/avr_design.txt ${PREFIX}/share/doc/sdcc/avr
${INSTALL_DATA} ${WRKSRC}/doc/z80/README ${PREFIX}/share/doc/sdcc/z80
.include "../../mk/bsd.pkg.mk"
|