New port emulators/libc6-shim
ABI-compatible glibc shim library A shim library providing limited glibc ABI compatibility on top of FreeBSD libc. It allows loading shared objects compiled on Linux and dynamically linked to glibc into native FreeBSD processes. PR: 250591 Submitted by: Alex S <iwtcex@gmail.com> Reviewed by: ericbsd
This commit is contained in:
parent
dc02596c5b
commit
4dec62a2d3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=557259
@ -62,6 +62,7 @@
|
||||
SUBDIR += kcemu
|
||||
SUBDIR += klh10
|
||||
SUBDIR += lib765
|
||||
SUBDIR += libc6-shim
|
||||
SUBDIR += libdsk
|
||||
SUBDIR += libretro-ppsspp
|
||||
SUBDIR += libspectrum
|
||||
|
49
emulators/libc6-shim/Makefile
Normal file
49
emulators/libc6-shim/Makefile
Normal file
@ -0,0 +1,49 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libc6-shim
|
||||
DISTVERSION= 20201024
|
||||
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_RUBY= yes
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= shkhln
|
||||
GH_PROJECT= libc6-shim
|
||||
GH_TAGNAME= 6b6fa76812f7cb9625e24f12af99fcb9c46a0719
|
||||
|
||||
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>
|
3
emulators/libc6-shim/distinfo
Normal file
3
emulators/libc6-shim/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1603542639
|
||||
SHA256 (shkhln-libc6-shim-20201024-6b6fa76812f7cb9625e24f12af99fcb9c46a0719_GH0.tar.gz) = 6885cd5f26441c2644852b62c83ba8c34253a2d24dd5dcb04f4eaaadc4293a1e
|
||||
SIZE (shkhln-libc6-shim-20201024-6b6fa76812f7cb9625e24f12af99fcb9c46a0719_GH0.tar.gz) = 76397
|
5
emulators/libc6-shim/pkg-descr
Normal file
5
emulators/libc6-shim/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
A shim library providing limited glibc ABI compatibility on top of FreeBSD libc.
|
||||
It allows loading shared objects compiled on Linux and dynamically linked to
|
||||
glibc into native FreeBSD processes.
|
||||
|
||||
WWW: https://github.com/shkhln/libc6-shim
|
8
emulators/libc6-shim/pkg-plist
Normal file
8
emulators/libc6-shim/pkg-plist
Normal file
@ -0,0 +1,8 @@
|
||||
bin/nv-sglrun
|
||||
bin/with-glibc-shim
|
||||
lib/libc6-shim/libc6-debug.so
|
||||
lib/libc6-shim/libc6.so
|
||||
lib32/libc6-shim/libc6-debug.so
|
||||
lib32/libc6-shim/libc6.so
|
||||
%%DATADIR%%/icds/ocl/nv.icd
|
||||
%%DATADIR%%/icds/vk/nv.json
|
Loading…
Reference in New Issue
Block a user