Changeset View
Changeset View
Standalone View
Standalone View
head/devel/powerpc64-gcc/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gcc | PORTNAME= gcc | ||||
PORTVERSION= 6.4.0 | PORTVERSION= 6.4.0 | ||||
PORTREVISION= 3 | PORTREVISION= 4 | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MASTER_SITES= GCC/releases/gcc-${DISTVERSION} | MASTER_SITES= GCC/releases/gcc-${DISTVERSION} | ||||
PKGNAMEPREFIX?= powerpc64- | PKGNAMEPREFIX?= powerpc64- | ||||
MAINTAINER= kan@FreeBSD.org | MAINTAINER= kan@FreeBSD.org | ||||
COMMENT= Cross GNU Compiler Collection for ${PKGNAMEPREFIX:C/-//g} | COMMENT= Cross GNU Compiler Collection for ${PKGNAMEPREFIX:C/-//g} | ||||
LICENSE= GPLv3 GPLv3RLE | LICENSE= GPLv3 GPLv3RLE | ||||
Show All 11 Lines | PLIST_SUB= TARGETARCH=${PKGNAMEPREFIX:C/-//g} \ | ||||
GCC_TARGET=${GCC_TARGET} \ | GCC_TARGET=${GCC_TARGET} \ | ||||
GCC_VERSION=${PORTVERSION} | GCC_VERSION=${PORTVERSION} | ||||
TARGETARCH= ${PKGNAMEPREFIX:C/-//g:S/amd64/x86_64/} | TARGETARCH= ${PKGNAMEPREFIX:C/-//g:S/amd64/x86_64/} | ||||
.if empty(GCC_TARGET) | .if empty(GCC_TARGET) | ||||
# We are building for a FreeBSD target | # We are building for a FreeBSD target | ||||
GCC_TARGET= ${PKGNAMEPREFIX:S/amd64/x86_64/}unknown-${OPSYS:tl}${OSREL} | GCC_TARGET= ${PKGNAMEPREFIX:S/amd64/x86_64/}unknown-${OPSYS:tl}${OSREL} | ||||
EXTRA_PATCHES+= ${FILESDIR}/freebsd-format-extensions | EXTRA_PATCHES+= ${FILESDIR}/freebsd-format-extensions \ | ||||
${FILESDIR}/freebsd-libdir | |||||
.endif | .endif | ||||
BU_PREFIX?= ${GCC_TARGET} | BU_PREFIX?= ${GCC_TARGET} | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_OUTSOURCE= yes | CONFIGURE_OUTSOURCE= yes | ||||
CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ | CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ | ||||
--enable-gnu-indirect-function \ | --enable-gnu-indirect-function \ | ||||
--without-headers \ | --without-headers \ | ||||
--with-gmp=${LOCALBASE} \ | --with-gmp=${LOCALBASE} \ | ||||
--with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \ | --with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \ | ||||
--with-system-zlib \ | --with-system-zlib \ | ||||
--with-gxx-include-dir=/usr/include/c++/v1/ \ | --with-gxx-include-dir=/usr/include/c++/v1/ \ | ||||
--with-sysroot="/" \ | --with-sysroot="/" \ | ||||
--with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \ | --with-as=${LOCALBASE}/bin/${BU_PREFIX}-as \ | ||||
--with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld | --with-ld=${LOCALBASE}/bin/${BU_PREFIX}-ld | ||||
ALL_TARGET?= all-gcc | ALL_TARGET?= all-gcc | ||||
INSTALL_TARGET?= install-gcc | INSTALL_TARGET?= install-gcc | ||||
# Force build of a cross compiler even if the target matches the host. | |||||
CFLAGS+= -DCROSS_DIRECTORY_STRUCTURE | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${GCC_TARGET:M*${OPSYS:tl}*} != "" | .if ${GCC_TARGET:M*${OPSYS:tl}*} != "" | ||||
CONFIGURE_ARGS+= --enable-initfini-array | CONFIGURE_ARGS+= --enable-initfini-array | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |