summaryrefslogtreecommitdiffstats
path: root/devel/mingw-gcc/Makefile
blob: b42ffbdcca0dfb5593f1a341fb3a6aadeff962eb (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
# New ports collection makefile for: mingw-gcc
# Date created:		6 June 2000
# Whom:			Toshihiro Inoue <tino@pa2.so-net.ne.jp>
#
# $FreeBSD$
#

PORTNAME=	gcc
PORTVERSION=	2.95.3
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	mingw
PKGNAMEPREFIX=	mingw-
DISTNAME=	${PORTNAME}-${PORTVERSION}-20010828-src
DIST_SUBDIR=	mingw

MAINTAINER=	doc@hisio.safenet.pl

BUILD_DEPENDS=	${LOCALBASE}/i386-mingw32msvc/bin/as:${PORTSDIR}/devel/mingw-binutils \
		${LOCALBASE}/bin/mingwm10.dll:${PORTSDIR}/devel/mingw-bin-msvcrt \
		autoheader:${PORTSDIR}/devel/autoconf
RUN_DEPENDS=	${LOCALBASE}/i386-mingw32msvc/bin/as:${PORTSDIR}/devel/mingw-binutils \
		${LOCALBASE}/bin/mingwm10.dll:${PORTSDIR}/devel/mingw-bin-msvcrt

WRKSRC=		${WRKDIR}/gcc-${PORTVERSION}-20010828

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--target=i386-mingw32msvc \
		--with-gxx-include-dir=${PREFIX}/lib/gcc-lib/i386-mingw32msvc/${PORTVERSION}/include/g++

PLIST_SUB=	PORTVERSION="${PORTVERSION}"

MAN1=	cccp.1                 \
	i386-mingw32msvc-g++.1 \
	i386-mingw32msvc-g77.1 \
	i386-mingw32msvc-gcc.1

post-patch:
	${PERL} -i.orig -pe 's/install-libiberty//' ${WRKSRC}/Makefile.in

pre-install:
	${MV} ${PREFIX}/bin/i386-mingw32msvc-c++filt \
		${PREFIX}/bin/i386-mingw32msvc-c++filt.binutils

post-install:
	@for file in \
	  cpp gcov  \
	  i386-mingw32msvc-c++ \
	  i386-mingw32msvc-c++filt \
	  i386-mingw32msvc-g++ \
	  i386-mingw32msvc-g77 \
	  i386-mingw32msvc-gcc \
	  i386-mingw32msvc-protoize \
	  i386-mingw32msvc-unprotoize; \
	do \
	  strip ${PREFIX}/bin/$${file}; \
	done

.include <bsd.port.mk>
OpenPOWER on IntegriCloud