Files
bsdports/_beta/arm-eabi-gcc83/Makefile
2024-01-07 17:36:23 +02:00

97 lines
2.5 KiB
Makefile

#
# $Id: Makefile 1285 2007-10-25 11:42:14Z root $
#
PORTNAME= gcc
PORTVERSION= 8.3.0
DIST_SUBDIR= gnu
MASTER_SITES+= http://ftp.gnu.org/gnu/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
CATEGORIES= devel
PKGNAMEPREFIX= ${TARGET}-
MAINTAINER= onborodin@gmail.com
COMMENT= GNU C Compiler v${PORTVERSION}
LIB_DEPENDS+= libgmp.so:math/libgmp
LIB_DEPENDS+= libmpc.so:math/libmpc
LIB_DEPENDS+= libmpfr.so:math/libmpfr
BUILD_DEPENDS+= gawk:text/gawk
RUN_DEPENDS+= ${TARGET}-as:devel/${TARGET}-binutils
RUN_DEPENDS+= ${TARGET}-ld:devel/${TARGET}-binutils
BUILD_DEPENDS+= ${RUN_DEPENDS}
CONFIGURE_TARGET= ${TARGET}
USES+= tar:xz
GNU_CONFIGURE= yes
USES+= gmake
.include <bsd.port.pre.mk>
#TARGET= ${ARCH:S/amd64/x86_64/}-freebsd${OSREL:R}
TARGET= arm-eabi
LANGUAGES= "c"
CFLAGS+= -I${LOCALBASE}/include -fPIC
CXXFLAGS+= -I${LOCALBASE}/include -fPIC
LDFLAGS+= -L${LOCALBASE}/lib
TARGLIB= ${PREFIX}/lib/gcc/${PORTVERSION}
#USE_LDCONFIG= ${TARGLIB}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/build
PATCH_WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
CONFIGURE_SCRIPT= ../configure
CONFIGURE_ARGS+= --target=${TARGET}
CFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS+= --disable-nls
CONFIGURE_ARGS+= --libdir=${TARGLIB}
#CONFIGURE_ARGS+= --program-suffix=${SUFFIX}
CONFIGURE_ARGS+= --with-gmp=${LOCALBASE}
CONFIGURE_ARGS+= --with-gxx-include-dir=${TARGLIB}/include/c++
CONFIGURE_ARGS+= --with-libiconv-prefix=${LOCALBASE}
CONFIGURE_ARGS+= --with-system-zlib
CONFIGURE_ARGS+= --infodir=${PREFIX}/info/${PORTNAME}
CONFIGURE_ARGS+= --enable-languages="${LANGUAGES}"
CONFIGURE_ARGS+= --with-system-zlib
CONFIGURE_ARGS+= --with-libiconv-prefix=${LOCALBASE}
CONFIGURE_ARGS+= --program-suffix=''
CONFIGURE_ARGS+= --program-transform-name='s&^cpp&gcpp&'
#CONFIGURE_ARGS+= --disable-shared
CONFIGURE_ARGS+= --with-mpfr=${LOCALBASE}
CONFIGURE_ARGS+= --with-gmp=${LOCALBASE}
CONFIGURE_ARGS+= --disable-bootstrap
CONFIGURE_ARGS+= --enable-multilib
CONFIGURE_ARGS+= --enable-gnu-indirect-function
#CONFIGURE_ARGS+= --with-as=${LOCALBASE}/bin/${TARGET}-as
#CONFIGURE_ARGS+= --with-ld=${LOCALBASE}/bin/${TARGET}-ld
MAKE_ARGS+= infodir=${PREFIX}/info/${PORTNAME}
MAKE_ARGS+= BOOT_CFLAGS="${CFLAGS}"
MAKE_ARGS+= CFLAGS="${CFLAGS}"
MAKE_ARGS+= AWK=${LOCALBASE}/bin/gawk
MAKE_ARGS+= STAGE1_CXXFLAGS="-fbracket-depth=512 -fPIC"
PLIST_SUB+= TARGET=${CONFIGURE_TARGET}
PLIST_SUB+= VERSION=${PORTVERSION}
post-extract:
${MKDIR} ${WRKSRC}
pre-configure:
${MKDIR} ${WRKSRC}
${FIND} ${WRKSRC} -name 'config.cache' -delete
.include <bsd.port.post.mk>
#EOF