summaryrefslogtreecommitdiff
path: root/gdc/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <romster@shortcircuit.net.au>2007-04-01 09:41:57 +1000
committerDanny Rawlins <romster@shortcircuit.net.au>2007-04-01 09:41:57 +1000
commita583d91d9a17469c82ff4de67d3e80cdeca2c9ca (patch)
treeaf1169beac508e1e6e0c340e33296bd567047307 /gdc/Pkgfile
parent09398cf997240d3c746c568a9c3a0de287738eac (diff)
downloadcontrib-a583d91d9a17469c82ff4de67d3e80cdeca2c9ca.tar.gz
contrib-a583d91d9a17469c82ff4de67d3e80cdeca2c9ca.tar.xz
gdc: 4.0.3 -> 4.1.2
Diffstat (limited to 'gdc/Pkgfile')
-rw-r--r--gdc/Pkgfile42
1 files changed, 30 insertions, 12 deletions
diff --git a/gdc/Pkgfile b/gdc/Pkgfile
index 6a1c89597..dda951ec6 100644
--- a/gdc/Pkgfile
+++ b/gdc/Pkgfile
@@ -6,26 +6,28 @@
name=gdc
version=0.23
-gcc_version=4.0.3
+gcc_version=4.1.2
release=1
source=(http://dl.sourceforge.net/sourceforge/dgcc/gdc-$version-src.tar.bz2 \
ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$gcc_version/gcc-{core,g++}-$gcc_version.tar.bz2 \
- gcc-$gcc_version-latentbug-addrefvars.patch \
- gcc-$gcc_version-nocheck-fixincludes.patch \
- gcc-$gcc_version-version.patch \
- gcc-$gcc_version-fixinc.patch)
+ gdc-$gcc_version-nocheck-fixincludes.patch \
+ gdc-$gcc_version-fixinc.patch)
build() {
- patch -d gcc-$gcc_version -p1 -i $SRC/gcc-$gcc_version-latentbug-addrefvars.patch
- patch -d gcc-$gcc_version -p1 -i $SRC/gcc-$gcc_version-nocheck-fixincludes.patch
- patch -d gcc-$gcc_version -p1 -i $SRC/gcc-$gcc_version-version.patch
- patch -d gcc-$gcc_version -p1 -i $SRC/gcc-$gcc_version-fixinc.patch
+ patch -d gcc-$gcc_version -p1 -i $SRC/gdc-$gcc_version-nocheck-fixincludes.patch
+ patch -d gcc-$gcc_version -p1 -i $SRC/gdc-$gcc_version-fixinc.patch
+
+ sed -i -e 's|VERSUFFIX ""|VERSUFFIX " (CRUX)"|' \
+ gcc-$gcc_version/gcc/version.c
mkdir build
- cd gcc-$gcc_version
+ cd build
mv $SRC/d $SRC/gcc-$gcc_version/gcc/d
- ./gcc/d/setup-gcc.sh
- cd ../build
+
+ (
+ cd ../gcc-$gcc_version
+ ./gcc/d/setup-gcc.sh
+ )
../gcc-$gcc_version/configure \
--prefix=/usr \
@@ -69,5 +71,21 @@ build() {
for i in `find $PKG -name '*.la' | sed -e "s|$PKG|/|"`; do
sed -i "s|-L$SRC[^ ]* ||g" $PKG/$i
done
+
+ # install distcc symlinks if distcc is installed
+ if prt-get listinst distcc > /dev/null; then
+ install -d $PKG/usr/lib/distcc
+ for c in gdc gdmd; do
+ cd $PKG/usr/lib/distcc && ln -s ../../bin/distcc $c
+ done
+ fi
+
+ # install ccache symlinks if ccache is installed
+ if prt-get listinst ccache > /dev/null; then
+ install -d $PKG/usr/lib/ccache
+ for c in gdc gdmd; do
+ cd $PKG/usr/lib/ccache && ln -s ../../bin/ccache $c
+ done
+ fi
}

Generated by cgit