2000-06-26 21:19:10 +02:00
|
|
|
# New ports collection makefile for: mingw-gcc
|
|
|
|
# Date created: 6 June 2000
|
|
|
|
# Whom: Toshihiro Inoue <tino@pa2.so-net.ne.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gcc
|
2001-08-02 20:03:31 +02:00
|
|
|
PORTVERSION= 2.95.3
|
2002-10-23 00:39:27 +02:00
|
|
|
PORTREVISION= 1
|
2000-06-26 21:19:10 +02:00
|
|
|
CATEGORIES= devel
|
2001-08-02 20:03:31 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2002-01-16 20:29:37 +01:00
|
|
|
MASTER_SITE_SUBDIR= mingw
|
2000-06-26 21:19:10 +02:00
|
|
|
PKGNAMEPREFIX= mingw-
|
2002-01-16 20:29:37 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-20010828-src
|
2001-08-02 20:03:31 +02:00
|
|
|
DIST_SUBDIR= mingw
|
2000-06-26 21:19:10 +02:00
|
|
|
|
2001-08-02 20:03:31 +02:00
|
|
|
MAINTAINER= doc@hisio.safenet.pl
|
2000-06-26 21:19:10 +02:00
|
|
|
|
2001-09-11 19:43:47 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/i386-mingw32msvc/bin/as:${PORTSDIR}/devel/mingw-binutils \
|
|
|
|
${LOCALBASE}/bin/mingwm10.dll:${PORTSDIR}/devel/mingw-bin-msvcrt \
|
2000-07-11 17:03:44 +02:00
|
|
|
autoheader:${PORTSDIR}/devel/autoconf
|
2001-09-11 19:43:47 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/i386-mingw32msvc/bin/as:${PORTSDIR}/devel/mingw-binutils \
|
|
|
|
${LOCALBASE}/bin/mingwm10.dll:${PORTSDIR}/devel/mingw-bin-msvcrt
|
2000-06-26 21:19:10 +02:00
|
|
|
|
2002-01-16 20:29:37 +01:00
|
|
|
WRKSRC= ${WRKDIR}/gcc-${PORTVERSION}-20010828
|
2001-08-02 20:03:31 +02:00
|
|
|
|
2000-06-26 21:19:10 +02:00
|
|
|
USE_GMAKE= yes
|
2002-11-09 00:03:48 +01:00
|
|
|
USE_REINPLACE= yes
|
2000-06-26 21:19:10 +02:00
|
|
|
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
|
|
|
|
|
2001-08-02 20:03:31 +02:00
|
|
|
post-patch:
|
2002-11-09 00:03:48 +01:00
|
|
|
${REINPLACE_CMD} -e 's/install-libiberty//' ${WRKSRC}/Makefile.in
|
2001-08-02 20:03:31 +02:00
|
|
|
|
2002-01-16 20:29:37 +01:00
|
|
|
pre-install:
|
|
|
|
${MV} ${PREFIX}/bin/i386-mingw32msvc-c++filt \
|
|
|
|
${PREFIX}/bin/i386-mingw32msvc-c++filt.binutils
|
|
|
|
|
2000-06-26 21:19:10 +02:00
|
|
|
post-install:
|
|
|
|
@for file in \
|
2001-08-02 20:03:31 +02:00
|
|
|
cpp gcov \
|
2000-08-24 16:07:29 +02:00
|
|
|
i386-mingw32msvc-c++ \
|
|
|
|
i386-mingw32msvc-c++filt \
|
|
|
|
i386-mingw32msvc-g++ \
|
|
|
|
i386-mingw32msvc-g77 \
|
|
|
|
i386-mingw32msvc-gcc \
|
|
|
|
i386-mingw32msvc-protoize \
|
|
|
|
i386-mingw32msvc-unprotoize; \
|
2000-06-26 21:19:10 +02:00
|
|
|
do \
|
2000-08-24 16:07:29 +02:00
|
|
|
strip ${PREFIX}/bin/$${file}; \
|
2000-06-26 21:19:10 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|