1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/devel/msp430mcu/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

52 lines
1.6 KiB
Makefile

# Created by: Lev Serebryakov <lev@serebryakov.spb.ru>
# $FreeBSD$
PORTNAME= ${MCUTARGET}mcu
PORTVERSION= 1.0.${MCUVERSION}
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= SF/mspgcc/${PORTNAME}
DISTNAME= ${PORTNAME}-${MCUVERSION}
PATCH_SITES= SF/mspgcc/Patches/LTS/${LTSVERSION}
PATCHFILES= ${LTS_PATCHES}
PATCH_DIST_STRIP= -p1
MAINTAINER= lev@FreeBSD.org
COMMENT= Header files for TI's msp430 MCUs cross-development
LICENSE= BSD3CLAUSE
LTSVERSION= 20120406
MCUVERSION= 20120406
MCUTARGET= msp430
BUGS_FIXED= 3522088
LTS_PATCHES!= for bugid in ${BUGS_FIXED} ; do echo ${PORTNAME}-${MCUVERSION}-sf$${bugid}.patch ; done
USES= tar:bzip2
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${MCUVERSION}
PLIST= ${WRKDIR}/.PLIST
MCUINCPATH= ${MCUTARGET}/include
MCULIBPATH= ${MCUTARGET}/lib
pre-install:
@cd ${WRKSRC} && ${FIND} upstream include -name '*.h' | ${SORT} | ${SED} -E 's,^[^/]+/,${MCUINCPATH}/,' > ${PLIST}
@${ECHO} ${MCULIBPATH}/msp430mcu.spec >> ${PLIST}
@cd ${WRKSRC}/analysis/ldscripts && ${FIND} . ! -type d | ${SORT} | ${SED} 's,^.,${MCULIBPATH}/ldscripts,' >> ${PLIST}
@cd ${WRKSRC}/analysis/ldscripts && ${FIND} . -type d ! -name '.' | ${SORT} -r | ${SED} 's,^.,@dirrm ${MCULIBPATH}/ldscripts,' >> ${PLIST}
@${ECHO} "bin/${PORTNAME}-config" >> ${PLIST}
@${ECHO} "@dirrm ${MCUINCPATH}" >> ${PLIST}
@${ECHO} "@dirrmtry ${MCUINCPATH}" >> ${PLIST}
@${ECHO} "@dirrmtry ${MCULIBPATH}/ldscripts" >> ${PLIST}
@${ECHO} "@dirrmtry ${MCULIBPATH}" >> ${PLIST}
@${ECHO} "@dirrmtry ${MCUTARGET}" >> ${PLIST}
do-install:
@cd ${WRKSRC} && MSP430MCU_ROOT=${WRKSRC} ${SH} scripts/install.sh ${PREFIX} ${STAGEDIR}${PREFIX}
.include <bsd.port.mk>