1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/devel/cpu_features/Makefile
2019-07-14 02:24:51 +00:00

30 lines
774 B
Makefile

# $FreeBSD$
PORTNAME= cpu_features
PORTVERSION= 0.4.0
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Cross platform C99 library to get cpu features at runtime
LICENSE= APACHE20
NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64
NOT_FOR_ARCHS_REASON= assumes android if on ARM or MIPS
USES= cmake:insource
USE_GITHUB= yes
GH_ACCOUNT= google
CFLAGS+= -fPIC
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/list_cpu_features ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/libcpu_features.a ${STAGEDIR}${PREFIX}/lib
${MKDIR} ${STAGEDIR}${PREFIX}/include/internal
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/include/internal/*.h ${STAGEDIR}${PREFIX}/include/internal
.include <bsd.port.mk>