void-packages/templates/gcc/template
Juan RP e0030bc0fe Split pkgs required by xbps-base-chroot, as it was made in Fedora.
- Added an additional shell func to add full (build/run), build
  or run time dependencies to packages. An optional third parameter
  can be used to specify other version than the one set in
  the depends file.
- Use a "depends" file in package directory to specify minimum
  required ABI/API version for a package, so that there's no need
  to set the version all the time in pkgs.
- Updated bash to 4.0.

--HG--
extra : convert_revision : 1aa0ce32d4bdc2cd371eac19ae7bcff2c986b6b3
2009-02-24 07:13:11 +01:00

44 lines
1.4 KiB
Text

# Template build file for 'gcc'
pkgname=gcc
sourcepkg=gcc
version=4.3.2
patch_files="$pkgname-fix-amd64.diff"
distfiles="
http://ftp.gnu.org/pub/gnu/gcc/$pkgname-$version/$pkgname-$version.tar.bz2"
build_style=gnu_configure
configure_args="--enable-clocale=gnu --disable-bootstrap
--enable-threads=posix --enable-__cxa_atexit --disable-multilib
--enable-languages=c,c++,objc,obj-c++ --enable-tls
--with-local-prefix=$XBPS_DESTDIR/$pkgname-$version
--with-mpfr=$XBPS_MASTERDIR/usr --with-gmp=$XBPS_MASTERDIR/usr
--disable-rpath --with-system-zlib --enable-shared"
short_desc="The GNU C Compiler suite"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=bfbf487731ad5dca37efe480a837417de071bd67e685d5c1df6a290707575165
long_desc="
The GNU C Compiler suite, with support for C, C++, Fortran, ObjC."
base_chroot=yes
subpackages="libgcc libstdc++ libstdc++-devel libgomp libmudflap"
subpackages="${subpackages} libmudflap-devel libobjc libobjc-devel"
subpackages="${subpackages} c++ objc objc++"
Add_dependency full gmp
Add_dependency full mpfr
Add_dependency full binutils
Add_dependency run gcc-libgcc
Add_dependency run gcc-libgomp
Add_dependency run glibc-devel
# As specified in the LFS book, disable installing libiberty.
pre_configure()
{
sed -i 's/install_to_$(INSTALL_DEST) //' $wrksrc/libiberty/Makefile.in
}
post_install()
{
local destdir=$XBPS_DESTDIR/$pkgname-$version
cd $destdir/usr/bin && ln -s gcc cc
}