head 1.5; access; symbols pkgsrc-2014Q3:1.3.0.4 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.2 pkgsrc-2014Q2-base:1.3; locks; strict; comment @# @; 1.5 date 2014.10.31.14.22.20; author ryoon; state dead; branches; next 1.4; commitid qp0iTlvs8OE1smWx; 1.4 date 2014.10.05.16.41.07; author wiz; state Exp; branches; next 1.3; commitid 9ScZXPxPs0il32Tx; 1.3 date 2014.05.31.13.06.25; author ryoon; state Exp; branches; next 1.2; commitid hE3nXFhwB5nKWGCx; 1.2 date 2014.05.20.19.12.36; author adam; state Exp; branches; next 1.1; commitid ImjFR7qnfdjvkjBx; 1.1 date 2014.04.22.20.46.41; author ryoon; state Exp; branches; next ; commitid 9Rx6spR6jvOFJIxx; desc @@ 1.5 log @Restore monolithic gcc48 and gcc48-libs. * No objection on tech-pkg@@ mailing list. @ text @# $NetBSD: Makefile.common,v 1.4 2014/10/05 16:41:07 wiz Exp $ # # used by lang/gcc48-objc/Makefile # used by lang/gcc48-libs/Makefile # used by lang/gcc48-fortran/Makefile # used by lang/gcc48-cc++/Makefile GCC_PKGNAME= gcc48 .include "../../lang/gcc48/version.mk" DISTNAME= gcc-${GCC48_DIST_VERSION} ## When bumping the PKGREVISION of this package the PKGREVISION of ## lang/gcc48-* needs to be bump to be at least 1 more than the ## PKGREVISION of this package! CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC48_DIST_VERSION}/} EXTRACT_SUFX= .tar.bz2 MAINTAINER= sbd@@NetBSD.org HOMEPAGE= http://gcc.gnu.org/ LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3 DISTFILES+= ${DEFAULT_DISTFILES} EXTRACT_ONLY+= ${DEFAULT_DISTFILES} DISTINFO_FILE= ${.CURDIR}/../../lang/gcc48/distinfo PATCHDIR= ${.CURDIR}/../../lang/gcc48/patches FILESDIR= ${.CURDIR}/../../lang/gcc48/files NOT_FOR_PLATFORM= Interix-*-* USE_LANGUAGES= c c++ USE_TOOLS+= bison gmake makeinfo perl:build sed:run USE_LIBTOOL= yes GNU_CONFIGURE= yes ## Build outside ${WRKSRC} OBJDIR= ../build CONFIGURE_DIRS= ${OBJDIR} CONFIGURE_SCRIPT= ../${DISTNAME}/configure GCC_SUBPREFIX= ${GCC_PKGNAME} GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX} GNU_CONFIGURE_PREFIX= ${GCC_PREFIX} INFO_FILES= yes PLIST_VARS+= java darwin unix libgcc_s nonetbsd JAVA_MACHINE_ARCH= ${MACHINE_ARCH:S/x86_64/amd64/} PLIST_SUBST+= JAVA_MACHINE_ARCH=${JAVA_MACHINE_ARCH} PLIST_SUBST+= PKGVERSION_NOREV=${PKGVERSION_NOREV} # Errors in libgo/runtime/runtime.h #BUILDLINK_TRANSFORM+= rm:-Werror # segfault of gcj (Java) related programs #BUILDLINK_TRANSFORM+= rename:-O2:-O1 UNLIMIT_RESOURCES+= datasize UNLIMIT_RESOURCES+= stacksize SUBST_CLASSES+= vars SUBST_MESSAGE.vars= Setting target machine name path in ${SUBST_FILES.vars} SUBST_STAGE.vars= pre-configure SUBST_FILES.vars= gcc/Makefile.in SUBST_VARS.vars= GCC_TARGET_MACHINE .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "Darwin" PLIST.darwin= yes .elif ${OPSYS} != "NetBSD" PLIST.nonetbsd= yes PLIST.unix= yes .else # NetBSD PLIST.libgcc_s= yes PLIST.unix= yes .endif # In some cases LINKER_RPATH_FLAG needs a trailing space. LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /} ## The Library rpath to use in end programs. LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} # The "-static-libstdc++ -static-libgcc" flags are normally added to the # boot-ldflags by configure but because we are supply the boot-ldflags # we mash supply them. .if ${OPSYS} == "OpenBSD" BOOT_LDFLAGS= -static ${LDFLAGS_FOR_TARGET} .else BOOT_LDFLAGS= -static-libstdc++ -static-libgcc ${LDFLAGS_FOR_TARGET} .endif # Needed on Darwin when LDFLAGS point to a SDK BOOT_LDFLAGS+= ${LDFLAGS:M-Wl,-syslibroot*} # GCC does not understand this option; remove it, or stage build will fail BUILDLINK_TRANSFORM+= rm:-stdlib=libc++ ## For target librarys and libjava programs. CONFIGURE_ENV+= LDFLAGS_FOR_TARGET=${LDFLAGS_FOR_TARGET:Q} CONFIGURE_ARGS+= --enable-languages=${LANGS:S/ /,/g:Q} CONFIGURE_ARGS+= --enable-shared CONFIGURE_ARGS+= --enable-long-long CONFIGURE_ARGS+= --with-local-prefix=${GCC_PREFIX:Q} CONFIGURE_ARGS+= --enable-libssp CONFIGURE_ARGS+= --enable-threads=posix CONFIGURE_ARGS+= --with-boot-ldflags=${BOOT_LDFLAGS:Q} .if ${OPSYS} == "NetBSD" #CONFIGURE_ARGS+= --disable-lto CONFIGURE_ARGS+= --with-gnu-ld --with-ld=/usr/bin/ld CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/bin/as MAKE_ENV+= ac_cv_func_clock_gettime=yes # for libjava's configure script MAKE_ENV+= ac_cv_func_gethostbyname_r=no .endif .if ${OPSYS} == "DragonFly" CONFIGURE_ARGS+= --disable-bootstrap .endif .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386) CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486 .endif # ${WRKSRC}/fixincludes/ looks for sed and compiles the path to sed into # a binary so we need to make sure we give it the installed sed and not # the tool wrapped one. MAKE_ENV+= ac_cv_path_SED=${TOOLS_SED} MAKE_ENV+= lt_cv_path_SED=${TOOLS_SED} # Determine whether to use binutils .if ${OPSYS} == "SunOS" . if exists(/usr/sfw/bin/gobjdump) CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump . endif . if exists(/usr/bin/ld) CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/bin/ld . else CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld . endif . if exists(/usr/sfw/bin/gas) CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/sfw/bin/gas . elif exists(/usr/ccs/bin/as) CONFIGURE_ARGS+= --without-gnu-as --with-as=/usr/ccs/bin/as . else BUILDLINK_DEPMETHOD.binutils= full . include "../../devel/binutils/buildlink3.mk" CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas . endif .elif ${OPSYS} == "OpenBSD" BUILDLINK_DEPMETHOD.binutils= full . include "../../devel/binutils/buildlink3.mk" CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas .endif # Create in-tree isl and cloog .if !empty(PKG_OPTIONS:Mgcc-graphite) post-extract: post-extract-graphite .endif pre-configure: .if ${OPSYS} == "OpenBSD" cd ${WRKSRC}/gcc && \ patch -p1 < ${FILESDIR}/patch-gcc_targhooks.c-openbsd.diff .endif ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR} TEST_TARGET= -k check || ${TRUE} pre-test: ${RUN} \ if runtest --version >/dev/null 2>/dev/null ; then \ : ; \ else \ ${ECHO} "ERROR: Please install devel/dejagnu in order to run the test suite." ; \ exit 1 ; \ fi post-test: ${RUN} cd ${WRKSRC} && cd ${OBJDIR} && \ ${SHELL} ${WRKSRC}/contrib/test_summary >${WRKDIR}/test_summary.log @@${INFO_MSG} "Test summary are available in ${WRKDIR}/test_summary.log" .include "../../mk/dlopen.buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" @ 1.4 log @Fix ``Please add a line "# used by foo/bar/Makefile" here.'' warnings. @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.3 2014/05/31 13:06:25 ryoon Exp $ @ 1.3 log @Update to 4.8.3 * Convert gcc48 to simple meta-pkg * Potentially fix non-NetBSD packaging * Fix gcc48-libs/gcc48-cc++ build under OpenBSD/amd64 5.5 * Enable graphite option, from wip/gcc48snapshot via Xiyue Deng * Tweak nls option Changelog: GCC 4.8.3 This is the [35]list of problem reports (PRs) from GCC's bug tracking system that are known to be fixed in the 4.8.3 release. This list might not be complete (that is, it is possible that some PRs that have been fixed are not listed here). Support for the new powerpc64le-linux platform has been added. It defaults to generating code that conforms to the ELFV2 @ text @d1 6 a6 1 # $NetBSD: Makefile.common,v 1.2 2014/05/20 19:12:36 adam Exp $ @ 1.2 log @Fixes for Darwin @ text @d1 1 a1 1 # $NetBSD: Makefile.common,v 1.1 2014/04/22 20:46:41 ryoon Exp $ d18 2 a19 2 DISTFILES= ${DEFAULT_DISTFILES} EXTRACT_ONLY= ${DEFAULT_DISTFILES} d23 1 d28 1 a28 1 USE_TOOLS+= gmake makeinfo sed:run d40 1 a40 1 PLIST_VARS+= java darwin unix d43 1 d63 5 a67 1 .else d80 3 d84 1 d141 9 d153 4 @ 1.1 log @Split gcc48 to libraries and langusages packages * All gcc48-* depend on gcc48-libs * Add gcc48-cc++, gcc48-fortran, and gcc48-objc * gcc48 is meta package now @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2014/01/14 19:32:52 wiz Exp $ d39 1 a39 1 PLIST_VARS+= java d59 6 @