2000-06-26 15:19:10 -04: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 14:03:31 -04:00
|
|
|
PORTVERSION= 2.95.3
|
2000-06-26 15:19:10 -04:00
|
|
|
CATEGORIES= devel
|
2001-08-02 14:03:31 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= mingw
|
2000-06-26 15:19:10 -04:00
|
|
|
PKGNAMEPREFIX= mingw-
|
2001-08-02 14:03:31 -04:00
|
|
|
DISTNAME= gcc-${PORTVERSION}-20010723-src
|
|
|
|
DIST_SUBDIR= mingw
|
2000-06-26 15:19:10 -04:00
|
|
|
|
2001-08-02 14:03:31 -04:00
|
|
|
MAINTAINER= doc@hisio.safenet.pl
|
2000-06-26 15:19:10 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS= i386-mingw32msvc-as:${PORTSDIR}/devel/mingw-binutils \
|
2000-07-11 11:03:44 -04:00
|
|
|
mingwm10.dll:${PORTSDIR}/devel/mingw-bin-msvcrt \
|
|
|
|
autoheader:${PORTSDIR}/devel/autoconf
|
|
|
|
RUN_DEPENDS= i386-mingw32msvc-as:${PORTSDIR}/devel/mingw-binutils \
|
2000-06-26 15:19:10 -04:00
|
|
|
mingwm10.dll:${PORTSDIR}/devel/mingw-bin-msvcrt
|
|
|
|
|
2001-08-02 14:03:31 -04:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2000-06-26 15:19:10 -04:00
|
|
|
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
|
|
|
|
|
2001-08-02 14:03:31 -04:00
|
|
|
post-patch:
|
|
|
|
${PERL} -i.orig -pe 's/install-libiberty//' ${WRKSRC}/Makefile.in
|
|
|
|
|
2000-06-26 15:19:10 -04:00
|
|
|
post-install:
|
|
|
|
@for file in \
|
2001-08-02 14:03:31 -04:00
|
|
|
cpp gcov \
|
2000-08-24 10:07:29 -04: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 15:19:10 -04:00
|
|
|
do \
|
2000-08-24 10:07:29 -04:00
|
|
|
strip ${PREFIX}/bin/$${file}; \
|
2000-06-26 15:19:10 -04:00
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|