Lines 21-27
Link Here
|
21 |
LICENSE="BSD" |
21 |
LICENSE="BSD" |
22 |
SLOT="0" |
22 |
SLOT="0" |
23 |
KEYWORDS="~amd64 ~x86" |
23 |
KEYWORDS="~amd64 ~x86" |
24 |
IUSE="crosscompile_opts_headers-only idl" |
24 |
IUSE="crosscompile_opts_headers-only idl threads" |
25 |
RESTRICT="strip" |
25 |
RESTRICT="strip" |
26 |
|
26 |
|
27 |
S="${WORKDIR}/mingw-w64-v${PV}" |
27 |
S="${WORKDIR}/mingw-w64-v${PV}" |
Lines 62-72
Link Here
|
62 |
--enable-sdk \ |
62 |
--enable-sdk \ |
63 |
$(use_enable idl) \ |
63 |
$(use_enable idl) \ |
64 |
"${extra_conf[@]}" |
64 |
"${extra_conf[@]}" |
|
|
65 |
|
66 |
if use threads && ! just_headers ; then |
67 |
pushd mingw-w64-libraries/winpthreads >&/dev/null || die |
68 |
# Use crt{begin,end}.o from the WORKDIR |
69 |
_oLDFLAGS="${LDFLAGS}" |
70 |
append-ldflags "-Wc,-B${S}/mingw-w64-crt/lib64" |
71 |
|
72 |
CHOST=${CTARGET} econf \ |
73 |
--prefix=/usr/${CTARGET} \ |
74 |
--includedir=/usr/${CTARGET}/usr/include |
75 |
|
76 |
LDFLAGS="${_oLDFLAGS}" |
77 |
popd >&/dev/null || die |
78 |
fi |
79 |
} |
80 |
|
81 |
src_compile() { |
82 |
default |
83 |
|
84 |
if use threads && ! just_headers ; then |
85 |
pushd mingw-w64-libraries/winpthreads >&/dev/null || die |
86 |
emake |
87 |
popd >&/dev/null || die |
88 |
fi |
65 |
} |
89 |
} |
66 |
|
90 |
|
67 |
src_install() { |
91 |
src_install() { |
68 |
default |
92 |
default |
69 |
|
93 |
|
|
|
94 |
if use threads && ! just_headers ; then |
95 |
pushd mingw-w64-libraries/winpthreads >&/dev/null || die |
96 |
default |
97 |
popd >&/dev/null || die |
98 |
fi |
99 |
|
70 |
if is_crosscompile ; then |
100 |
if is_crosscompile ; then |
71 |
# gcc is configured to look at specific hard-coded paths for mingw #419601 |
101 |
# gcc is configured to look at specific hard-coded paths for mingw #419601 |
72 |
dosym usr /usr/${CTARGET}/mingw |
102 |
dosym usr /usr/${CTARGET}/mingw |