openbsd-ports/devel/avr/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

65 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.22 2012/03/29 13:38:13 sthen Exp $
COMMENT= Atmel AVR 8-bit RISC microcontrollers' XGCC
V=4.3.4
#GPLv3
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_CDROM= Yes
WANTLIB= c gmp mpfr
DIST_SUBDIR=gcc
EXTRACT_SUFX= .tar.bz2
PKGNAME= avr-gcc-${V}
REVISION= 0
DISTFILES= gcc-core-${V}${EXTRACT_SUFX} \
gcc-g++-${V}${EXTRACT_SUFX}
#EXTRACT_ONLY= ${DISTFILES}
MASTER_SITES= ${MASTER_SITE_GCC:=releases/gcc-$(V)/}
DIST_SUBDIR= gcc
BUILD_DEPENDS+= devel/autoconf/2.13 \
devel/bison \
devel/metaauto \
devel/avr/binutils
LIB_DEPENDS= devel/gmp>=4.2 \
devel/mpfr
LANGS=c,c++
# dear autoconf, why do you suck so hard?
CONFIGURE_ENV= INSTALL="install -c" \
INSTALL_DATA="install -c -m 444" \
INSTALL_SCRIPT="install -c -m 555"
CONFIGURE_ARGS+= \
--disable-libssp \
--enable-languages=${LANGS} \
--enable-cpp \
--with-gmp=${LOCALBASE} \
--with-mpfr=${LOCALBASE}
MAKE_FLAGS= LANGUAGES="c c++" CFLAGS="-I/usr/local/include"
MAKE_ENV= MACHINE_ARCH=avr
SEPARATE_BUILD= Yes
USE_GMAKE= Yes
USE_GROFF = Yes
YACC= bison
REGRESS_DEPENDS=devel/dejagnu
SUBST_VARS= V
WRKSRC=${WRKDIR}/gcc-${V}
post-install:
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/gcc/avr/${V}/include*
.include <bsd.port.mk>