~cypheon/pkgsrc-wip

pkgsrc-wip/mingw-w64-gcc/Makefile.common -rw-r--r-- 1.5 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
# $NetBSD: common.mk,v 1.2 2012/10/03 15:09:55 asau Exp $
#
# used by wip/mingw-w64-gcc/Makefile
# used by wip/mingw-w64-libgcc/Makefile

DISTNAME=	gcc-4.5.1
CATEGORIES=	cross
MASTER_SITES=	${MASTER_SITE_GNU:=gcc/${DISTNAME}/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://gcc.gnu.org/
LICENSE=	gnu-gpl-v3

DEPENDS+=		mingw-w64-binutils-[0-9]*:../../wip/mingw-w64-binutils
DEPENDS+=		mingw-w64-headers-[0-9]*:../../wip/mingw-w64-headers

DISTINFO_FILE=		${.CURDIR}/../mingw-w64-gcc/distinfo
PATCHDIR=		${.CURDIR}/../mingw-w64-gcc/patches

GNU_CONFIGURE=		yes
USE_LIBTOOL=		yes
USE_TOOLS+=		pkg-config
USE_LANGUAGES=		c c++
GNU_CONFIGURE_PREFIX=	${PREFIX}/cross
USE_TOOLS+=		gmake flex bison makeinfo perl
INFO_FILES=		yes

# XXX fixme: shared build is borked with sjlj
CONFIGURE_ARGS+=	--enable-sjlj-exceptions		\
			--disable-shared			\
			--enable-version-specific-runtime-libs	\
			--enable-fully-dynamic-string		\
			--disable-libssp			\
			--with-system-zlib			\
			--enable-languages=c,c++		\
			--target=x86_64-w64-mingw32		\
			--enable-targets=all

CONFIGURE_DIRS=		../build
BUILD_DIRS=		../build
INSTALL_DIRS=		../build

CONFIGURE_ENV+=		CFLAGS_FOR_TARGET="-g -O2"
CONFIGURE_ENV+=		CXXFLAGS_FOR_TARGET="-g -O2"

CONFIGURE_SCRIPT=	${WRKSRC}/configure

post-extract:
	mkdir ${WRKDIR}/build

.include "../../devel/gmp/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../math/mpcomplex/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"