/[gentoo-x86]/dev-util/mingw64-runtime/mingw64-runtime-20110523.ebuild
Gentoo

Contents of /dev-util/mingw64-runtime/mingw64-runtime-20110523.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Mar 12 05:26:31 2012 UTC (7 years, 7 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump #388263 by Sven & Alon Bar-Lev.

(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/mingw64-runtime-20110523.ebuild,v 1.1 2011/07/14 03:50:33 vapier Exp $
4
5 export CBUILD=${CBUILD:-${CHOST}}
6 export CTARGET=${CTARGET:-${CHOST}}
7 if [[ ${CTARGET} == ${CHOST} ]] ; then
8 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
9 export CTARGET=${CATEGORY/cross-}
10 fi
11 fi
12
13 inherit flag-o-matic eutils
14
15 DESCRIPTION="Free Win64 runtime and import library definitions"
16 HOMEPAGE="http://mingw-w64.sourceforge.net/"
17 SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64-v1.0-snapshot-${PV}.tar.bz2"
18
19 LICENSE="BSD"
20 SLOT="0"
21 KEYWORDS="~amd64 ~x86"
22 IUSE="crosscompile_opts_headers-only"
23 RESTRICT="strip"
24
25 S=${WORKDIR}/mingw-w64-v1.0-${PV}/mingw-w64-crt
26
27 is_crosscompile() {
28 [[ ${CHOST} != ${CTARGET} ]]
29 }
30 just_headers() {
31 use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
32 }
33
34 pkg_setup() {
35 if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
36 die "Invalid configuration"
37 fi
38 }
39
40 src_unpack() {
41 unpack ${A}
42 find "${WORKDIR}" -type f -exec touch -r . {} +
43 }
44
45 src_compile() {
46 # install the local headers as the crt step wants latest
47 pushd ../mingw-w64-headers >/dev/null
48 CHOST=${CTARGET} econf --with-sdk || die
49 emake install DESTDIR="${WORKDIR}/sysroot" || die
50 popd >/dev/null
51
52 just_headers && return 0
53
54 CHOST=${CTARGET} strip-unsupported-flags
55 append-cppflags -isystem "${WORKDIR}/sysroot/usr/${CTARGET}/include"
56 CHOST=${CTARGET} econf || die
57 emake || die
58 }
59
60 src_install() {
61 insinto /usr/${CTARGET}/usr/include
62 doins -r "${WORKDIR}"/sysroot/usr/${CTARGET}/include/* || die
63 is_crosscompile \
64 && dosym usr /usr/${CTARGET}/${CTARGET} \
65 && dosym usr/include /usr/${CTARGET}/sys-include
66 just_headers && return 0
67
68 emake install DESTDIR="${D}" || die
69 env -uRESTRICT CHOST=${CTARGET} prepallstrip
70 rm -rf "${D}"/usr/doc
71 }

  ViewVC Help
Powered by ViewVC 1.1.20