summaryrefslogtreecommitdiff
path: root/cross/h8300-hms-gcc
diff options
context:
space:
mode:
authorjlam <jlam>2002-09-30 20:27:42 +0000
committerjlam <jlam>2002-09-30 20:27:42 +0000
commitd85fb91d020f15f064ebcc41a22ac6ac003a2d5e (patch)
treeb64931b01845a2266f1d6da31333a8cd5d694963 /cross/h8300-hms-gcc
parent217b29560f14eda75b2df0eff53dc2d5a3874acb (diff)
downloadpkgsrc-d85fb91d020f15f064ebcc41a22ac6ac003a2d5e.tar.gz
buildlink1 -> buildlink2 and use gcc/buildlink2.mk instead of Makefile.gcc
Diffstat (limited to 'cross/h8300-hms-gcc')
-rw-r--r--cross/h8300-hms-gcc/Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/cross/h8300-hms-gcc/Makefile b/cross/h8300-hms-gcc/Makefile
index 25c11271f42..09bc349f90f 100644
--- a/cross/h8300-hms-gcc/Makefile
+++ b/cross/h8300-hms-gcc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2002/06/27 22:29:09 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.2 2002/09/30 20:27:42 jlam Exp $
DISTNAME= gcc-core-3.1
PKGNAME= cross-h8300-hms-gcc-3.1
@@ -15,13 +15,15 @@ MAINTAINER= oishi@ims.ac.jp
HOMEPAGE= #empty
COMMENT= gcc compiler for h8300-hms
-DEPENDS+= cross-h8300-hms-binutils-*:../../cross/h8300-hms-binutils
+DEPENDS+= cross-h8300-hms-binutils-[0-9]*:../../cross/h8300-hms-binutils
+H8300_PREFIX= ${LOCALBASE}/libexec/cross-h8300-hms
+
+USE_BUILDLINK2= yes
USE_GMAKE= yes
-INSTALL_SUBDIR= libexec/cross-h8300-hms
HAS_CONFIGURE= yes
-CONFIGURE_ARGS+= --prefix=${LOCALBASE}/${INSTALL_SUBDIR}
-CONFIGURE_ARGS+= --infodir=${LOCALBASE}/${INSTALL_SUBDIR}/gcc
+CONFIGURE_ARGS+= --prefix=${H8300_PREFIX}
+CONFIGURE_ARGS+= --infodir=${H8300_PREFIX}/gcc
CONFIGURE_ARGS+= --target=h8300-hms
CONFIGURE_ARGS+= --enable-languages=c
CONFIGURE_ARGS+= --with-newlib
@@ -37,13 +39,8 @@ post-extract:
post-install:
for f in h8300-hms-cpp h8300-hms-gcc \
h8300-hms-gccbug h8300-hms-gcov ; do \
- ${LN} -s ../${INSTALL_SUBDIR}/bin/$$f ${LOCALBASE}/bin/$$f ; \
+ ${LN} -s ${H8300_PREFIX}/bin/$$f ${PREFIX}/bin/$$f ; \
done
-GCC_VERSION!= gcc --version
-.if (${GCC_VERSION:C/-.*$$//} == egcs)
-# "egcs" cannot be used, as this package tickles c++ compiler bugs
-.include "../../lang/gcc/Makefile.gcc"
-.endif
-
+.include "../../lang/gcc/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"