blob: 14602c34a84da7e6e0371cdac8294a8994725f45 (
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
|
# $NetBSD: Makefile,v 1.4 2001/02/16 14:05:00 wiz Exp $
#
DISTVERSION= 1.1.2
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
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/
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 .
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
#.include "../COMMON/cross.mk"
.include "files/cross.mk"
|