/[gentoo-alt]/trunk/overlay/sys-freebsd/freebsd-headers/freebsd-headers-5.4.ebuild
Gentoo

Contents of /trunk/overlay/sys-freebsd/freebsd-headers/freebsd-headers-5.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 854 - (show annotations) (download)
Fri Oct 28 09:10:58 2005 UTC (9 years, 1 month ago) by flameeyes
File size: 943 byte(s)
Try to install in /usr/${CTARGET}/include when crossbuilding.
1 # Copyright 1999-2005 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header$
4
5 inherit bsdmk freebsd toolchain-funcs
6
7 DESCRIPTION="FreeBSD system headers"
8 SLOT="0"
9 KEYWORDS="~x86-fbsd ~amd64-fbsd"
10
11 IUSE=""
12
13 SRC_URI="mirror://gentoo/${INCLUDE}.tar.bz2
14 mirror://gentoo/${SYS}.tar.bz2
15 mirror://gentoo/${ETC}.tar.bz2"
16
17 RDEPEND=""
18 DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*"
19
20 PROVIDE="virtual/os-headers"
21
22 RESTRICT="nostrip"
23
24 S=${WORKDIR}/include
25
26 export CTARGET=${CTARGET:-${CHOST}}
27 if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then
28 export CTARGET=${CATEGORY/cross-}
29 fi
30
31 src_compile() {
32 $(freebsd_get_bmake) CC=$(tc-getCC) || die "make failed"
33 }
34
35 src_install() {
36 [[ ${CTARGET} == ${CHOST} ]] \
37 && INCLUDEDIR="/usr/include" \
38 || INCLUDEDIR="/usr/${CTARGET}/include"
39
40 $(freebsd_get_bmake) install DESTDIR="${D}" INCLUDEDIR="${INCLUDEDIR}" || die "Install failed"
41 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20