dd6b45c322
This removes the need for having to specify sourcepkg manually in every package that will build subpkgs. --HG-- extra : convert_revision : 383e4c467e84844d2f4f61ae5c5e07a5124e9cfb
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# Template build file for 'gcc'
|
|
pkgname=gcc
|
|
version=4.4.1
|
|
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-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=cbefa9abd4adac0931e1b556072dcd8b32a360d4b95a94d7822c86bded803d5b
|
|
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()
|
|
{
|
|
cd ${DESTDIR}/usr/bin && ln -s gcc cc
|
|
#
|
|
# rpcgen wants /lib/cpp, make a symlink.
|
|
#
|
|
mkdir -p ${DESTDIR}/lib
|
|
cd ${DESTDIR}/lib && ln -s ../usr/bin/cpp .
|
|
}
|