freebsd-ports/devel/msp430-gdb/Makefile
Pav Lucistnik 0f589fe676 - Update to 7.1 and unbreak
PR:		ports/152014
Submitted by:	mandree
Approved by:	maintainer timeout (lev; 16 days)
2010-11-24 14:35:22 +00:00

59 lines
1.8 KiB
Makefile

# New ports collection makefile for: msp430-gdb
# Date created: 16 October 2002
# Whom: Lev Serebryakov <lev@serebryakov.spb.ru>
#
# $FreeBSD$
#
PORTNAME= gdb
PORTVERSION= ${GDBVERSION}.${PATCHVERSION}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU} \
${MASTER_SITE_SOURCEFORGE:S/%SUBDIR%/mspgcc4\/mspgcc4/}:patches
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX= msp430-
DISTFILES= ${PORTNAME}-${GDBVERSION}${EXTRACT_SUFX} \
mspgcc4-${PATCHVERSION}${EXTRACT_SUFX}:patches
MAINTAINER= lev@FreeBSD.org
COMMENT= FSF GDB for TI's msp430 MCUs cross-development
GDBVERSION= 7.1
PATCHVERSION= 20101006
WRKSRC= ${WRKDIR}/${PORTNAME}-${GDBVERSION}
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} --disable-werror --disable-nls
MAKE_ENV= PATH=${PREFIX}/bin:${PATH}
MAN1= ${PKGNAMEPREFIX}gdb.1 ${PKGNAMEPREFIX}run.1
PLIST_SUB+= PORTVERSION=${PORTVERSION} GDB_TARG=${PKGNAMEPREFIX:S/-$//} \
GDB_REV=${GDBVERSION}
BINARIES= gdb:gdb run:sim/msp430
MANPAGES= gdb.1:gdb run.1:sim/common
.include <bsd.port.pre.mk>
pre-patch:
@${CP} -r ${WRKSRC}/../mspgcc4-${PATCHVERSION}/ports/gdb-6-and-7/* ${WRKSRC}
post-patch:
@cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} -p1 <${WRKSRC}/../mspgcc4-${PATCHVERSION}/gdb-7.1.patch
do-install:
@${MKDIR} ${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin
.for F in ${BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/${F:C/^.+://}/${F:C/:.+$//} ${PREFIX}/bin/${PKGNAMEPREFIX}${F:C/:.+$//}
@${LN} -f ${PREFIX}/bin/${PKGNAMEPREFIX}${F:C/:.+$//} \
${PREFIX}/${PKGNAMEPREFIX:S/-$//}/bin/${F:C/:.+$//}
.endfor
.for F in ${MANPAGES}
${INSTALL_MAN} ${WRKSRC}/${F:C/^.+://}/${F:C/:.+$//} ${PREFIX}/man/man${F:C/^.+\.([0-9]).+$/\1/}/${PKGNAMEPREFIX}${F:C/:.+$//}
.endfor
${INSTALL_DATA} ${WRKSRC}/sim/msp430/libsim.a ${PREFIX}/lib/libmsp430-sim.a
.include <bsd.port.post.mk>