- use ${TARGET} where applicable
- move PATCHFILES to Makefile.inc - add TOOL, TOOL_V and LTS_V and use where applicable
This commit is contained in:
parent
b1a9b95d6a
commit
e86c52376e
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile.inc,v 1.15 2012/04/17 12:46:17 jasper Exp $
|
||||
# $OpenBSD: Makefile.inc,v 1.16 2012/04/17 13:01:56 jasper Exp $
|
||||
|
||||
#
|
||||
# XXX: Don't forget to adjust meta/msp430 when updating to new LTS
|
||||
@ -6,8 +6,14 @@
|
||||
|
||||
TARGET= msp430
|
||||
|
||||
DISTNAME?= ${TOOL}-${TOOL_V}
|
||||
PKGNAME?= ${TARGET}-${DISTNAME}
|
||||
|
||||
LTS_V?= 20120406
|
||||
|
||||
# Patches distributed by mspgcc to modify the GNU sources.
|
||||
PATCHFILES?= ${TARGET}-${TOOL}-${TOOL_V}-${LTS_V}.patch:0
|
||||
|
||||
CATEGORIES+= devel devel/msp430
|
||||
|
||||
MAINTAINER?= Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
||||
@ -34,7 +40,7 @@ MASTER_SITES?= ${MASTER_SITE_SOURCEFORGE:=mspgcc/}
|
||||
MASTER_SITES0= http://distfiles.nl/mspgcc/
|
||||
|
||||
# These are the patches intended for the LTS releases.
|
||||
#MASTER_SITES1= ${MASTER_SITE_SOURCEFORGE:=mspgcc/Patches/LTS/20120406/}
|
||||
#MASTER_SITES1= ${MASTER_SITE_SOURCEFORGE:=mspgcc/Patches/LTS/${LTS_V}/}
|
||||
|
||||
.for p in ${LTS_PATCHES}
|
||||
PATCHFILES += $p:1
|
||||
|
@ -1,13 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.11 2012/04/17 12:46:17 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.12 2012/04/17 13:01:56 jasper Exp $
|
||||
|
||||
COMMENT= GNU binutils for msp430
|
||||
|
||||
V= 2.21.1a
|
||||
R= 20120406
|
||||
DISTNAME= binutils-$V
|
||||
TOOL= binutils
|
||||
TOOL_V= 2.21.1a
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
|
||||
PATCHFILES= msp430-binutils-${V}-${R}.patch:0
|
||||
|
||||
WANTLIB= c z
|
||||
|
||||
|
@ -1,16 +1,14 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2012/04/17 12:46:17 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.20 2012/04/17 13:01:56 jasper Exp $
|
||||
|
||||
COMMENT= GNU Compiler Collection for msp430
|
||||
|
||||
VERSION= 4.6.3
|
||||
R= 20120406
|
||||
DISTNAME= gcc-${VERSION}
|
||||
TOOL= gcc
|
||||
TOOL_V= 4.6.3
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_GCC:=releases/gcc-$(VERSION)/}
|
||||
PATCHFILES= msp430-gcc-${VERSION}-${R}.patch:0
|
||||
|
||||
DISTFILES= gcc-core-${VERSION}${EXTRACT_SUFX} \
|
||||
gcc-g++-${VERSION}${EXTRACT_SUFX}
|
||||
DISTFILES= gcc-core-${TOOL_V}${EXTRACT_SUFX} \
|
||||
gcc-g++-${TOOL_V}${EXTRACT_SUFX}
|
||||
|
||||
WANTLIB += c gmp mpc mpfr
|
||||
|
||||
@ -33,6 +31,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
|
||||
post-install:
|
||||
chown -R ${SHAREOWN}:${SHAREGRP} \
|
||||
${PREFIX}/lib/gcc/${TARGET}/${VERSION}/
|
||||
${PREFIX}/lib/gcc/${TARGET}/${TOOL_V}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,13 +1,12 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2012/04/17 12:46:17 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2012/04/17 13:01:56 jasper Exp $
|
||||
|
||||
COMMENT= GNU debugger for msp430
|
||||
|
||||
VERSION= 7.2a
|
||||
R= 20111205
|
||||
DISTNAME= gdb-${VERSION}
|
||||
TOOL= gdb
|
||||
TOOL_V= 7.2a
|
||||
LTS_V= 20111205
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_GNU:=gdb/}
|
||||
PATCHFILES= msp430-gdb-${VERSION}-${R}.patch:0
|
||||
|
||||
RUN_DEPENDS= devel/msp430/binutils>=2.21.1a \
|
||||
devel/msp430/gcc>=4.6.3
|
||||
|
@ -1,9 +1,14 @@
|
||||
# $OpenBSD: Makefile,v 1.12 2012/04/17 12:46:17 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.13 2012/04/17 13:01:56 jasper Exp $
|
||||
|
||||
COMMENT= libc for msp430
|
||||
|
||||
DISTNAME= ${TARGET}-libc-20120224
|
||||
PKGNAME= ${DISTNAME}
|
||||
TOOL= ${TARGET}-libc
|
||||
TOOL_V= 20120224
|
||||
|
||||
PKGNAME= ${DISTNAME} # We don't want 'msp430' prepended.
|
||||
|
||||
PATCHFILES= # This space intentionally left blank.
|
||||
CONFIGURE_STYLE= # This space intentionally left blank.
|
||||
|
||||
RUN_DEPENDS= devel/msp430/gcc>=4.6.3
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
@ -13,8 +18,6 @@ USE_GMAKE= Yes
|
||||
|
||||
WRKSRC= ${WRKDIST}/src/
|
||||
|
||||
CONFIGURE_STYLE= # This space intentionally left blank.
|
||||
|
||||
SEPARATE_BUILD= No
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,12 +1,15 @@
|
||||
# $OpenBSD: Makefile,v 1.10 2012/04/17 12:46:17 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.11 2012/04/17 13:01:56 jasper Exp $
|
||||
|
||||
PKG_ARCH= *
|
||||
|
||||
COMMENT= C headers and binutils linker scripts for msp430
|
||||
|
||||
DISTNAME= msp430mcu-20120406
|
||||
PKGNAME= ${DISTNAME}
|
||||
TOOL= msp430mcu
|
||||
TOOL_V= ${LTS_V}
|
||||
|
||||
PKGNAME= ${DISTNAME} # We don't want 'msp430' prepended.
|
||||
|
||||
PATCHFILES= # This space intentionally left blank.
|
||||
CONFIGURE_STYLE=# This space intentionally left blank
|
||||
|
||||
RUN_DEPENDS= devel/msp430/libc>=20120224
|
||||
|
Loading…
Reference in New Issue
Block a user