blob: 0d7cb033b9496d4fa2ad457242d8e8f4683eb64d (
plain)
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
|
# $FreeBSD$
PORTNAME= libopencm3
PORTVERSION= 0.0.20160110
CATEGORIES= devel
MAINTAINER= lev@FreeBSD.org
COMMENT= LGPLv3 Cortex-M0/M3/M4 runtime library
LICENSE= LGPL3
BUILD_DEPENDS= ${LOCALBASE}/gcc-arm-embedded-${TOOLCHAIN_FULL_VERSION}/bin/arm-none-eabi-gcc:${PORTSDIR}/devel/gcc-arm-embedded
USE_GITHUB= yes
GH_ACCOUNT= libopencm3
GH_TAGNAME= ad5ec6a
USES= gmake python:2,build shebangfix
SHEBANG_FILES= scripts/irq2nvic_h \
scripts/lpcvtcksum
TOOLCHAIN_FULL_VERSION?=5_2-2015q4-20151219
TOOLCHAIN_PORT_VERSION?=5.2.20151219
TOOLCHAIN_TARGET?=arm-none-eabi
DESTDIRNAME= STAGEDIR
MAKE_ENV= PATH=${LOCALBASE}/gcc-arm-embedded-${TOOLCHAIN_FULL_VERSION}/bin:${PATH} \
DESTDIR=${STAGEDIR}${PREFIX}/gcc-arm-embedded-${TOOLCHAIN_FULL_VERSION}
PLIST_SUB+= TARGET=${TOOLCHAIN_TARGET} FULL_VERSION=${TOOLCHAIN_FULL_VERSION}
do-configure:
${FIND} ${WRKSRC} -name Makefile -o -name \*.mk -type f | ${XARGS} ${REINPLACE_CMD} -e 's|PREFIX|TARGET|g'
.include <bsd.port.mk>
|