git: 8eecebff18b6 - main - devel/libinjection: Add SONAME
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Aug 2023 19:52:01 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=8eecebff18b6b3c02e1ad78f0f621fb5847ec765 commit 8eecebff18b6b3c02e1ad78f0f621fb5847ec765 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-08-16 19:51:36 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-08-16 19:51:36 +0000 devel/libinjection: Add SONAME - Bump PORTREVISION for package change --- devel/libinjection/Makefile | 5 ++++- devel/libinjection/files/patch-Makefile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/devel/libinjection/Makefile b/devel/libinjection/Makefile index 7aa44166964c..97a2ddbd3f6d 100644 --- a/devel/libinjection/Makefile +++ b/devel/libinjection/Makefile @@ -1,6 +1,6 @@ PORTNAME= libinjection PORTVERSION= 3.10.0 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONPREFIX= v CATEGORIES= devel @@ -19,6 +19,9 @@ USE_GITHUB= yes SHEBANG_GLOB= *.py +post-patch: + @${REINPLACE_CMD} -e 's|%%SHLIB_VER%%|${PORTVERSION:R:R}|' ${WRKSRC}/Makefile + do-install: ${INSTALL_DATA} ${WRKSRC}/libinjection*.h ${STAGEDIR}${PREFIX}/include/ ${INSTALL_DATA} ${WRKSRC}/libinjection.a ${STAGEDIR}${PREFIX}/lib/libinjection.a diff --git a/devel/libinjection/files/patch-Makefile b/devel/libinjection/files/patch-Makefile index 3469da190083..d25604d3fd81 100644 --- a/devel/libinjection/files/patch-Makefile +++ b/devel/libinjection/files/patch-Makefile @@ -5,7 +5,7 @@ ${SHAREDLIB}: ${OBJECTS} - $(CC) $+ -shared -lc -o $@ -+ $(CC) ${OBJECTS} -shared -lc -o $@ ++ $(CC) ${OBJECTS} -shared -Wl,-soname,libinjection.so.%%SHLIB_VER%% -lc -o $@ ${STATICLIB}: ${OBJECTS} rm -f ${STATICLIB}