aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@FreeBSD.org>2011-09-25 14:58:08 +0000
committerGerald Pfeifer <gerald@FreeBSD.org>2011-09-25 14:58:08 +0000
commit8d7cdb156b94b2ef4522ec6431fb85557a2b7dce (patch)
tree6cc199072f13a033ff1ca51b62b18167f5f2880d /lang
parentffbdd696f3acfff9f0204d06b3650a79861a075e (diff)
downloadports-8d7cdb156b94b2ef4522ec6431fb85557a2b7dce.tar.gz
ports-8d7cdb156b94b2ef4522ec6431fb85557a2b7dce.zip
Notes
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc46/Makefile7
-rw-r--r--lang/gcc46/pkg-plist26
2 files changed, 19 insertions, 14 deletions
diff --git a/lang/gcc46/Makefile b/lang/gcc46/Makefile
index 52e29f31f5dc..6ac88f3db347 100644
--- a/lang/gcc46/Makefile
+++ b/lang/gcc46/Makefile
@@ -25,7 +25,12 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
BUILD_DEPENDS+= runtest:${PORTSDIR}/misc/dejagnu
.endif
+CONFLICTS= gcc-4.6.1*
+
+# VERSIONSTRING relates to downloads, GCC_VERSION and SUFFIX to names
+# of executables and directories once installed.
VERSIONSTRING= ${PORTVERSION:C/([0-9]+\.[0-9]+).*\.([0-9]+)/\1-\2/}
+GCC_VERSION= ${PORTVERSION:C/(.+)\.[0-9]{8}/\1/}
SUFFIX= ${PORTVERSION:C/([0-9]+).([0-9]+).*/\1\2/}
LATEST_LINK= gcc${SUFFIX}${PKGNAMESUFFIX}
ONLY_FOR_ARCHS= amd64 i386 ia64 powerpc sparc64
@@ -75,7 +80,7 @@ CONFIGURE_ARGS+=--disable-nls \
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
ALL_TARGET= bootstrap-lean
USE_LDCONFIG= ${TARGLIB}
-PLIST_SUB= GCC_VER=${PORTVERSION:C/(.+)\.[0-9]+/\1/} \
+PLIST_SUB= GCC_VERSION=${GCC_VERSION} \
GNU_HOST=${CONFIGURE_TARGET} \
SUFFIX=${SUFFIX}
MAN1= cpp${SUFFIX}.1 \
diff --git a/lang/gcc46/pkg-plist b/lang/gcc46/pkg-plist
index d9851de1fd80..c43d639a499d 100644
--- a/lang/gcc46/pkg-plist
+++ b/lang/gcc46/pkg-plist
@@ -2,7 +2,7 @@
bin/%%GNU_HOST%%-c++%%SUFFIX%%
bin/%%GNU_HOST%%-g++%%SUFFIX%%
bin/%%GNU_HOST%%-gcc%%SUFFIX%%
-bin/%%GNU_HOST%%-gcc-%%GCC_VER%%
+bin/%%GNU_HOST%%-gcc-%%GCC_VERSION%%
bin/%%GNU_HOST%%-gfortran%%SUFFIX%%
bin/c++%%SUFFIX%%
bin/cpp%%SUFFIX%%
@@ -11,16 +11,16 @@ bin/gcc%%SUFFIX%%
bin/gcov%%SUFFIX%%
bin/gfortran%%SUFFIX%%
info/gcc%%SUFFIX%%/dir
-%%JAVA%%share/gcc-%%GCC_VER%%/python/libjava/aotcompile.py
-%%JAVA%%share/gcc-%%GCC_VER%%/python/libjava/classfile.py
-%%JAVA%%@dirrm share/gcc-%%GCC_VER%%/python/libjava
-share/gcc-%%GCC_VER%%/python/libstdcxx/__init__.py
-share/gcc-%%GCC_VER%%/python/libstdcxx/v6/__init__.py
-share/gcc-%%GCC_VER%%/python/libstdcxx/v6/printers.py
-@dirrm share/gcc-%%GCC_VER%%/python/libstdcxx/v6
-@dirrm share/gcc-%%GCC_VER%%/python/libstdcxx
-@dirrm share/gcc-%%GCC_VER%%/python
-@dirrm share/gcc-%%GCC_VER%%
+%%JAVA%%share/gcc-%%GCC_VERSION%%/python/libjava/aotcompile.py
+%%JAVA%%share/gcc-%%GCC_VERSION%%/python/libjava/classfile.py
+%%JAVA%%@dirrm share/gcc-%%GCC_VERSION%%/python/libjava
+share/gcc-%%GCC_VERSION%%/python/libstdcxx/__init__.py
+share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6/__init__.py
+share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6/printers.py
+@dirrm share/gcc-%%GCC_VERSION%%/python/libstdcxx/v6
+@dirrm share/gcc-%%GCC_VERSION%%/python/libstdcxx
+@dirrm share/gcc-%%GCC_VERSION%%/python
+@dirrm share/gcc-%%GCC_VERSION%%
%%JAVA%%bin/%%GNU_HOST%%-gcj%%SUFFIX%%
%%JAVA%%bin/aot-compile%%SUFFIX%%
%%JAVA%%bin/gappletviewer%%SUFFIX%%
@@ -45,8 +45,8 @@ share/gcc-%%GCC_VER%%/python/libstdcxx/v6/printers.py
%%JAVA%%bin/rebuild-gcj-db%%SUFFIX%%
%%JAVA%%libdata/pkgconfig/libgcj-4.6.pc
%%JAVA%%share/java/ecj.jar
-%%JAVA%%share/java/libgcj-%%GCC_VER%%.jar
-%%JAVA%%share/java/libgcj-tools-%%GCC_VER%%.jar
+%%JAVA%%share/java/libgcj-%%GCC_VERSION%%.jar
+%%JAVA%%share/java/libgcj-tools-%%GCC_VERSION%%.jar
@exec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
@unexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi
@comment Insert PLIST.lib here