51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.5 2018/11/02 18:48:39 naddy Exp $
|
|
|
|
COMMENT = bootstrap compiler for the AVR32 toolchain
|
|
V = 4.4.7
|
|
DISTNAME = avr32-gcc-${V}
|
|
PKGNAME = avr32-gcc-bootstrap-${V}
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
REVISION = 1
|
|
|
|
WANTLIB = c gmp mpfr
|
|
DIST_SUBDIR = gcc
|
|
AUTOCONF_VERSION = 2.59
|
|
CONFIGURE_ARGS = --disable-libssp \
|
|
--disable-threads \
|
|
--disable-libstdcxx-pch \
|
|
--with-gmp=${LOCALBASE} \
|
|
--with-mpfr-lib=${LOCALBASE} \
|
|
--with-mpfr-include=${LOCALBASE} \
|
|
--without-headers \
|
|
--enable-languages=c \
|
|
--exec-prefix=${PREFIX}/avr32/bootstrap \
|
|
--with-local-prefix=${PREFIX}/avr32/bootstrap \
|
|
--with-as=${LOCALBASE}/bin/avr32-as \
|
|
--with-ld=${LOCALBASE}/bin/avr32-ld
|
|
WRKDIST = ${WRKDIR}/gcc-${V}
|
|
BUILD_DEPENDS = devel/avr32/binutils
|
|
RUN_DEPENDS = devel/avr32/binutils
|
|
LIB_DEPENDS = devel/gmp \
|
|
devel/mpfr
|
|
|
|
CFLAGS += -fgnu89-inline
|
|
|
|
SEPARATE_BUILD = Yes
|
|
|
|
|
|
# This file confuses 'make update-patches'
|
|
post-extract:
|
|
rm ${WRKSRC}/gcc/config/avr32/avr32.c.orig
|
|
|
|
# Fix configure scripts missing configure.in patches
|
|
pre-configure:
|
|
cd ${WRKSRC}/gcc; ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
|
|
|
post-install:
|
|
chown -R ${SHAREOWN}:${SHAREGRP} \
|
|
${PREFIX}/avr32/bootstrap/lib/gcc/avr32/${V}/include*
|
|
|
|
.include <bsd.port.mk>
|