openbsd-ports/devel/avr/gcc/Makefile

64 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.20 2010/11/26 14:17:17 espie 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)/}
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= concurrent
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>