2004-08-05 15:38:00 +02:00
|
|
|
# $NetBSD: Makefile,v 1.13 2004/08/05 13:38:00 drochner Exp $
|
2002-06-28 00:29:09 +02:00
|
|
|
|
|
|
|
DISTNAME= gcc-core-3.1
|
|
|
|
PKGNAME= cross-h8300-hms-gcc-3.1
|
|
|
|
CATEGORIES= cross
|
|
|
|
MASTER_SITES= ftp://ftp.gnu.org/gnu/gcc/gcc-3.1/ \
|
|
|
|
ftp://sources.redhat.com/pub/newlib/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} newlib-1.10.0.tar.gz
|
|
|
|
|
2004-08-05 15:38:00 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITE_SOURCEFORGE:=h8300-hms/}
|
2002-06-28 00:29:09 +02:00
|
|
|
PATCHFILES= h8300-hms-gcc-3.1-1.patch
|
|
|
|
PATCH_DIST_ARGS= -d ${SRCDIR} -E -p1
|
|
|
|
|
|
|
|
MAINTAINER= oishi@ims.ac.jp
|
|
|
|
HOMEPAGE= #empty
|
2003-07-21 18:35:12 +02:00
|
|
|
COMMENT= GCC compiler for h8300-hms
|
2002-06-28 00:29:09 +02:00
|
|
|
|
2002-09-30 22:27:42 +02:00
|
|
|
DEPENDS+= cross-h8300-hms-binutils-[0-9]*:../../cross/h8300-hms-binutils
|
2002-06-28 00:29:09 +02:00
|
|
|
|
2002-09-30 22:27:42 +02:00
|
|
|
H8300_PREFIX= ${LOCALBASE}/libexec/cross-h8300-hms
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/objdir
|
2004-05-08 06:50:50 +02:00
|
|
|
USE_BUILDLINK3= yes
|
2004-01-22 08:49:20 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
2002-06-28 00:29:09 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2002-09-30 22:27:42 +02:00
|
|
|
CONFIGURE_ARGS+= --prefix=${H8300_PREFIX}
|
|
|
|
CONFIGURE_ARGS+= --infodir=${H8300_PREFIX}/gcc
|
2002-06-28 00:29:09 +02:00
|
|
|
CONFIGURE_ARGS+= --target=h8300-hms
|
|
|
|
CONFIGURE_ARGS+= --enable-languages=c
|
|
|
|
CONFIGURE_ARGS+= --with-newlib
|
|
|
|
CONFIGURE_SCRIPT= ${SRCDIR}/configure
|
|
|
|
SRCDIR= ${WRKDIR}/gcc-3.1
|
|
|
|
ALL_TARGET= CFLAGS="-O2 -fomit-frame-pointer" all
|
2003-12-26 14:16:31 +01:00
|
|
|
INFO_DIR= ${H8300_PREFIX:S|${PREFIX}/||}/gcc
|
|
|
|
INFO_FILES= cpp.info cppinternals.info gcc.info gccint.info
|
2002-06-28 00:29:09 +02:00
|
|
|
|
2004-07-04 02:23:21 +02:00
|
|
|
GCC_REQD+= 2.8.0
|
2003-09-12 22:07:06 +02:00
|
|
|
|
2002-06-28 00:29:09 +02:00
|
|
|
post-extract:
|
|
|
|
${LN} -s ${WRKDIR}/newlib-1.10.0/newlib ${SRCDIR}/newlib
|
|
|
|
${MKDIR} ${WRKSRC}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
for f in h8300-hms-cpp h8300-hms-gcc \
|
|
|
|
h8300-hms-gccbug h8300-hms-gcov ; do \
|
2002-09-30 22:27:42 +02:00
|
|
|
${LN} -s ${H8300_PREFIX}/bin/$$f ${PREFIX}/bin/$$f ; \
|
2002-06-28 00:29:09 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|