Change autoconf pkgs to configure it with /usr or /.

This depends if a package uses $base_package, by default not set,
means the package will be installed into masterdir/usr, if set
will be installed into masterdir directly.

While here fixup binutils, gcc and glibc! I'm approaching to the point
on where I'll be able to chroot into masterdir and having working pkgs
installed.

--HG--
extra : convert_revision : be3c3e0d7368e7a1e1ef1c9add932aeeab82688d
This commit is contained in:
Juan RP
2008-10-22 01:54:48 +02:00
parent 680c82f965
commit 28a5a070c1
6 changed files with 70 additions and 48 deletions

View File

@@ -4,6 +4,8 @@ version=2.18
distfiles="http://ftp.gnu.org/gnu/binutils/$pkgname-$version@.tar.bz2"
build_style=gnu_configure
configure_args="--disable-werror --enable-shared --disable-multilib"
make_install_target="tooldir=$XBPS_DESTDIR/$pkgname-$version
install prefix=$XBPS_DESTDIR/$pkgname-$version"
short_desc="GNU binary utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=487a33a452f0edcf1f8bb8fc23dff5c7a82edec3f3f8b65632b6c945e961ee9b

View File

@@ -4,10 +4,11 @@ version=4.3.2
distfiles="
http://ftp.gnu.org/pub/gnu/gcc/$pkgname-$version/$pkgname-$version@.tar.bz2"
build_style=gnu_configure
configure_args="--enable-clocale=gnu --disable-libstdcxx-pch
configure_args="--enable-clocale=gnu --disable-bootstrap
--enable-threads=posix --enable-__cxa_atexit --disable-multilib
--enable-languages=c,c++,fortran,objc,obj-c++
--with-mpfr=$XBPS_MASTERDIR --with-gmp=$XBPS_MASTERDIR"
--enable-languages=c,c++,objc,obj-c++
--with-local-prefix=$XBPS_DESTDIR/$pkgname-$version
--with-mpfr=$XBPS_MASTERDIR/usr --with-gmp=$XBPS_MASTERDIR/usr"
short_desc="The GNU C Compiler suite"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=bfbf487731ad5dca37efe480a837417de071bd67e685d5c1df6a290707575165

View File

@@ -0,0 +1,5 @@
#
# Rebuild dynamic linker's cache after building glibc.
#
$XBPS_DESTDIR/$pkgname-$version/sbin/ldconfig -C $XBPS_SYSCONFDIR/ld.so.cache
$XBPS_DESTDIR/$pkgname-$version/sbin/ldconfig

View File

@@ -0,0 +1,3 @@
# Create $XBPS_SYSCONFDIR/ld.conf
#
$touch_cmd $XBPS_SYSCONFDIR/ld.so.conf

View File

@@ -4,14 +4,12 @@ version=2.8
wrksrc="libc"
distfiles="ftp://ftp.archlinux.org/other/glibc/$pkgname-2.8_20080828@.tar.bz2"
build_style=gnu_configure
unset LD_LIBRARY_PATH
disable_ldflags=yes
configure_script="$env_cmd CC=$XBPS_MASTERDIR/bin/gcc
CXX=$XBPS_MASTERDIR/bin/g++ CPP=$XBPS_MASTERDIR/bin/cpp
LD=$XBPS_MASTERDIR/bin/ld AS=$XBPS_MASTERDIR/bin/as ../configure"
configure_script="../configure"
configure_args="--with-tls -disable-profile --with-__thread
--enable-kernel=2.6.16 --enable-add-ons --without-gd --enable-bind-now
--without-cvs --without-selinux"
--without-cvs --without-selinux --prefix=/usr"
make_install_target="install_root=$XBPS_DESTDIR/$pkgname-$version install
localedata/install-locales"
short_desc="The GNU C library"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=f5756668f201e093cae0404e59dcf8c43ccc07757fd0a7455298ed89126c366a
@@ -22,4 +20,5 @@ long_desc="
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system."
base_package=yes
build_depends="gcc-4.3.2"