summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2003-07-04 16:11:55 +0000
committerseb <seb@pkgsrc.org>2003-07-04 16:11:55 +0000
commitb132988247e33b80899065d60eb320f473054250 (patch)
tree81b85379a3aece3f28940140931e89e84d532797 /lang
parentca6fa9d3a0e83a04c8030c09ab84c02049702699 (diff)
downloadpkgsrc-b132988247e33b80899065d60eb320f473054250.tar.gz
Install example mk.conf in package specific directory.
Adjust and make uniform various substitution variables and MESSAGE files. No PKGREVISION bump right now.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc/MESSAGE7
-rw-r--r--lang/gcc/Makefile14
-rw-r--r--lang/gcc/PLIST6
-rw-r--r--lang/gcc/files/gcc.mk4
-rw-r--r--lang/gcc3/MESSAGE7
-rw-r--r--lang/gcc3/Makefile12
-rw-r--r--lang/gcc3/PLIST6
-rw-r--r--lang/gcc3/files/gcc3.mk4
8 files changed, 32 insertions, 28 deletions
diff --git a/lang/gcc/MESSAGE b/lang/gcc/MESSAGE
index b13cf8d94e8..1277c44f4f2 100644
--- a/lang/gcc/MESSAGE
+++ b/lang/gcc/MESSAGE
@@ -1,7 +1,8 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.4 2003/05/02 08:22:12 jmmv Exp $
+$NetBSD: MESSAGE,v 1.5 2003/07/04 16:11:55 seb Exp $
-To use ${PKGNAME} include "${PREFIX}/share/examples/gcc/mk.conf" in your
-BSD style makefile.
+To use ${PKGNAME} include
+"${PREFIX}/share/examples/${DISTNAME}/mk.conf"
+in your BSD style makefile.
===========================================================================
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile
index 23dc4d220e3..29f951b17b2 100644
--- a/lang/gcc/Makefile
+++ b/lang/gcc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.60 2003/06/02 01:19:04 jschauma Exp $
+# $NetBSD: Makefile,v 1.61 2003/07/04 16:11:55 seb Exp $
DISTNAME= gcc-2.95.3
PKGREVISION= 2
@@ -26,7 +26,6 @@ CONFIGURE_ARGS= --host=${MACHINE_GNU_PLATFORM}
CONFIGURE_ARGS+= --prefix=${GCC_PREFIX}
CONFIGURE_ARGS+= --enable-shared
-PLIST_SUBST+= GCC_VERSION=${PKGVERSION}
CONFIGURE_DIRS= ${WRKDIR}/objdir
BUILD_DIRS= ${CONFIGURE_DIRS}
@@ -57,6 +56,9 @@ ALL_TARGET= bootstrap
GCC_ARCHDIR= ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${PKGVERSION}
FILES_SUBST+= GCC_PREFIX=${GCC_PREFIX}
+FILES_SUBST+= DISTNAME=${DISTNAME}
+MESSAGE_SUBST+= DISTNAME=${DISTNAME}
+PLIST_SUBST+= DISTNAME=${DISTNAME}
post-extract:
${MKDIR} ${WRKSRC}
@@ -87,13 +89,13 @@ post-build:
# make install; make deinstall; make install
#
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gcc
- ${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/share/examples/gcc/mk.conf
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${DISTNAME}
+ ${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/share/examples/${DISTNAME}/mk.conf
-cd ${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9
.else
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gcc
- ${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/share/examples/gcc/mk.conf
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${DISTNAME}
+ ${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/share/examples/${DISTNAME}/mk.conf
. if exists(/usr/include/g++/FlexLexer.h)
${LN} -fs /usr/include/g++/FlexLexer.h \
${GCC_PREFIX}/include/g++-3/FlexLexer.h
diff --git a/lang/gcc/PLIST b/lang/gcc/PLIST
index e10177a07b3..32d35c80583 100644
--- a/lang/gcc/PLIST
+++ b/lang/gcc/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2003/05/02 08:22:12 jmmv Exp $
+@comment $NetBSD: PLIST,v 1.9 2003/07/04 16:11:56 seb Exp $
@unexec ${INSTALL_INFO} --delete %D/info/chill.info %D/info/dir
info/chill.info
@exec ${INSTALL_INFO} %D/info/chill.info %D/info/dir
@@ -65,5 +65,5 @@ info/gcc.info-6
info/gcc.info-7
info/gcc.info-8
info/gcc.info-9
-share/examples/gcc/mk.conf
-@dirrm share/examples/gcc
+share/examples/${DISTNAME}/mk.conf
+@dirrm share/examples/${DISTNAME}
diff --git a/lang/gcc/files/gcc.mk b/lang/gcc/files/gcc.mk
index 84ae399902c..7a9a58fc384 100644
--- a/lang/gcc/files/gcc.mk
+++ b/lang/gcc/files/gcc.mk
@@ -1,6 +1,6 @@
-# $NetBSD: gcc.mk,v 1.4 2002/09/27 12:28:16 jlam Exp $
+# $NetBSD: gcc.mk,v 1.5 2003/07/04 16:11:56 seb Exp $
#
-# make configuration file for @PKGNAME@
+# make configuration file for @DISTNAME@
CC= @GCC_PREFIX@/bin/cc
CPP= @GCC_PREFIX@/bin/cpp
diff --git a/lang/gcc3/MESSAGE b/lang/gcc3/MESSAGE
index 912679b448f..3ec6da7a8cd 100644
--- a/lang/gcc3/MESSAGE
+++ b/lang/gcc3/MESSAGE
@@ -1,7 +1,8 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.3 2003/05/02 13:36:51 jmmv Exp $
+$NetBSD: MESSAGE,v 1.4 2003/07/04 16:11:57 seb Exp $
-To use ${PKGNAME} include "${PREFIX}/share/examples/gcc/mk.conf" in your
-BSD style makefile.
+To use ${PKGNAME} include
+"${PREFIX}/share/examples/${DISTNAME}/mk.conf"
+in your BSD style makefile.
===========================================================================
diff --git a/lang/gcc3/Makefile b/lang/gcc3/Makefile
index 680f5e9b4b8..d8130ae28dc 100644
--- a/lang/gcc3/Makefile
+++ b/lang/gcc3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2003/07/03 18:19:18 drochner Exp $
+# $NetBSD: Makefile,v 1.31 2003/07/04 16:11:57 seb Exp $
#
DISTNAME= gcc-3.3
@@ -26,9 +26,9 @@ CONFIGURE_ARGS+= --infodir=${PREFIX}/info
CONFIGURE_ARGS+= --prefix=${GCC_PREFIX}
UNLIMIT_RESOURCES= datasize
-# as this is named gcc3, use DISTNAME instead.
-FILES_SUBST+= PKGNAME_NOREV=${DISTNAME} GCC_PREFIX=${GCC_PREFIX}
-MESSAGE_SUBST+= PKGNAME_NOREV=${DISTNAME}
+FILES_SUBST+= DISTNAME=${DISTNAME} GCC_PREFIX=${GCC_PREFIX}
+MESSAGE_SUBST+= DISTNAME=${DISTNAME}
+PLIST_SUBST+= DISTNAME=${DISTNAME}
TEXINFO_REQD= 4.2
@@ -97,8 +97,8 @@ post-install:
.if ${OPSYS} == "SunOS"
-cd ${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9
.endif
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gcc
- ${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${PREFIX}/share/examples/gcc/mk.conf
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${DISTNAME}
+ ${INSTALL_DATA} ${WRKDIR}/gcc3.mk ${PREFIX}/share/examples/${DISTNAME}/mk.conf
${LN} -f ${GCC_PREFIX}/bin/gcc ${GCC_PREFIX}/bin/cc
# ${LN} -f ${GCC_PREFIX}/bin/g77 ${GCC_PREFIX}/bin/f77
${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC}
diff --git a/lang/gcc3/PLIST b/lang/gcc3/PLIST
index 4afeceb7a85..10cac3e6f58 100644
--- a/lang/gcc3/PLIST
+++ b/lang/gcc3/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2003/07/03 15:56:37 drochner Exp $
+@comment $NetBSD: PLIST,v 1.7 2003/07/04 16:11:57 seb Exp $
@unexec ${INSTALL_INFO} --delete %D/info/cpp.info %D/info/dir
info/cpp.info
@exec ${INSTALL_INFO} %D/info/cpp.info %D/info/dir
@@ -14,5 +14,5 @@ info/gccint.info
@unexec ${INSTALL_INFO} --delete %D/info/cppinternals.info %D/info/dir
info/cppinternals.info
@exec ${INSTALL_INFO} %D/info/cppinternals.info %D/info/dir
-share/examples/gcc/mk.conf
-@dirrm share/examples/gcc
+share/examples/${DISTNAME}/mk.conf
+@dirrm share/examples/${DISTNAME}
diff --git a/lang/gcc3/files/gcc3.mk b/lang/gcc3/files/gcc3.mk
index f863b284969..d55ae8b3ede 100644
--- a/lang/gcc3/files/gcc3.mk
+++ b/lang/gcc3/files/gcc3.mk
@@ -1,6 +1,6 @@
-# $NetBSD: gcc3.mk,v 1.6 2003/07/03 15:56:38 drochner Exp $
+# $NetBSD: gcc3.mk,v 1.7 2003/07/04 16:11:58 seb Exp $
#
-# make configuration file for @PKGNAME_NOREV@
+# make configuration file for @DISTNAME@
USE_GCC3= # defined
CC= @GCC_PREFIX@/bin/cc