install epoll-shim.pc to the correct directory and remove -lrt from Libs.private while here

ok jca@
This commit is contained in:
robert 2022-04-19 11:37:34 +00:00
parent 01b93143d2
commit bf8969e11e
3 changed files with 15 additions and 2 deletions

View File

@ -4,6 +4,8 @@ GH_ACCOUNT= jiixyj
GH_PROJECT= epoll-shim
GH_TAGNAME= v0.0.20210418
REVISION= 0
SHARED_LIBS= epoll-shim 0.1
CATEGORIES= devel
@ -19,4 +21,6 @@ WANTLIB= pthread
MODULES= devel/cmake
CONFIGURE_ARGS+=-DCMAKE_INSTALL_PKGCONFIGDIR=${LOCALBASE}/lib/pkgconfig
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
Index: epoll-shim.pc.cmakein
--- epoll-shim.pc.cmakein.orig
+++ epoll-shim.pc.cmakein
@@ -8,5 +8,5 @@ URL: https://github.com/jiixyj/epoll-shim
Description: Small epoll implementation using kqueue
Version:
Libs: -L${libdir} -lepoll-shim
-Libs.private: -pthread -lrt
+Libs.private: -pthread
Cflags: -I${includedir}/libepoll-shim

View File

@ -16,5 +16,4 @@ lib/cmake/epoll-shim/epoll-shim-config.cmake
lib/cmake/epoll-shim/epoll-shim-targets${MODCMAKE_BUILD_SUFFIX}
lib/cmake/epoll-shim/epoll-shim-targets.cmake
@lib lib/libepoll-shim.so.${LIBepoll-shim_VERSION}
libdata/pkgconfig/
libdata/pkgconfig/epoll-shim.pc
lib/pkgconfig/epoll-shim.pc