53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.17 2012/04/04 15:41:25 jasper Exp $
|
|
|
|
COMMENT= GNU Compiler Collection for msp430
|
|
|
|
VERSION= 4.5.3
|
|
R= 20110706
|
|
DISTNAME= gcc-${VERSION}
|
|
REVISION= 6
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GCC:=releases/gcc-$(VERSION)/}
|
|
PATCHFILES= msp430-gcc-${VERSION}-${R}.patch:0
|
|
LTS_PATCHES= msp430-gcc-4.5.3-20110706-sf3370978.patch \
|
|
msp430-gcc-4.5.3-20110706-sf3390964.patch \
|
|
msp430-gcc-4.5.3-20110706-sf3394176.patch \
|
|
msp430-gcc-4.5.3-20110706-sf3396639.patch \
|
|
msp430-gcc-4.5.3-20110706-sf3409864.patch \
|
|
msp430-gcc-4.5.3-20110706-sf3417263.patch \
|
|
msp430-gcc-4.5.3-20110706-sf3431602.patch \
|
|
msp430-gcc-4.5.3-20110706-sf3433730.patch \
|
|
msp430-gcc-4.5.3-20110706-sf3500740.patch \
|
|
msp430-gcc-4.5.3-20110706-sf3420924.patch
|
|
|
|
DISTFILES= gcc-core-${VERSION}${EXTRACT_SUFX} \
|
|
gcc-g++-${VERSION}${EXTRACT_SUFX}
|
|
|
|
WANTLIB += c gmp mpc mpfr
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= devel/msp430/binutils>=2.21.1
|
|
LIB_DEPENDS= devel/libmpc
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
LANGS= c,c++
|
|
|
|
SEPARATE_BUILD= Yes
|
|
|
|
SUBST_VARS+= VERSION
|
|
|
|
CONFIGURE_ARGS+= --enable-languages=${LANGS} \
|
|
--enable-cpp \
|
|
--with-gmp=${LOCALBASE} \
|
|
--with-mpfr=${LOCALBASE} \
|
|
--with-mpc=${LOCALBASE}
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
post-install:
|
|
chown -R ${SHAREOWN}:${SHAREGRP} \
|
|
${PREFIX}/lib/gcc/${TARGET}/${VERSION}/
|
|
|
|
.include <bsd.port.mk>
|