2004-03-02 20:49:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.18 2004/03/02 19:49:40 kristerw Exp $
|
2001-04-25 19:39:16 +02:00
|
|
|
#
|
|
|
|
|
2002-10-16 01:07:16 +02:00
|
|
|
DISTNAME= prc-tools-2.2
|
2003-07-13 15:50:19 +02:00
|
|
|
PKGREVISION= 1
|
2002-10-16 01:07:16 +02:00
|
|
|
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
|
2001-06-27 07:07:33 +02:00
|
|
|
|
2003-10-11 16:20:20 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2002-10-16 01:07:16 +02:00
|
|
|
HOMEPAGE= http://prc-tools.sourceforge.net/
|
2001-04-25 19:39:16 +02:00
|
|
|
COMMENT= GNU tool chain for Palm cross development
|
|
|
|
|
2002-10-16 01:07:16 +02:00
|
|
|
DIST_BINUTILS= binutils-2.12.1
|
|
|
|
DIST_GCC= gcc-2.95.3
|
|
|
|
DIST_GDB= gdb-5.0
|
2001-04-25 19:39:16 +02:00
|
|
|
|
2002-10-16 01:07:16 +02:00
|
|
|
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/
|
2001-04-25 19:39:16 +02:00
|
|
|
|
2002-10-16 01:07:16 +02:00
|
|
|
# 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]*
|
2001-04-25 19:39:16 +02:00
|
|
|
|
2004-01-22 09:24:28 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
2002-10-16 01:07:16 +02:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_BUILDLINK2= YES
|
2002-11-24 02:42:18 +01:00
|
|
|
AUTOCONF_REQD= 2.50
|
2003-06-24 02:35:34 +02:00
|
|
|
USE_MAKEINFO= YES
|
|
|
|
INFO_FILES= prc-tools.info
|
2002-11-24 02:42:18 +01:00
|
|
|
|
2004-03-02 20:49:40 +01:00
|
|
|
CONFIG_GUESS_OVERRIDE= # empty
|
|
|
|
CONFIG_SUB_OVERRIDE= # empty
|
|
|
|
|
2003-09-17 21:39:58 +02:00
|
|
|
USE_PKGSRC_GCC= # defined
|
2003-09-12 22:07:06 +02:00
|
|
|
|
2002-10-16 01:07:16 +02:00
|
|
|
#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
|
2001-04-25 19:39:16 +02:00
|
|
|
|
2002-10-16 01:07:16 +02:00
|
|
|
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
|
|
|
|
|
2002-11-24 02:42:18 +01:00
|
|
|
.include "../../mk/autoconf.mk"
|
2003-09-28 11:13:55 +02:00
|
|
|
.include "../../devel/ncurses/buildlink2.mk"
|
2001-06-27 07:07:33 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|