1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/emulators/libc6-shim/Makefile
2024-05-14 13:09:11 +02:00

48 lines
1.2 KiB
Makefile

PORTNAME= libc6-shim
DISTVERSION= 20240512
CATEGORIES= emulators
MAINTAINER= iwtcex@gmail.com
COMMENT= ABI-compatible glibc shim library
WWW= https://github.com/shkhln/libc6-shim
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64
USES= ruby
USE_GITHUB= yes
GH_ACCOUNT= shkhln
GH_PROJECT= libc6-shim
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>