Added
Link Here
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= libc6-shim |
4 |
DISTVERSION= 20201024 |
5 |
CATEGORIES= emulators |
6 |
|
7 |
MAINTAINER= iwtcex@gmail.com |
8 |
COMMENT= ABI-compatible glibc shim library |
9 |
|
10 |
LICENSE= MIT |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
|
13 |
IGNORE_FreeBSD_11=not supported |
14 |
ONLY_FOR_ARCHS= amd64 |
15 |
|
16 |
USE_RUBY= yes |
17 |
|
18 |
USE_GITHUB= yes |
19 |
GH_ACCOUNT= shkhln |
20 |
GH_PROJECT= libc6-shim |
21 |
GH_TAGNAME= 6b6fa76812f7cb9625e24f12af99fcb9c46a0719 |
22 |
|
23 |
post-patch: |
24 |
${REINPLACE_CMD} -e 's|../icds|../${DATADIR_REL}/icds|' ${WRKSRC}/bin/nv-sglrun |
25 |
${REINPLACE_CMD} -e 's|../lib64|../lib/${PORTNAME}|' -e 's|../lib32|../lib32/${PORTNAME}|' ${WRKSRC}/bin/with-glibc-shim |
26 |
|
27 |
do-install: |
28 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME} |
29 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib32/${PORTNAME} |
30 |
${MKDIR} ${STAGEDIR}${DATADIR}/icds/ocl |
31 |
${MKDIR} ${STAGEDIR}${DATADIR}/icds/vk |
32 |
${INSTALL_SCRIPT} \ |
33 |
${WRKSRC}/bin/nv-sglrun \ |
34 |
${WRKSRC}/bin/with-glibc-shim \ |
35 |
${STAGEDIR}${PREFIX}/bin |
36 |
${INSTALL_LIB} \ |
37 |
${WRKSRC}/build/lib64/libc6*.so \ |
38 |
${STAGEDIR}${PREFIX}/lib/${PORTNAME} |
39 |
${INSTALL_LIB} \ |
40 |
${WRKSRC}/build/lib32/libc6*.so \ |
41 |
${STAGEDIR}${PREFIX}/lib32/${PORTNAME} |
42 |
${INSTALL_DATA} \ |
43 |
${WRKSRC}/icds/ocl/nv.icd \ |
44 |
${STAGEDIR}${DATADIR}/icds/ocl |
45 |
${INSTALL_DATA} \ |
46 |
${WRKSRC}/icds/vk/nv.json \ |
47 |
${STAGEDIR}${DATADIR}/icds/vk |
48 |
|
49 |
.include <bsd.port.mk> |