Changeset View
Changeset View
Standalone View
Standalone View
head/devel/libepoll-shim/Makefile
# Created by: Johannes Lundberg <johalun0@gmail.com> | # Created by: Johannes Lundberg <johalun0@gmail.com> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= libepoll-shim | PORTNAME= libepoll-shim | ||||
PORTVERSION= 0.0.20200602 | PORTVERSION= 0.0.20201229 | ||||
CATEGORIES= devel | CATEGORIES= devel | ||||
MAINTAINER= x11@FreeBSD.org | MAINTAINER= x11@FreeBSD.org | ||||
COMMENT= Small epoll implementation using kqueue | COMMENT= Small epoll implementation using kqueue | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
USES= cmake compiler:c11 | USES= cmake compiler:c11 | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= jiixyj | GH_ACCOUNT= jiixyj | ||||
GH_PROJECT= epoll-shim | GH_PROJECT= epoll-shim | ||||
GH_TAGNAME= 3840e9c | GH_TAGNAME= 1c27d2d | ||||
PLIST_SUB= SHIM_EVENTFD="${exists(/usr/include/sys/eventfd.h):?@comment :}" | |||||
do-test: | do-test: | ||||
# Exclude certain tests in resource restricted environments | # Exclude certain tests in resource restricted environments | ||||
@(if [ `ulimit -n` -lt 20100 ]; then \ | @(if [ `ulimit -n` -lt 20100 ]; then \ | ||||
${ECHO} "Skipping test perf-many-fds.perf_many_fds__perf"; \ | ${ECHO} "Skipping test perf-many-fds.perf_many_fds__perf"; \ | ||||
SKIP_TESTS="-E ^(perf-many-fds.perf_many_fds__perf"; \ | SKIP_TESTS="-E ^(perf-many-fds.perf_many_fds__perf"; \ | ||||
if [ `ulimit -n` -lt 1100 ]; then \ | if [ `ulimit -n` -lt 1100 ]; then \ | ||||
${ECHO} "Skipping test timerfd-test.timerfd__many_timers"; \ | ${ECHO} "Skipping test timerfd-test.timerfd__many_timers"; \ | ||||
SKIP_TESTS=$$SKIP_TESTS"|timerfd-test.timerfd__many_timers"; \ | SKIP_TESTS=$$SKIP_TESTS"|timerfd-test.timerfd__many_timers"; \ | ||||
fi; \ | fi; \ | ||||
SKIP_TESTS=$$SKIP_TESTS")$$"; \ | SKIP_TESTS=$$SKIP_TESTS")$$"; \ | ||||
fi; \ | fi; \ | ||||
cd ${TEST_WRKSRC} && \ | cd ${TEST_WRKSRC} && \ | ||||
${SETENV} ${TEST_ENV} ctest -C ${CMAKE_BUILD_TYPE} $$SKIP_TESTS) | ${SETENV} ${TEST_ENV} ctest -C ${CMAKE_BUILD_TYPE} $$SKIP_TESTS) | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |