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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 24 13:22:34 2009 UTC (9 years, 9 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2009 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-20090419.ebuild,v 1.1 2009/12/09 22:42:36 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 eutils flag-o-matic
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-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}/trunk/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_compile() {
41 just_headers && return 0
42
43 CHOST=${CTARGET} strip-unsupported-flags
44 econf --host=${CTARGET} || die
45 emake || die
46 }
47
48 src_install() {
49 insinto /usr/${CTARGET}/usr/include
50 doins -r ../mingw-w64-headers/{,*/}include/* || die
51 is_crosscompile \
52 && dosym usr /usr/${CTARGET}/mingw \
53 && dosym usr/include /usr/${CTARGET}/sys-include
54 just_headers && return 0
55
56 local insdir
57 emake install DESTDIR="${D}" || die
58 env -uRESTRICT CHOST=${CTARGET} prepallstrip
59 rm -rf "${D}"/usr/doc
60 dodoc ChangeLog
61 }

  ViewVC Help
Powered by ViewVC 1.1.20