aboutsummaryrefslogtreecommitdiff
path: root/devel/msp430-libc/Makefile
blob: 5747f88eb0b23afc9f621699c7b190bf9392884b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# New ports collection makefile for:	msp430-libc
# Date created:		15 October 2002
# Whom:			Lev Serebryakov <lev@serebryakov.spb.ru>
#
# $FreeBSD$
#

PORTNAME=	libc
PORTVERSION=	1.0.20031011
CATEGORIES=	devel
MASTER_SITES=	http://lev.serebryakov.spb.ru/download/msp430/
PKGNAMEPREFIX=	msp430-
DISTFILES=	${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER=	lev@FreeBSD.org
COMMENT=	Libc for TI's msp430 MCUs cross-development

BUILD_DEPENDS=	${PKGNAMEPREFIX}gcc:${PORTSDIR}/devel/${PKGNAMEPREFIX}gcc
RUN_DEPENDS=	${BUILD_DEPENDS}

WRKSRC=		${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}/src

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_REINPLACE=	yes
MAKE_ENV=	PATH=${PREFIX}/bin:${PATH}

PLIST_SUB+=	LIBC_TARG=${PKGNAMEPREFIX:S/-$//}

post-configure:
	${REINPLACE_CMD} "s|prefix = /usr/local/msp430|prefix = ${PREFIX}|" ${WRKSRC}/Makefile

post-install:
	@${MKDIR} ${PREFIX}/${PKGNAMEPREFIX:S/-$//}/share/mspgcc
	@tar --exclude CVS -C ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME} -cf - examples doc | \
		tar -xf - -C ${PREFIX}/${PKGNAMEPREFIX:S/-$//}/share/mspgcc
	@tar --exclude CVS -C ${WRKDIR} -cf - examples | \
		tar -xf - -C ${PREFIX}/${PKGNAMEPREFIX:S/-$//}/share/mspgcc

.include <bsd.port.mk>