diff options
author | Lukc <lukc@upyum.com> | 2010-12-12 05:14:14 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2010-12-12 05:14:14 +0100 |
commit | 3e6f582a1b1f0ae445f3abf935c6c005569e96ee (patch) | |
tree | f86a97a3ccbab3d9327bec36dd28f0660c558d54 /gcc/Pkgfile | |
parent | f04de4a3ba2d1b68d9a32149a1154548c816d433 (diff) | |
download | devel-3e6f582a1b1f0ae445f3abf935c6c005569e96ee.tar.gz devel-3e6f582a1b1f0ae445f3abf935c6c005569e96ee.tar.bz2 devel-3e6f582a1b1f0ae445f3abf935c6c005569e96ee.tar.xz devel-3e6f582a1b1f0ae445f3abf935c6c005569e96ee.zip |
[NON TESTÉ] Recette de GCC ajoutée.
Diffstat (limited to 'gcc/Pkgfile')
-rw-r--r-- | gcc/Pkgfile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gcc/Pkgfile b/gcc/Pkgfile new file mode 100644 index 0000000..ec06b45 --- /dev/null +++ b/gcc/Pkgfile @@ -0,0 +1,45 @@ +description="The GNU Compiler Collection" +packager="CRUX System Team <core-ports AT crux DOT nu>" +maintainer="Lukc <lukc AT upyum DOT com>" +url="http://$name.gnu.org" +depends=(zlib libmpc) + +name=$name +version=$version +release=1 +source=( + http://ftp.gnu.org/gnu/$name/$name-$version/$name-core-$version.tar.bz2 + http://ftp.gnu.org/gnu/$name/$name-$version/$name-g++-$version.tar.bz2 + http://ftp.gnu.org/gnu/$name/$name-$version/$name-objc-$version.tar.bz2 + $name-nocheck-fixincludes.patch +) +build () +{ + patch -d $name-$version -p1 -i $SRC/$name-nocheck-fixincludes.patch; + mkdir build; + cd build; + ../$name-$version/configure \ + --prefix=$prefix \ + --mandir=$mandir \ + --libexecdir=$libdir \ + --enable-languages=c,c++,objc \ + --enable-threads=posix \ + --enable-__cxa_atexit \ + --enable-clocale=gnu \ + --enable-shared \ + $(use_enable nls) \ + --with-x=no \ + --with-system-zlib \ + --with-pkgversion="Nutritive"; + make bootstrap; + make -j1 check; + make -j1 DESTDIR=$PKG install; + mkdir $PKG/lib; + ln -sf ..$bindir/cpp $PKG/lib/cpp; + ln -sf $name $PKG$bindir/cc; + ln -sf g++ $PKG$bindir/c++; + mv $PKG$libdir/$name/*/$version/include-fixed/{limits.h,syslimits.h} $PKG$libdir/$name/*/$version/include/; + rm $PKG$libdir/{libiberty.a,libstdc++.so.6.0.14-gdb.py}; + #rm -r $PKG$libdir/$name/*/$version/{install-tools,include-fixed}; + sed -i "s|-L$SRC[^ ]* ||g" $PKG$libdir/{libstdc++.la,libsupc++.la} +} |