freebsd-ports/devel/libopencm3/Makefile
2014-06-18 19:02:51 +00:00

35 lines
941 B
Makefile

# $FreeBSD$
PORTNAME= libopencm3
PORTVERSION= 0.0.20140611
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= ${GH_COMMIT}
GH_COMMIT= c01f9ee
USES= gmake
USE_PYTHON_BUILD= 2
TOOLCHAIN_FULL_VERSION?=4_8-2014q2-20140609
TOOLCHAIN_PORT_VERSION?=4.8.20140609
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>