blob: 5aec45078064d8898ef4513065048cec21db53d5 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
PORTNAME= libc6-shim
DISTVERSION= 20210109
CATEGORIES= emulators
MAINTAINER= iwtcex@gmail.com
COMMENT= ABI-compatible glibc shim library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
IGNORE_FreeBSD_11=not supported
ONLY_FOR_ARCHS= amd64
USE_GITHUB= yes
GH_ACCOUNT= shkhln
GH_PROJECT= libc6-shim
USE_RUBY= yes
PORTSCOUT= ignore:1
post-patch:
${REINPLACE_CMD} -e 's|../icds|../${DATADIR_REL}/icds|' ${WRKSRC}/bin/nv-sglrun
${REINPLACE_CMD} -e 's|../lib64|../lib/${PORTNAME}|' -e 's|../lib32|../lib32/${PORTNAME}|' ${WRKSRC}/bin/with-glibc-shim
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
${MKDIR} ${STAGEDIR}${PREFIX}/lib32/${PORTNAME}
${MKDIR} ${STAGEDIR}${DATADIR}/icds/ocl
${MKDIR} ${STAGEDIR}${DATADIR}/icds/vk
${INSTALL_SCRIPT} \
${WRKSRC}/bin/nv-sglrun \
${WRKSRC}/bin/with-glibc-shim \
${STAGEDIR}${PREFIX}/bin
${INSTALL_LIB} \
${WRKSRC}/build/lib64/libc6*.so \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}
${INSTALL_LIB} \
${WRKSRC}/build/lib32/libc6*.so \
${STAGEDIR}${PREFIX}/lib32/${PORTNAME}
${INSTALL_DATA} \
${WRKSRC}/icds/ocl/nv.icd \
${STAGEDIR}${DATADIR}/icds/ocl
${INSTALL_DATA} \
${WRKSRC}/icds/vk/nv.json \
${STAGEDIR}${DATADIR}/icds/vk
.include <bsd.port.mk>
|