blob: 8af7b66053093a9f276f8a78c0ff26e5ef0829bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.6 2001/03/08 10:17:11 wiz Exp $
#
DISTVERSION= 1.1.4
DISTFILES= # none
MAINTAINER= peace-sacrifice@hauN.org
HOMEPAGE= http://chiharu.hauN.org/peace/
COMMENT= Cross-compile environment for PEACE/i386
WRKSRC= ${WRKDIR}/${GCC_DISTNAME}
USE_CROSS_BINUTILS= yes
BINUTILS_GNUTARGET= pe-i386
BINUTILS_LDEMULATION= i386pe
USE_CROSS_GCC= yes
GCC_FAKE_RUNTIME= yes
GCC_CXX= yes
#GCC_F77= yes
#GCC_OBJC= yes
#GCC_CXX_RUNTIME= yes
#GCC_F77_RUNTIME= yes
#GCC_OBJC_RUNTIME= yes
TARGET_ARCH= i386-netbsdpe
GCC_CONFIGURE_ARGS+= --enable-threads
BINUTILS_EXTRAS= dlltool windres
GCC_WIN32_PATCHBUNDLE= ${GCC_DISTNAME}-x86-win32-patches.tar.gz
GCC_WIN32_PATCH= ${WRKDIR}/${GCC_DISTNAME}-patches/${GCC_DISTNAME}-x86-win32.diff
MASTER_SITES+= ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/${GCC_DISTNAME}/patches/
CROSS_DISTFILES+= ${GCC_WIN32_PATCHBUNDLE}
PTHREAD_DISTNAME= unproven-pthreads-0.17
PTHREAD_DISTFILE= ${PTHREAD_DISTNAME}.tar.gz
MASTER_SITES+= ftp://ftp.flame.org/pub/netbsd/
CROSS_DISTFILES+= ${PTHREAD_DISTFILE}
pre-patch: gcc-patchbundle
gcc-patchbundle:
cd ${WRKDIR} && /usr/bin/tar zxf ${_DISTDIR}/${GCC_WIN32_PATCHBUNDLE}
${PATCH} -d ${WRKDIR} --forward --quiet -E < ${GCC_WIN32_PATCH}
post-patch:
for i in patches/binutils-*; do \
${PATCH} -d ${BINUTILS_WRKSRC} --forward --quiet -E < $$i; \
done
cd ${BINUTILS_WRKSRC}/bfd && ${LOCALBASE}/bin/autoconf
cd ${BINUTILS_WRKSRC}/gas && ${LOCALBASE}/bin/autoconf
cd ${WRKDIR}/${GCC_DISTNAME}/gcc && ${LOCALBASE}/bin/autoconf
cd ${WRKDIR} && /usr/bin/tar zxf ${_DISTDIR}/${PTHREAD_DISTFILE}
cd ${WRKDIR}/${GCC_DISTNAME}/gcc && \
${LN} -s ../../${PTHREAD_DISTNAME}/include/pthread.h . && \
${LN} -s ../../${PTHREAD_DISTNAME}/include/pthread .
CFLAGS_FOR_TARGET+= -I${WRKDIR}
post-configure:
${CP} ${FILESDIR}/i386_limits.h ${SYS_INCLUDE}/machine/limits.h
${CP} ${FILESDIR}/syslimits.h ${SYS_INCLUDE}/sys/
${CP} ${FILESDIR}/featuretest.h ${SYS_INCLUDE}/sys/
${CP} ${FILESDIR}/limits.h ${SYS_INCLUDE}/
${RM} ${WRKDIR}/${GCC_DISTNAME}/texinfo/makeinfo/Makefile
${SED} "s/extern FILE/__declspec(dllimport) FILE/" /usr/include/stdio.h > ${WRKDIR}/stdio.h
#.include "../COMMON/cross.mk"
.include "files/cross.mk"
|