Lines 2-35
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= libepoll-shim |
4 |
PORTNAME= libepoll-shim |
5 |
PORTVERSION= 0.0.20190311 |
5 |
PORTVERSION= 0.0.20191117 |
6 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
7 |
|
7 |
|
8 |
MAINTAINER= x11@FreeBSD.org |
8 |
MAINTAINER= x11@FreeBSD.org |
9 |
COMMENT= epoll shim implemented using kevent |
9 |
COMMENT= Small epoll implementation using kqueue |
10 |
|
10 |
|
11 |
LICENSE= MIT |
11 |
LICENSE= MIT |
|
|
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
|
13 |
|
|
|
14 |
USES= cmake compiler:c11 |
15 |
USE_LDCONFIG= yes |
13 |
USE_GITHUB= yes |
16 |
USE_GITHUB= yes |
14 |
GH_ACCOUNT= FreeBSDDesktop |
17 |
GH_ACCOUNT= jiixyj |
15 |
GH_PROJECT= epoll-shim |
18 |
GH_PROJECT= epoll-shim |
16 |
GH_TAGNAME= 1d1135384395dbf38eea00680ca28ead04f8dce2 |
19 |
GH_TAGNAME= 1f003fa40f8ac3858dcc474b96cc4aee5820dcd2 |
17 |
|
20 |
|
18 |
USE_LDCONFIG= yes |
21 |
do-test: |
|
|
22 |
# Exclude certain tests in resource restricted environments |
23 |
@(if [ `ulimit -n` -lt 20100 ]; then \ |
24 |
SKIP_TESTS="-E ^(perf-many-fds.perf_many_fds__perf"; \ |
25 |
if [ `ulimit -n` -lt 1100 ]; then \ |
26 |
SKIP_TESTS=$$SKIP_TESTS"|timerfd-test.timerfd__many_timers"; \ |
27 |
fi; \ |
28 |
SKIP_TESTS=$$SKIP_TESTS")$$"; \ |
29 |
fi; \ |
30 |
cd ${TEST_WRKSRC} && ctest -C ${CMAKE_BUILD_TYPE} $$SKIP_TESTS) |
19 |
|
31 |
|
20 |
USES= compiler uidfix |
32 |
.include <bsd.port.mk> |
21 |
MAKE_ARGS= WITHOUT_PROFILE=yes |
|
|
22 |
|
23 |
.include <bsd.port.pre.mk> |
24 |
|
25 |
post-patch: |
26 |
@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' ${WRKSRC}/Makefile |
27 |
.if "${CHOSEN_COMPILER_TYPE}" == "gcc" |
28 |
@${REINPLACE_CMD} -e 's|Wno-missing-variable-declarations|Wno-missing-declarations|' \ |
29 |
-e 's|-Wno-thread-safety-analysis||' ${WRKSRC}/Makefile |
30 |
.endif |
31 |
|
32 |
pre-install: |
33 |
@${MKDIR} ${STAGEDIR}/${PREFIX}/include/libepoll-shim/sys |
34 |
|
35 |
.include <bsd.port.post.mk> |