diff options
author | Alexis Ballier <aballier@gentoo.org> | 2012-05-17 16:25:29 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2012-05-17 16:25:29 +0000 |
commit | f763e0312757c8a652976184ddec60ffeb6b7871 (patch) | |
tree | 72a522e0df5c3a3c5884a0222ab64aae11983f0b /sys-freebsd | |
parent | mask inotify as its linux only (diff) | |
download | gentoo-2-f763e0312757c8a652976184ddec60ffeb6b7871.tar.gz gentoo-2-f763e0312757c8a652976184ddec60ffeb6b7871.tar.bz2 gentoo-2-f763e0312757c8a652976184ddec60ffeb6b7871.zip |
Factorize some code. Install all the cross-compile libraries in the same place. Build and install libutil for the cross-compiler too.
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
Diffstat (limited to 'sys-freebsd')
-rw-r--r-- | sys-freebsd/freebsd-lib/ChangeLog | 6 | ||||
-rw-r--r-- | sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild | 54 |
2 files changed, 24 insertions, 36 deletions
diff --git a/sys-freebsd/freebsd-lib/ChangeLog b/sys-freebsd/freebsd-lib/ChangeLog index 45ef915d0179..b36ca7ce5d86 100644 --- a/sys-freebsd/freebsd-lib/ChangeLog +++ b/sys-freebsd/freebsd-lib/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-freebsd/freebsd-lib # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.119 2012/05/17 14:33:46 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.120 2012/05/17 16:25:29 aballier Exp $ + + 17 May 2012; Alexis Ballier <aballier@gentoo.org> freebsd-lib-9.0-r2.ebuild: + Factorize some code. Install all the cross-compile libraries in the same + place. Build and install libutil for the cross-compiler too. 17 May 2012; Alexis Ballier <aballier@gentoo.org> freebsd-lib-9.0-r2.ebuild: stop installing libstand headers manually diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild index 046ad5220c1c..f3e9df5f833d 100644 --- a/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild +++ b/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild,v 1.5 2012/05/17 14:33:46 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild,v 1.6 2012/05/17 16:25:29 aballier Exp $ EAPI=2 @@ -249,10 +249,10 @@ src_compile() { append-ldflags "-L${WORKDIR}/lib/libc" export RAW_LDFLAGS=$(raw-ldflags) LDADD="-lssp_nonshared" $(freebsd_get_bmake) ${mymakeopts} || die "make libc failed" - cd "${WORKDIR}/gnu/lib/libssp/" || die "missing libssp." - $(freebsd_get_bmake) ${mymakeopts} || die "make libssp failed" - cd "${WORKDIR}/lib/libthr/" || die "missing libthr" - $(freebsd_get_bmake) ${mymakeopts} || die "make libthr failed" + for i in gnu/lib/libssp lib/libthr lib/libutil ; do + cd "${WORKDIR}/${i}" || die "missing ${i}." + $(freebsd_get_bmake) ${mymakeopts} || die "make ${i} failed" + done else # Forces to use the local copy of headers as they might be outdated in # the system @@ -287,43 +287,27 @@ src_install() { if [ "${CTARGET}" != "${CHOST}" ]; then local csudir - if [ -d "${S}/csu/$(tc-arch-kernel ${CTARGET})-elf" ]; then - csudir="${S}/csu/$(tc-arch-kernel ${CTARGET})-elf" + if [ -d "${WORKDIR}/lib/csu/$(tc-arch-kernel ${CTARGET})-elf" ]; then + csudir="lib/csu/$(tc-arch-kernel ${CTARGET})-elf" else - csudir="${S}/csu/$(tc-arch-kernel ${CTARGET})" + csudir="lib/csu/$(tc-arch-kernel ${CTARGET})" fi - cd "${csudir}" - $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install \ - FILESDIR="/usr/${CTARGET}/usr/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install csu failed" - cd "${S}/libc" - $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \ - SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install libc failed" - - cd "${S}/msun" - $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \ - INCLUDEDIR="/usr/${CTARGET}/usr/include" \ - SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install msun failed" - - cd "${WORKDIR}/gnu/lib/libssp/" - $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \ - INCLUDEDIR="/usr/${CTARGET}/usr/include" \ - SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install ssp failed" - - cd "${WORKDIR}/lib/libthr/" - $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \ - INCLUDEDIR="/usr/${CTARGET}/usr/include" \ - SHLIBDIR="/usr/${CTARGET}/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install libthr failed" + for i in "${csudir}" lib/libc lib/msun gnu/lib/libssp lib/libthr lib/libutil ; do + cd "${WORKDIR}/${i}/" || die "missing ${i}." + $(freebsd_get_bmake) ${mymakeopts} DESTDIR="${D}" install NO_MAN= \ + INCLUDEDIR="/usr/${CTARGET}/usr/include" \ + FILESDIR="/usr/${CTARGET}/usr/lib" \ + SHLIBDIR="/usr/${CTARGET}/usr/lib" LIBDIR="/usr/${CTARGET}/usr/lib" || die "Install ${i} failed" + done dosym "usr/include" "/usr/${CTARGET}/sys-include" else # Set SHLIBDIR and LIBDIR for multilib - cd "${WORKDIR}/gnu/lib/libssp" - SHLIBDIR="/usr/${mylibdir}" LIBDIR="/usr/${mylibdir}" mkinstall || die "Install ssp failed." - cd "${S}" - SHLIBDIR="/usr/${mylibdir}" LIBDIR="/usr/${mylibdir}" mkinstall || die "Install failed" - cd "${WORKDIR}/gnu/lib/libregex" - SHLIBDIR="/usr/${mylibdir}" LIBDIR="/usr/${mylibdir}" mkinstall || die "Install libregex failed" + for i in gnu/lib/libssp lib gnu/lib/libregex ; do + cd "${WORKDIR}/${i}/" || die "Missing ${i}." + SHLIBDIR="/usr/${mylibdir}" LIBDIR="/usr/${mylibdir}" mkinstall || die "Install ${i} failed." + done fi # Don't install the rest of the configuration files if crosscompiling |