openbsd-ports/devel/arm-elf/gcc/Makefile
sthen 88ea72915d Change SEPARATE_BUILD=(concurrent|simple) to Yes; bsd.port.mk doesn't
make a distinction between these.  ok aja@ dcoppa@
2012-03-29 13:38:12 +00:00

56 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2012/03/29 13:38:13 sthen Exp $
COMMENT= gcc for arm-elf cross-development
VERSION= 4.4.4
DISTNAME= gcc-${VERSION}
PKGNAME= ${CONFIG}-gcc-${VERSION}
SUBST_VARS+= VERSION
WANTLIB= c gmp mpfr
DIST_SUBDIR= gcc
MAKE_GXX= No
MAKE_FORTRAN= No
MAKE_OBJC= No
MAKE_JAVA= No
MAKE_ADA= No
MASTER_SITES= ${MASTER_SITE_GCC:=releases/gcc-$(VERSION)/}
BUILD_DEPENDS+= devel/autoconf/2.13 \
devel/bison \
devel/metaauto \
devel/arm-elf/binutils
LIB_DEPENDS= devel/mpfr
LANGS= c,c++
CC= /usr/bin/gcc
CFLAGS= -O2 -g
CONFIGURE_ARGS+=--enable-languages=${LANGS} \
--enable-multilib \
--enable-interwork \
--with-newlib \
--enable-cpp
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
# cope with user settings in /etc/mk.conf
MAKE_FLAGS= LANGUAGES="c c++" CFLAGS="-I/usr/local/include"
MAKE_ENV= MACHINE_ARCH=arm-elf
SEPARATE_BUILD= Yes
USE_GMAKE= Yes
YACC= bison
REGRESS_DEPENDS=devel/dejagnu
post-install:
chown -R ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/lib/gcc/${CONFIG}/${VERSION}/
.include <bsd.port.mk>