mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
39 lines
981 B
Makefile
39 lines
981 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libopencm3
|
|
PORTVERSION= 0.0.20200430
|
|
#PORTREVISION= 0
|
|
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:devel/gcc-arm-embedded
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= libopencm3
|
|
GH_TAGNAME= 9075395
|
|
|
|
|
|
USES= gmake python:build shebangfix
|
|
|
|
SHEBANG_FILES= scripts/irq2nvic_h \
|
|
scripts/lpcvtcksum
|
|
|
|
TOOLCHAIN_FULL_VERSION?=9-2020-q2-update
|
|
TOOLCHAIN_PORT_VERSION?=9.3.20200529
|
|
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>
|