mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
9e5632dd66
the libtoolX ports instead of the one included with each port. Ports that set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of the included version. To restore previous behavior, use the new macro, USE_INC_LIBTOOL_VER. Both macros accept the same argument: a libtool version. For example, to use the ports version of libtool-1.5, add the following to your Makefile: USE_LIBTOOL_VER= 15 To use the included version of libtool with extra hacks provided by libtool-1.5, add the following to your Makefile: USE_INC_LIBTOOL_VER= 15 With this change, ports that had to add additional libtool hacks to prevent .la files from being installed or to fix certain threading issues can now delete those hacks (after appropriate testing, of course). PR: 63944 Based on work by:eik and marcus Approved by: ade (autotools maintainer) Tested by: kris on pointyhat Bound to be hidden problems: You bet
79 lines
2.4 KiB
Makefile
79 lines
2.4 KiB
Makefile
# New ports collection makefile for: arm-elf-gcc295
|
|
# Date created: 3 November 2000
|
|
# Whom: Espen Skoglund <esk@ira.uka.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gcc
|
|
PORTVERSION= 2.95.3
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GCC}
|
|
MASTER_SITE_SUBDIR= releases/${DISTNAME}
|
|
PKGNAMEPREFIX= arm-elf-
|
|
DISTFILES= gcc-core-${PORTVERSION}${EXTRACT_SUFX} \
|
|
gcc-g++-${PORTVERSION}${EXTRACT_SUFX} \
|
|
gcc-objc-${PORTVERSION}${EXTRACT_SUFX} \
|
|
gcc-g77-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= esk@ira.uka.de
|
|
COMMENT= GNU cross compiler suite for vanilla ARM targets
|
|
|
|
BUILD_DEPENDS= ${PKGNAMEPREFIX}as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \
|
|
${PKGNAMEPREFIX}ld:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils
|
|
RUN_DEPENDS= ${PKGNAMEPREFIX}as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \
|
|
${PKGNAMEPREFIX}ld:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
GCC_REV= ${DISTNAME:S/gcc-//g}
|
|
PLIST_SUB+= GCC_REV=${GCC_REV}
|
|
USE_PERL5= yes
|
|
USE_BZIP2= yes
|
|
USE_REINPLACE= yes
|
|
CFLAGS:= ${CFLAGS:C/-m(arch|cpu)=[a-zA-Z0-9]+//}
|
|
CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} --enable-languages="c,c++,objc"
|
|
.if defined(DEFAULT_CPU)
|
|
CONFIGURE_ARGS+= --with-cpu="${DEFAULT_CPU}"
|
|
.endif
|
|
MAKE_ENV= PATH=${PREFIX}/bin:${PATH}
|
|
USE_INC_LIBTOOL_VER= 13
|
|
LIBTOOLFILES= configure etc/configure gcc/configure libiberty/configure \
|
|
libobjc/configure texinfo/configure \
|
|
texinfo/testsuite/configure
|
|
MAN1= ${PKGNAMEPREFIX}g++.1 ${PKGNAMEPREFIX}gcc.1 cccp.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(DEFAULT_CPU)
|
|
pre-extract:
|
|
@${ECHO}
|
|
@${ECHO} "You can specify a default cpu target for gcc by setting DEFAULT_CPU to the"
|
|
@${ECHO} "appropriate target (e.g., strongarm1100)."
|
|
@${ECHO}
|
|
.endif
|
|
|
|
.if ${OSVERSION} >= 500113
|
|
post-patch:
|
|
@(cd ${PATCH_WRKSRC} && ${PATCH} < ${PATCHDIR}/libiberty-strerror.c && \
|
|
${PATCH} < ${PATCHDIR}/libiberty-strsignal.c)
|
|
.endif
|
|
|
|
post-configure:
|
|
${REINPLACE_CMD} -Ee 's,^(TARGET_CONFIGDIRS\s*=),\1#,' \
|
|
${WRKSRC}/Makefile
|
|
${PERL} -i -ne 's/^(install-info:)/\1\ndonot-\1/; print' ${WRKSRC}/gcc/Makefile
|
|
${REINPLACE_CMD} -Ee 's,\$$\(bindir\)/(\$$\(DEMANGLER_CROSS_NAME\)),./\1,' \
|
|
${WRKSRC}/gcc/Makefile
|
|
${REINPLACE_CMD} -Ee 's/^(TARGET_CONFIGDIRS =)/\1#/' \
|
|
${WRKSRC}/Makefile
|
|
|
|
post-install:
|
|
@${MV} ${PREFIX}/bin/cpp ${PREFIX}/bin/${PKGNAMEPREFIX}cpp
|
|
@${MV} ${PREFIX}/bin/gcov ${PREFIX}/bin/${PKGNAMEPREFIX}gcov
|
|
@${LN} -f ${PREFIX}/bin/${PKGNAMEPREFIX}g++ \
|
|
${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin/g++
|
|
@${RM} ${PREFIX}/lib/libiberty.a
|
|
|
|
.include <bsd.port.post.mk>
|