pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/libepoll-shim



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Nov  9 11:09:04 UTC 2021

Modified Files:
        pkgsrc/devel/libepoll-shim: Makefile

Log Message:
libepoll-shim: Use PKG_HAVE_* to detect system call availability.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/libepoll-shim/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libepoll-shim/Makefile
diff -u pkgsrc/devel/libepoll-shim/Makefile:1.4 pkgsrc/devel/libepoll-shim/Makefile:1.5
--- pkgsrc/devel/libepoll-shim/Makefile:1.4     Wed Sep 22 17:45:13 2021
+++ pkgsrc/devel/libepoll-shim/Makefile Tue Nov  9 11:09:04 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2021/09/22 17:45:13 nia Exp $
+# $NetBSD: Makefile,v 1.5 2021/11/09 11:09:04 nia Exp $
 
 GITHUB_PROJECT=        epoll-shim
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -12,19 +12,23 @@ HOMEPAGE=   https://github.com/jiixyj/epol
 COMMENT=       Small epoll implemented using kevent
 LICENSE=       mit
 
-ONLY_FOR_PLATFORM=     NetBSD-*-* FreeBSD-*-* OpenBSD-*-* DragonFly-*-*
-
 USE_CMAKE=     yes
 USE_TOOLS+=    pkg-config
 USE_LANGUAGES= c c++
 
 CMAKE_ARGS+=   -DBUILD_TESTING=OFF
 
+.include "../../mk/bsd.prefs.mk"
+
+.if !defined(PKG_HAVE_KQUEUE)
+PKG_SKIP_REASON+=      "Requires a kqueue implementation"
+.endif
+
 PLIST_VARS+=   eventfd timerfd
-.if !exists(/usr/include/sys/eventfd.h)
+.if !defined(PKG_HAVE_EVENTFD)
 PLIST.eventfd= YES
 .endif
-.if !exists(/usr/include/sys/timerfd.h)
+.if !defined(PKG_HAVE_TIMERFD)
 PLIST.timerfd= YES
 .endif
 



Home | Main Index | Thread Index | Old Index