blob: f2b67b319511e565866f7fd9ab61859b229b0e60 (
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
|
PORTNAME= cpu_features
PORTVERSION= 0.5.0
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= skreuzer@FreeBSD.org
COMMENT= Cross platform C99 library to get cpu features at runtime
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 riscv64
NOT_FOR_ARCHS_REASON= assumes android if on ARM or MIPS; not ported to riscv64
USES= cmake:insource
USE_GITHUB= yes
GH_ACCOUNT= google
CMAKE_ON= BUILD_SHARED_LIBS
CFLAGS+= -fPIC
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/list_cpu_features ${STAGEDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/libcpu_features.so ${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>
|