diff options
author | tron <tron@pkgsrc.org> | 2000-09-16 00:19:45 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2000-09-16 00:19:45 +0000 |
commit | 8d646047dfbbe08806c3ef232ded21b26bf566e7 (patch) | |
tree | 4bff8cb5dd83577bd74ddccafe7a79242e234310 /lang/gcc/Makefile | |
parent | 178cf5b6274a2b03097f6f8ce8ebc0866c2411f6 (diff) | |
download | pkgsrc-8d646047dfbbe08806c3ef232ded21b26bf566e7.tar.gz |
Add a message which explains how to use "gcc-2.95.2" via "MAKECONF".
Diffstat (limited to 'lang/gcc/Makefile')
-rw-r--r-- | lang/gcc/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile index acc723ffff7..be1d1f2e9ed 100644 --- a/lang/gcc/Makefile +++ b/lang/gcc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2000/09/15 23:58:47 tron Exp $ +# $NetBSD: Makefile,v 1.5 2000/09/16 00:19:45 tron Exp $ DISTNAME= gcc-2.95.2 CATEGORIES= lang @@ -29,6 +29,7 @@ CONFIGURE_ARGS= --host=${MACHINE_GCC_PLATFORM} \ CONFIGURE_SCRIPT= ${SRCDIR}/configure GCC_VERSION= ${PKGNAME:C/.*-//} +MESSAGE_FILE= ${WRKDIR}/MESSAGE PLIST_SUBST+= GCC_VERSION=${GCC_VERSION} \ MACHINE_GCC_PLATFORM=${MACHINE_GCC_PLATFORM} SRCDIR= ${WRKDIR}/${PKGNAME} @@ -38,8 +39,12 @@ post-extract: ${MKDIR} ${WRKSRC} post-build: - ${SED} -e 's#@@PKGNAME@@#${PKGNAME}#g' -e 's#@@PREFIX@@#${PREFIX}#g' \ - <${FILESDIR}/gcc.mk >${WRKDIR}/gcc.mk + for FILE in ${FILESDIR}/gcc.mk ${PKGDIR}/MESSAGE; do \ + ${SED} -e 's#@@MAKE@@#${MAKE}#g' \ + -e 's#@@PKGNAME@@#${PKGNAME}#g' \ + -e 's#@@PREFIX@@#${PREFIX}#g' \ + <$$FILE >${WRKDIR}/$${FILE##*/}; \ + done post-install: ${RM} -f ${PREFIX}/${PKGNAME}/lib/gcc-lib/${MACHINE_GCC_PLATFORM}/${GCC_VERSION}/include/curses.h ${PREFIX}/${PKGNAME}/bin/cc |