2003-04-06 14:30:41 +00:00
|
|
|
# ex:ts=8
|
2009-05-20 10:32:33 +00:00
|
|
|
# Ports collection makefile for: gcc44
|
|
|
|
# Date created: 2008-03-01
|
|
|
|
# Whom: Gerald Pfeifer <gerald@FreeBSD.org>
|
1998-01-10 21:40:10 +00:00
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1998-01-10 21:40:10 +00:00
|
|
|
#
|
1999-04-21 07:48:59 +00:00
|
|
|
|
2009-02-01 10:50:03 +00:00
|
|
|
PORTNAME= gcc
|
2012-03-18 18:58:19 +00:00
|
|
|
PORTVERSION= 4.4.7
|
|
|
|
PORTEPOCH= 1
|
2010-05-24 17:31:15 +00:00
|
|
|
CATEGORIES= lang
|
2004-11-22 13:51:50 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GCC}
|
2012-03-18 18:58:19 +00:00
|
|
|
MASTER_SITE_SUBDIR= releases/gcc-${VERSIONSTRING}
|
2005-03-02 08:46:01 +00:00
|
|
|
|
2009-02-01 10:50:03 +00:00
|
|
|
MAINTAINER= gerald@FreeBSD.org
|
|
|
|
COMMENT= GNU Compiler Collection 4.4
|
2003-06-17 21:17:12 +00:00
|
|
|
|
2010-04-19 10:43:42 +00:00
|
|
|
LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp \
|
2010-06-11 15:09:45 +00:00
|
|
|
mpfr.4:${PORTSDIR}/math/mpfr
|
2010-02-19 14:51:55 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
|
2005-03-02 08:46:01 +00:00
|
|
|
|
2011-11-12 13:21:04 +00:00
|
|
|
DEPRECATED= Superseded by GCC 4.6, only kept for the sake of cad/salome
|
2011-06-03 16:04:40 +00:00
|
|
|
|
2012-03-18 18:58:19 +00:00
|
|
|
VERSIONSTRING= ${PORTVERSION}
|
2009-05-20 10:32:33 +00:00
|
|
|
SUFFIX= ${PORTVERSION:C/([0-9]+).([0-9]+).*/\1\2/}
|
2009-02-01 10:50:03 +00:00
|
|
|
LATEST_LINK= gcc${SUFFIX}${PKGNAMESUFFIX}
|
2010-08-20 14:28:44 +00:00
|
|
|
ONLY_FOR_ARCHS= amd64 i386 sparc64
|
2010-09-28 12:32:16 +00:00
|
|
|
USE_BINUTILS= yes
|
2007-10-17 10:13:01 +00:00
|
|
|
USE_BISON= build
|
2003-05-08 11:32:06 +00:00
|
|
|
USE_BZIP2= yes
|
2004-01-28 22:15:03 +00:00
|
|
|
USE_GMAKE= yes
|
2005-11-14 00:28:31 +00:00
|
|
|
USE_ICONV= yes
|
2003-07-11 17:10:13 +00:00
|
|
|
USE_PERL5_BUILD=yes
|
2009-11-19 11:44:57 +00:00
|
|
|
MAKE_JOBS_SAFE= yes
|
1998-12-05 04:00:40 +00:00
|
|
|
|
2002-03-04 21:08:06 +00:00
|
|
|
PATCH_WRKSRC= ${SRCDIR}
|
2009-05-20 10:32:33 +00:00
|
|
|
CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure
|
1998-11-13 07:34:57 +00:00
|
|
|
|
2000-09-05 16:59:15 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-02-19 22:12:30 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
2004-03-17 08:18:15 +00:00
|
|
|
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
|
2004-03-22 17:13:33 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
|
2004-02-19 22:12:30 +00:00
|
|
|
.endif
|
|
|
|
|
2003-05-15 12:56:34 +00:00
|
|
|
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
|
2000-12-21 23:50:36 +00:00
|
|
|
WRKSRC= ${WRKDIR}/build
|
2009-05-20 10:32:33 +00:00
|
|
|
TARGLIB= ${PREFIX}/lib/gcc${SUFFIX}
|
|
|
|
LIBEXEC= ${PREFIX}/libexec/gcc${SUFFIX}
|
1998-01-10 21:40:10 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2009-06-17 06:48:18 +00:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2011-01-02 19:56:14 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2009-11-19 11:44:57 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-nls \
|
2011-06-03 16:04:40 +00:00
|
|
|
--enable-languages=c,c++,fortran \
|
2005-06-26 11:44:16 +00:00
|
|
|
--libdir=${TARGLIB} \
|
2009-05-20 10:32:33 +00:00
|
|
|
--libexecdir=${LIBEXEC} \
|
2010-02-19 14:51:55 +00:00
|
|
|
--program-suffix=${SUFFIX} \
|
|
|
|
--with-as=${LOCALBASE}/bin/as \
|
|
|
|
--with-gmp=${LOCALBASE} \
|
|
|
|
--with-gxx-include-dir=${TARGLIB}/include/c++/ \
|
|
|
|
--with-ld=${LOCALBASE}/bin/ld \
|
|
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
2011-04-21 21:05:33 +00:00
|
|
|
--with-pkgversion="FreeBSD Ports Collection" \
|
2010-02-19 14:51:55 +00:00
|
|
|
--with-system-zlib
|
2002-10-10 23:19:05 +00:00
|
|
|
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
|
2006-07-03 21:18:10 +00:00
|
|
|
ALL_TARGET= bootstrap-lean
|
2006-06-18 06:39:28 +00:00
|
|
|
USE_LDCONFIG= ${TARGLIB}
|
2012-03-18 18:58:19 +00:00
|
|
|
PLIST_SUB= GCC_VER=${PORTVERSION} \
|
2009-05-27 09:14:32 +00:00
|
|
|
GNU_HOST=${CONFIGURE_TARGET} \
|
2005-12-11 22:49:57 +00:00
|
|
|
SUFFIX=${SUFFIX}
|
2004-01-28 22:15:03 +00:00
|
|
|
MAN1= cpp${SUFFIX}.1 \
|
|
|
|
g++${SUFFIX}.1 \
|
|
|
|
gcc${SUFFIX}.1 \
|
2007-01-02 21:42:49 +00:00
|
|
|
gcov${SUFFIX}.1 \
|
|
|
|
gfortran${SUFFIX}.1
|
2005-12-21 21:14:08 +00:00
|
|
|
INFO= gcc${SUFFIX}/cpp \
|
|
|
|
gcc${SUFFIX}/cppinternals \
|
|
|
|
gcc${SUFFIX}/gcc \
|
|
|
|
gcc${SUFFIX}/gccinstall \
|
2007-01-02 21:42:49 +00:00
|
|
|
gcc${SUFFIX}/gccint \
|
2009-01-05 20:36:33 +00:00
|
|
|
gcc${SUFFIX}/gfortran \
|
|
|
|
gcc${SUFFIX}/libgomp
|
2005-08-01 19:02:03 +00:00
|
|
|
|
2003-12-15 07:45:53 +00:00
|
|
|
pre-everything::
|
2009-05-27 09:14:32 +00:00
|
|
|
@${ECHO_MSG} "Making GCC ${PORTVERSION} for ${OPSYS} ${OSREL} target=${CONFIGURE_TARGET}"
|
2003-12-15 07:45:53 +00:00
|
|
|
|
1998-08-11 08:22:46 +00:00
|
|
|
pre-configure:
|
2000-10-10 23:32:34 +00:00
|
|
|
cd ${SRCDIR} ; contrib/gcc_update --touch
|
2003-04-25 17:06:46 +00:00
|
|
|
@${RM} -f ${SRCDIR}/gcc/*/*.info*
|
|
|
|
@${MKDIR} ${CONFIGURE_WRKSRC}
|
2000-09-05 16:59:15 +00:00
|
|
|
|
2005-05-22 23:42:53 +00:00
|
|
|
post-install:
|
2005-05-16 21:52:09 +00:00
|
|
|
${RM} -f ${PREFIX}/man/man7/fsf-funding.7 \
|
|
|
|
${PREFIX}/man/man7/gfdl.7 ${PREFIX}/man/man7/gpl.7
|
2006-09-17 18:27:16 +00:00
|
|
|
${RM} -f ${TARGLIB}/*.la
|
2005-05-16 21:52:09 +00:00
|
|
|
# Add target libraries and include files to packaging list.
|
2004-01-10 12:20:00 +00:00
|
|
|
${RM} -f ${WRKDIR}/PLIST.lib
|
2010-05-24 17:31:15 +00:00
|
|
|
.for d in ${TARGLIB:S/^${PREFIX}\///} ${LIBEXEC:S/^${PREFIX}\///}
|
2004-01-22 11:58:14 +00:00
|
|
|
cd ${PREFIX} ; if [ -d $d ]; then \
|
|
|
|
${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
|
|
|
|
${FIND} $d -type d | ${SORT} -r \
|
|
|
|
| ${SED} -e 's/^/@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
|
|
|
|
fi
|
2003-12-04 16:20:50 +00:00
|
|
|
.endfor
|
2005-07-16 12:26:33 +00:00
|
|
|
cd ${WRKDIR} ; ${SED} -i -e "/PLIST.lib/ r PLIST.lib" ${TMPPLIST}
|
1998-01-10 21:40:10 +00:00
|
|
|
|
1998-11-13 07:34:57 +00:00
|
|
|
.include <bsd.port.post.mk>
|