summaryrefslogtreecommitdiff
path: root/gcj/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <romster@shortcircuit.net.au>2007-04-07 19:44:29 +1000
committerDanny Rawlins <romster@shortcircuit.net.au>2007-04-09 01:37:20 +1000
commitde66de093258d3f199de71ba7d4c9a52b717e840 (patch)
tree492bd611f79cff6690c0e1966fd135a147d6737b /gcj/Pkgfile
parent685abe4e806100ad70f0c2523a5af78da13dfd8a (diff)
downloadcontrib-de66de093258d3f199de71ba7d4c9a52b717e840.tar.gz
contrib-de66de093258d3f199de71ba7d4c9a52b717e840.tar.xz
gcj: 4.0.3 -> 4.1.2
Diffstat (limited to 'gcj/Pkgfile')
-rw-r--r--gcj/Pkgfile51
1 files changed, 36 insertions, 15 deletions
diff --git a/gcj/Pkgfile b/gcj/Pkgfile
index bd6d2771c..888eeb3fb 100644
--- a/gcj/Pkgfile
+++ b/gcj/Pkgfile
@@ -5,14 +5,20 @@
# Depends On:
name=gcj
-version=4.0.3
+version=4.1.2
release=1
source=(ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$version/gcc-{core,g++,java}-$version.tar.bz2 \
- $name-$version-version.patch)
+ gcj-$version-nocheck-fixincludes.patch \
+ gcj-$version-fixinc.patch)
build() {
- patch -d gcc-$version -p1 -i $SRC/$name-$version-version.patch
- mkdir -p build/empty
+ patch -d gcc-$version -p1 -i $SRC/gcj-$version-nocheck-fixincludes.patch
+ patch -d gcc-$version -p1 -i $SRC/gcj-$version-fixinc.patch
+
+ sed -i -e 's|VERSUFFIX ""|VERSUFFIX " (CRUX)"|' \
+ gcc-$version/gcc/version.c
+
+ mkdir build
cd build
../gcc-$version/configure \
@@ -27,26 +33,25 @@ build() {
--with-x=no \
--enable-version-specific-runtime-libs
- make
- #make check
- make prefix=$PKG/usr install
+ make bootstrap
+ make check
+ make -j1 prefix=$PKG/usr install
- ln -s /usr/libexec/gcc/i686-pc-linux-gnu/$version/jc1 $PKG/usr/bin/jc1
+ ln -sf /usr/libexec/gcc/i686-pc-linux-gnu/$version/jc1 $PKG/usr/bin/jc1
# remove un-needed files
- find $PKG -name 'README' -exec rm {} \;
+ find $PKG -name 'README' -delete
rm \
$PKG/usr/lib/libiberty.a \
- $PKG/usr/bin/*-linux-gnu-*
+ $PKG/usr/bin/*-linux-gnu-* \
+ $PKG/usr/man/man1/{cpp,g++,gcc,gcov}.1
+
rm -r \
$PKG/usr/info \
+ $PKG/usr/man/man7 \
$PKG/usr/lib/gcc/*/$version/install-tools
- rm -fr \
- $PKG/usr/man/man1/{cpp,gcc,gcov}.1.gz \
- $PKG/usr/man/man7
-
# remove files already on the system out of the port
for i in $(find $PKG | sed -e "s|$PKG|/|"); do
if [ -e "$i" ] && [ ! -d "$i" ] ; then
@@ -55,11 +60,27 @@ build() {
done
# Remove empty directories
- find $PKG -depth -empty -exec rm -r {} \;
+ find $PKG -depth -empty -delete
# remove build links from *.la files
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 gcj jc1; 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 gcj jc1; do
+ cd $PKG/usr/lib/ccache && ln -s ../../bin/ccache $c
+ done
+ fi
}

Generated by cgit