diff --git a/devel/mingw32-gcc/Makefile b/devel/mingw32-gcc/Makefile index 124672e9b8e1..4ecdc62c922a 100644 --- a/devel/mingw32-gcc/Makefile +++ b/devel/mingw32-gcc/Makefile @@ -1,108 +1,109 @@ PORTNAME= gcc PORTVERSION= ${GCCVERSION} PORTREVISION= 6 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= GCC PKGNAMEPREFIX= mingw32- MAINTAINER= ports@FreeBSD.org COMMENT= FSF gcc-4 for Windows cross-development -WWW= https://www.mingw.org/ +WWW= https://mingw.osdn.io/ LICENSE= GPLv3 GPLv3RLE LICENSE_COMB= multi +DEPRECATED= Upstream release was in 2015 and mingw32 project is defunct +EXPIRATION_DATE= 2023-11-21 +BROKEN_powerpc64= fails to configure: error: cannot compute suffix of object files: cannot compile +ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 sparc64 + BUILD_DEPENDS= ${PKGNAMEPREFIX}as:devel/binutils@${PKGNAMEPREFIX:C/-$//} \ mingwm10.dll:devel/${PKGNAMEPREFIX}bin-msvcrt \ objdump:devel/binutils -RUN_DEPENDS= ${PKGNAMEPREFIX}as:devel/binutils@${PKGNAMEPREFIX:C/-$//} LIB_DEPENDS= libgmp.so:math/gmp \ libmpfr.so:math/mpfr \ libmpc.so:math/mpc +RUN_DEPENDS= ${PKGNAMEPREFIX}as:devel/binutils@${PKGNAMEPREFIX:C/-$//} -BROKEN_powerpc64= fails to configure: error: cannot compute suffix of object files: cannot compile - -GCCVERSION= 4.8.1 - -SSP_UNSAFE= yes - -ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 sparc64 -USE_LDCONFIG= yes USES= bison cpe iconv gmake libtool makeinfo perl5 tar:bzip2 CPE_VENDOR= gnu +USE_LDCONFIG= yes USE_PERL5= build -GCC_TARG= ${PKGNAMEPREFIX:S/-$//} +CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure + +SSP_UNSAFE= yes PATCH_WRKSRC= ${SRCDIR} -CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure BINARIES= c++ cpp g++ gcc gcov gfortran +GCC_TARG= ${PKGNAMEPREFIX:S/-$//} +GCCVERSION= 4.8.1 .include .if ${ARCH} == "amd64" CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL} .else CONFIGURE_TARGET= ${ARCH}-portbld-${OPSYS:tl}${OSREL} .endif .if ${ARCH} == powerpc64 CONFIGURE_ENV+= UNAME_m="powerpc64" .endif LANGUAGES:= c,c++,fortran,objc,obj-c++ SRCDIR= ${WRKDIR}/${PORTNAME}-${GCCVERSION} WRKSRC= ${WRKDIR}/build GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-nls --target=${GCC_TARG} \ --with-gxx-include-dir=${PREFIX}/${GCC_TARG}/include/c++/${GCCVERSION} \ --disable-build-poststage1-with-cxx \ --includedir=${PREFIX}/${GCC_TARG}/include \ --datadir=${PREFIX}/${GCC_TARG}/share \ --enable-shared --with-gnu-ld \ --enable-lto --disable-multilib \ --enable-languages=${LANGUAGES} \ --disable-sjlj-exceptions \ --with-dwarf2 --disable-win32-registry \ --enable-libstdcxx-debug \ --enable-version-specific-runtime-libs \ --with-gmp=${LOCALBASE} \ --with-system-zlib --with-gnu-as \ --enable-decimal-float=yes \ --disable-libgomp --disable-threads \ ${ICONV_CONFIGURE_ARG} \ --disable-bootstrap MAKE_ARGS+= MAKEINFOFLAGS="--no-split" PLIST_SUB+= GCC_TARG=${GCC_TARG} GCC_REV=${GCCVERSION} INFO_PATH= ${GCC_TARG}/share/info INFO= cpp cppinternals gcc gccinstall gccint gfortran .if ${ARCH} == "i386" || ${ARCH} == "amd64" INFO+= libquadmath .endif INSTALL_TARGET= install-strip .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) -CPPFLAGS+= -Wno-error=increment-bool \ +CPPFLAGS+= -Wno-error=increment-bool \ -Dregister= .endif post-patch: ${REINPLACE_CMD} -e "s,# include ,," \ ${SRCDIR}/libiberty/physmem.c pre-configure: cd ${SRCDIR} ; contrib/gcc_update --touch @${RM} ${SRCDIR}/gcc/*/*.info* @${MKDIR} ${CONFIGURE_WRKSRC} post-install: @${RM} ${STAGEDIR}${PREFIX}/lib/libiberty.a @${MKDIR} ${STAGEDIR}${PREFIX}/${GCC_TARG}/bin .for F in ${BINARIES} @${LN} -f ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}$F \ ${STAGEDIR}${PREFIX}/${GCC_TARG}/bin/$F .endfor .include