1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Revamp the handling of different languages (frontends, run-times)

by GCC to allow for orthogonal setting them in the future. [1]

Print the list of languages being built as part of pre-everything
and shorten the output of operating system and version there.

Inspired by:	jkim [1]
This commit is contained in:
Gerald Pfeifer 2012-09-30 23:58:45 +00:00
parent cbe048bca5
commit 3b6cf85a1e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305088
2 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,8 @@
# Created by: Gerald Pfeifer <gerald@FreeBSD.org>
# $FreeBSD$
PORTNAME= gcc
PORTVERSION= 4.6.4.20120831
PORTVERSION= 4.6.4.20120928
CATEGORIES= lang java
MASTER_SITES= ${MASTER_SITE_GCC}
MASTER_SITE_SUBDIR= snapshots/${VERSIONSTRING}
@ -52,6 +53,7 @@ CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
.endif
LANGUAGES:= c,c++,objc,fortran
SRCDIR= ${WRKDIR}/gcc-${VERSIONSTRING}
WRKSRC= ${WRKDIR}/build
TARGLIB= ${PREFIX}/lib/gcc${SUFFIX}
@ -59,7 +61,6 @@ LIBEXEC= ${PREFIX}/libexec/gcc${SUFFIX}
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS+=--disable-nls \
--enable-languages=c,c++,objc,fortran \
--libdir=${TARGLIB} \
--libexecdir=${LIBEXEC} \
--program-suffix=${SUFFIX} \
@ -100,7 +101,7 @@ DISTFILES+= ${ECJ_JAR}:ecj
EXTRACT_ONLY= ${DISTFILES:S|${ECJ_JAR}:ecj||}
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
EXTRA_PATCHES+= ${FILESDIR}/java-patch-hier
CONFIGURE_ARGS+=--enable-languages=c,c++,objc,fortran,java
LANGUAGES:= ${LANGUAGES},java
MAN1+= aot-compile${SUFFIX}.1 \
gappletviewer${SUFFIX}.1 \
gc-analyze${SUFFIX}.1 \
@ -137,9 +138,10 @@ post-patch::
CONFIGURE_ARGS+=--disable-libgcj
PLIST_SUB+= JAVA="@comment "
.endif
CONFIGURE_ARGS+=--enable-languages=${LANGUAGES}
pre-everything::
@${ECHO_MSG} "Making GCC ${PORTVERSION} for ${OPSYS} ${OSREL} target=${CONFIGURE_TARGET}"
@${ECHO_MSG} "Making GCC ${PORTVERSION} for ${CONFIGURE_TARGET} [${LANGUAGES}]"
pre-configure:
cd ${SRCDIR} ; contrib/gcc_update --touch

View File

@ -1,4 +1,4 @@
SHA256 (gcc-4.6-20120831.tar.bz2) = a474658545688dafa1398bb22813d79751871f60e0035d4c65621ab817b9c547
SIZE (gcc-4.6-20120831.tar.bz2) = 68161384
SHA256 (gcc-4.6-20120928.tar.bz2) = 39aa963992be1102067df376e2587f06c96225ddd0039867c1cae4cbc8318eb4
SIZE (gcc-4.6-20120928.tar.bz2) = 68148392
SHA256 (ecj-4.5.jar) = 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781
SIZE (ecj-4.5.jar) = 1470676