aboutsummaryrefslogtreecommitdiff
path: root/devel/msp430-binutils/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/msp430-binutils/Makefile')
-rw-r--r--devel/msp430-binutils/Makefile37
1 files changed, 15 insertions, 22 deletions
diff --git a/devel/msp430-binutils/Makefile b/devel/msp430-binutils/Makefile
index 26436894378a..4b6c5d2f3834 100644
--- a/devel/msp430-binutils/Makefile
+++ b/devel/msp430-binutils/Makefile
@@ -7,34 +7,40 @@
PORTNAME= binutils
PORTVERSION= ${BINUTILVERSION}.${MSPGCCVERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
-DISTNAME= ${PORTNAME}-${BINUTILVERSION}
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
- mspgcc-${MSPGCCVERSION}${EXTRACT_SUFX}:mspgcc
MASTER_SITES= ${MASTER_SITE_SOURCEWARE} \
SF/mspgcc/mspgcc:mspgcc
MASTER_SITE_SUBDIR= binutils/releases
-
PKGNAMEPREFIX= msp430-
+DISTNAME= ${PORTNAME}-${BINUTILVERSION}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ mspgcc-${MSPGCCVERSION}${EXTRACT_SUFX}:mspgcc
+
+PATCH_SITES= ${MASTER_SITE_SOURCEFORGE}
+PATCH_SITE_SUBDIR= mspgcc/Patches/LTS/${MSPGCCVERSION}
+PATCHFILES= ${LTS_PATCHES}
+PATCH_DIST_STRIP= -p1
MAINTAINER= lev@FreeBSD.org
COMMENT= GNU binutils for TI's msp430 MCUs cross-development
+
LICENSE= GPLv3
BINUTILVERSION= 2.21.1
MSPGCCVERSION= 20110716
PATCHVERSION= 20110716
-
-MAKE_JOBS_SAFE= yes
+BUGS_FIXED= 3379341
+LTS_PATCHES!= for bugid in ${BUGS_FIXED} ; do echo ${PKGNAMEPREFIX}${PORTNAME}-${BINUTILVERSION}-${PATCHVERSION}-sf$${bugid}.patch ; done
USE_BZIP2= yes
USE_GMAKE= yes
+MAKE_JOBS_SAFE= yes
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} \
--with-gcc --with-gnu-ld --with-gnu-as \
--disable-nls --disable-werror
-MAKE_ARGS+= ARCH=""
MAN1= ${PKGNAMEPREFIX}addr2line.1 ${PKGNAMEPREFIX}ar.1 \
${PKGNAMEPREFIX}as.1 ${PKGNAMEPREFIX}c++filt.1 \
@@ -47,7 +53,6 @@ MAN1= ${PKGNAMEPREFIX}addr2line.1 ${PKGNAMEPREFIX}ar.1 \
${PKGNAMEPREFIX}strip.1 ${PKGNAMEPREFIX}windmc.1 \
${PKGNAMEPREFIX}windres.1
-
INFO= as bfd binutils configure gprof ld standards
INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info
@@ -58,7 +63,7 @@ BINARIES= addr2line ar as c++filt elfedit gprof ld nm objcopy objdump \
pre-patch:
@cd ${WRKSRC} && ${PATCH} -s -p1 < ../mspgcc-${MSPGCCVERSION}/${PKGNAMEPREFIX}${PORTNAME}-${BINUTILVERSION}-${PATCHVERSION}.patch
-
+
pre-configure:
${CHMOD} 755 ${WRKSRC}/configure
@@ -68,16 +73,4 @@ post-install:
${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin/$F
.endfor
-#
-# UGLY HACK
-#
-add-plist-post:
- @${ECHO_CMD} "@unexec rmdir -p %D/${PKGNAMEPREFIX:S/-$//}/info 2> /dev/null || true" >> ${TMPPLIST}
- @${ECHO_CMD} "@unexec rmdir -p %D/${PKGNAMEPREFIX:S/-$//} 2> /dev/null || true" >> ${TMPPLIST}
-.if (defined(PREFIX) && ${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LINUXBASE} && ${PREFIX} != "/usr")
- @${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST}
-.else
- @${DO_NADA}
-.endif
-
.include <bsd.port.mk>