2000-03-31 04:08:41 +00:00
|
|
|
# New ports collection makefile for: Palm OS PRC-Tools (gcc part)
|
|
|
|
# Date created: Mar 22 2000
|
|
|
|
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 19:19:05 +00:00
|
|
|
PORTNAME= prc-tools-gcc
|
2000-04-21 07:52:25 +00:00
|
|
|
PORTVERSION= 2.0
|
2000-03-31 04:08:41 +00:00
|
|
|
CATEGORIES= palm
|
|
|
|
MASTER_SITES= http://www.palm.com/devzone/tools/gcc/dist/ \
|
|
|
|
${MASTER_SITE_GNU}
|
2000-04-13 19:19:05 +00:00
|
|
|
DISTNAME= prc-tools-${PORTVERSION}
|
2000-03-31 04:08:41 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
gdb/gdb-4.18.tar.gz gcc/gcc-2.95.2.tar.gz
|
|
|
|
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
|
|
|
2000-04-27 07:50:55 +00:00
|
|
|
BUILD_DEPENDS= ${PREFIX}/bin/m68k-palmos-as:${PORTSDIR}/palm/prc-tools-binutils \
|
2000-04-28 00:30:43 +00:00
|
|
|
${LOCALBASE}/bin/autoheader:${PORTSDIR}/devel/autoconf
|
2000-03-31 04:08:41 +00:00
|
|
|
|
|
|
|
USE_BISON= YES
|
|
|
|
USE_GMAKE= YES
|
|
|
|
PREFIX= ${LOCALBASE}/pilot
|
|
|
|
WRKSRC= ${WRKDIR}/build
|
|
|
|
ALL_TARGET= all-gcc
|
|
|
|
INSTALL_TARGET= install-gcc
|
|
|
|
HAS_CONFIGURE= YES
|
|
|
|
CONFIGURE_SCRIPT= ../prc-tools-2.0/configure
|
|
|
|
CONFIGURE_ARGS= --target=m68k-palmos --enable-languages=c,c++ \
|
|
|
|
--sharedstatedir=${LOCALBASE}/palmdev --prefix=${PREFIX}
|
|
|
|
CONFIGURE_ENV= PATH=${PATH}:${PREFIX}/bin
|
|
|
|
MAKE_ENV= PATH=${PATH}:${PREFIX}/bin
|
|
|
|
MAN1= cccp.1 m68k-palmos-g++.1 m68k-palmos-gcc.1
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
CFLAGS:= ${CFLAGS:S/-m486//g}
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
${MKDIR} ${WRKSRC}/empty
|
|
|
|
(cd ${WRKDIR} && \
|
|
|
|
${CAT} prc-tools-2.0/gcc-2.95.2.palmos.diff \
|
|
|
|
prc-tools-2.0/gdb-4.18.palmos.diff | ${PATCH} -p0)
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
(cd ${WRKDIR}/prc-tools-2.0 && \
|
|
|
|
${LN} -sf ../gdb-4.18 gdb; \
|
|
|
|
${LN} -sf ../gcc-2.95.2 gcc)
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|