blob: 5c563c268b5b7f8dadfac534e423a4a29118425f (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# $NetBSD: Makefile,v 1.24 2005/05/22 20:07:54 jlam Exp $
#
DISTNAME= prc-tools-2.2
PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=prc-tools/}
DISTFILES= ${DISTNAME}.tar.gz ${DIST_BINUTILS}.tar.bz2
DISTFILES+= ${DIST_GCC}.tar.gz ${DIST_GDB}.tar.bz2
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://prc-tools.sourceforge.net/
COMMENT= GNU tool chain for Palm cross development
DIST_BINUTILS= binutils-2.12.1
DIST_GCC= gcc-2.95.3
DIST_GDB= gdb-5.0
BROKEN= Does not build with gcc3 nor buildlink3.
SITES_${DIST_BINUTILS}.tar.bz2=${MASTER_SITE_GNU:=binutils/}
SITES_${DIST_BINUTILS}.tar.bz2+=http://prc-tools.sourceforge.net/misc/
SITES_${DIST_GCC}.tar.gz=${MASTER_SITE_GNU:=gcc/}
SITES_${DIST_GCC}.tar.gz+=http://prc-tools.sourceforge.net/misc/
# gdb-5.0 is no longer on gnu sites
#SITES_${DIST_GDB}.tar.bz2=${MASTER_SITE_GNU:=gdb/}
SITES_${DIST_GDB}.tar.bz2=http://prc-tools.sourceforge.net/misc/
# prc-tools-2.0 was split into multiple packages
CONFLICTS+= prc-tools-base-[0-9]*
CONFLICTS+= prc-tools-binutils-[0-9]*
CONFLICTS+= prc-tools-gcc-[0-9]*
CONFLICTS+= prc-tools-gdb-[0-9]*
USE_TOOLS+= gmake
GNU_CONFIGURE= YES
AUTOCONF_REQD= 2.50
USE_MAKEINFO= YES
INFO_FILES= prc-tools.info
ONLY_FOR_COMPILER= gcc
CONFIG_GUESS_OVERRIDE= # empty
CONFIG_SUB_OVERRIDE= # empty
GCC_REQD+= 2.8.0
#CONFIGURE_ARGS+=--target=m68k-palmos
CONFIGURE_ARGS+=--enable-targets=m68k-palmos,arm-palmos
CONFIGURE_ARGS+=--enable-languages=c,c++
CONFIGURE_ARGS+=--with-headers=${WRKSRC}/empty
CONFIGURE_ARGS+=--with-palmdev-prefix=${LOCALBASE}/share/palmdev
CONFIGURE_ARGS+=--disable-nls
#CONFIGURE_ARGS+=--enable-html-docs=${LOCALBASE}/share/doc/html/prc-tools
post-extract:
${LN} -s ../${DIST_BINUTILS} ${WRKSRC}/binutils
${LN} -s ../${DIST_GCC} ${WRKSRC}/gcc
${LN} -s ../${DIST_GDB} ${WRKSRC}/gdb
${MKDIR} ${WRKSRC}/empty
pre-patch:
cd ${WRKDIR} \
&& ${PATCH} --quiet -p0 < ${WRKSRC}/${DIST_BINUTILS}.palmos.diff
cd ${WRKDIR} \
&& ${PATCH} --quiet -p0 < ${WRKSRC}/${DIST_GCC}.palmos.diff
cd ${WRKDIR} \
&& ${PATCH} --quiet -p0 < ${WRKSRC}/${DIST_GDB}.palmos.diff
.include "../../mk/autoconf.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|