Changeset View
Changeset View
Standalone View
Standalone View
devel/powerpc64-gcc/Makefile
Show All 18 Lines | PLIST_SUB= TARGETARCH=${PKGNAMEPREFIX:C/-//g} \ | ||||
GCC_VERSION=${PORTVERSION} | GCC_VERSION=${PORTVERSION} | ||||
LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ | LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp \ | ||||
libmpfr.so:${PORTSDIR}/math/mpfr \ | libmpfr.so:${PORTSDIR}/math/mpfr \ | ||||
libmpc.so:${PORTSDIR}/math/mpc | libmpc.so:${PORTSDIR}/math/mpc | ||||
BUILD_DEPENDS= ${BU_PREFIX}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils | BUILD_DEPENDS= ${BU_PREFIX}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils | ||||
RUN_DEPENDS= ${BU_PREFIX}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils | RUN_DEPENDS= ${BU_PREFIX}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils | ||||
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} | |||||
WRKSRC= ${WRKDIR}/build-gcc | |||||
.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}portbld-${OPSYS:tl}${OSREL} | GCC_TARGET?= ${PKGNAMEPREFIX}portbld-${OPSYS:tl}${OSREL} | ||||
BU_PREFIX?= ${PKGNAMEPREFIX}${OPSYS:tl} | BU_PREFIX?= ${PKGNAMEPREFIX}${OPSYS:tl} | ||||
EXTRA_PATCHES+= ${FILESDIR}/freebsd-format-extensions | EXTRA_PATCHES+= ${FILESDIR}/freebsd-format-extensions | ||||
.else | .else | ||||
BU_PREFIX?= ${GCC_TARGET} | BU_PREFIX?= ${GCC_TARGET} | ||||
.if defined(FREEBSD_EXTENSION) | .if defined(FREEBSD_EXTENSION) | ||||
EXTRA_PATCHES+= ${FILESDIR}/freebsd-format-extensions | EXTRA_PATCHES+= ${FILESDIR}/freebsd-format-extensions | ||||
.endif | .endif | ||||
.endif | .endif | ||||
CONFIGURE_ENV= LC_ALL=C | CONFIGURE_ENV= LC_ALL=C | ||||
MAKE_ENV= LC_ALL=C | MAKE_ENV= LC_ALL=C | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= 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++ \ | ||||
--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-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 | ||||
CONFIGURE_SCRIPT= ../${PORTNAME}-${PORTVERSION}/configure | |||||
ALL_TARGET?= all-gcc | ALL_TARGET?= all-gcc | ||||
INSTALL_TARGET?= install-gcc | INSTALL_TARGET?= install-gcc | ||||
BROKEN_FreeBSD9= plist is different on 9.x that on other arches | BROKEN_FreeBSD9= plist is different on 9.x that on other arches | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${ARCH} == "amd64" | .if ${ARCH} == "amd64" | ||||
CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL} | CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL} | ||||
.else | .else | ||||
CONFIGURE_TARGET= ${ARCH}-portbld-${OPSYS:tl}${OSREL} | CONFIGURE_TARGET= ${ARCH}-portbld-${OPSYS:tl}${OSREL} | ||||
.endif | .endif | ||||
post-extract: | |||||
@${MKDIR} ${WRKSRC} | |||||
post-install: | post-install: | ||||
@if [ -f ${STAGEDIR}${PREFIX}/bin/cpp ] ; then \ | @if [ -f ${STAGEDIR}${PREFIX}/bin/cpp ] ; then \ | ||||
mv ${STAGEDIR}${PREFIX}/bin/cpp \ | mv ${STAGEDIR}${PREFIX}/bin/cpp \ | ||||
${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-cpp ; \ | ${STAGEDIR}${PREFIX}/bin/${GCC_TARGET}-cpp ; \ | ||||
fi | fi | ||||
.for f in c++ cpp g++ gcc gcc-ar gcc-nm gcc-ranlib gcov gcov-tool | .for f in c++ cpp g++ gcc gcc-ar gcc-nm gcc-ranlib gcov gcov-tool | ||||
@${RM} ${STAGEDIR}${PREFIX}/bin/$f | @${RM} ${STAGEDIR}${PREFIX}/bin/$f | ||||
@${RM} ${STAGEDIR}${PREFIX}/man/man1/$f.1 | @${RM} ${STAGEDIR}${PREFIX}/man/man1/$f.1 | ||||
@${RM} ${STAGEDIR}${PREFIX}/man/man1/$f.1.gz | @${RM} ${STAGEDIR}${PREFIX}/man/man1/$f.1.gz | ||||
.endfor | .endfor | ||||
@${RM} ${STAGEDIR}${PREFIX}/info/* | @${RM} ${STAGEDIR}${PREFIX}/info/* | ||||
@${RM} ${STAGEDIR}${PREFIX}/man/man7/* | @${RM} ${STAGEDIR}${PREFIX}/man/man7/* | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |