1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

databases/mdbx: consistency fix, use INSTALL_DATA

Replace every PORTVERSION to DISTVERSION after previous commit.
Use INSTALL_DATA to install static libraries.

Reported by:	diizzy (email)
Approved by:	portmgr (blanket)
This commit is contained in:
Zsolt Udvari 2024-08-27 20:28:36 +02:00
parent bf7660ac5d
commit 9fd243c061

View File

@ -18,12 +18,12 @@ USE_LDCONFIG= yes
NO_WRKSUBDIR= yes
PLIST_SUB= VERSION=${PORTVERSION}
PLIST_SUB= VERSION=${DISTVERSION}
post-install:
${CP} ${BUILD_WRKSRC}/libmdbx-static.a ${STAGEDIR}${PREFIX}/lib/libmdbx.a
${MV} ${STAGEDIR}${PREFIX}/lib/libmdbx.so ${STAGEDIR}${PREFIX}/lib/libmdbx.so.${PORTVERSION}
${RLN} libmdbx.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libmdbx.so
${RLN} libmdbx.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libmdbx.so.0
${INSTALL_DATA} ${BUILD_WRKSRC}/libmdbx-static.a ${STAGEDIR}${PREFIX}/lib/libmdbx.a
${MV} ${STAGEDIR}${PREFIX}/lib/libmdbx.so ${STAGEDIR}${PREFIX}/lib/libmdbx.so.${DISTVERSION}
${RLN} libmdbx.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libmdbx.so
${RLN} libmdbx.so.${DISTVERSION} ${STAGEDIR}${PREFIX}/lib/libmdbx.so.0
.include <bsd.port.mk>