1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/devel/libopencm3/Makefile
Tobias Kortkamp 1bf865fed5
Clean up all commented PORTREVISION and PORTEPOCH lines
No revision bump tool that we have cleans them up or deals with
them, so we end up with duplicated lines.  Instead of implementing
that just clean up the 51 ports that do this.

PORTREVISION and PORTEPOCH can be set to 0 explicitly instead if
you need a reminder or placeholder.
2021-04-19 10:00:13 +02:00

36 lines
960 B
Makefile

PORTNAME= libopencm3
PORTVERSION= 0.8.0
DISTVERSIONPREFIX=v
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
USES= gmake python:build shebangfix
SHEBANG_FILES= scripts/irq2nvic_h \
scripts/lpcvtcksum
TOOLCHAIN_FULL_VERSION?=10-2020-q4-major
TOOLCHAIN_PORT_VERSION?=10.2.20201211
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>