Lines 1-43
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= libevdev |
3 |
PORTNAME= libevdev |
4 |
PORTVERSION= 1.5.9 |
4 |
PORTVERSION= 1.9.1.20200928 |
5 |
PORTREVISION= 1 |
|
|
6 |
CATEGORIES= devel |
5 |
CATEGORIES= devel |
7 |
MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/ |
6 |
#MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/ |
8 |
|
7 |
|
9 |
MAINTAINER= hselasky@FreeBSD.org |
8 |
MAINTAINER= x11@FreeBSD.org |
10 |
COMMENT= Linux Event Device library |
9 |
COMMENT= Linux Event Device library |
11 |
|
10 |
|
12 |
LICENSE= MIT # without linux/*.h |
11 |
LICENSE= MIT # without linux/*.h |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
14 |
|
13 |
|
15 |
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto |
14 |
USES= meson pkgconfig python:3.5+,build shebangfix |
16 |
LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim |
|
|
17 |
|
18 |
USES= gmake libtool localbase pathfix pkgconfig python:build tar:xz |
19 |
EXTRACT_AFTER_ARGS= --exclude include # v4l_compat |
20 |
GNU_CONFIGURE= yes |
21 |
CONFIGURE_ENV= ac_cv_path_DOXYGEN="" ac_cv_path_VALGRIND="" |
22 |
CPPFLAGS+= -I${LOCALBASE}/include/libepoll-shim |
23 |
INSTALL_TARGET= install-strip |
24 |
USE_LDCONFIG= yes |
15 |
USE_LDCONFIG= yes |
25 |
|
16 |
|
26 |
# Test requires /dev/uinput and should be run as root |
17 |
USE_GITLAB= yes |
27 |
.if exists(/dev/uinput) |
18 |
GL_SITE= https://gitlab.freedesktop.org |
28 |
TEST_DEPENDS= checkmk:devel/check |
19 |
GL_COMMIT= 6ea230bc72353c54fac628987b87cc1d3b6fd842 |
29 |
TEST_TARGET= check |
20 |
|
30 |
TEST_WRKSRC= ${WRKSRC}/test |
21 |
MESON_ARGS= -Ddocumentation=disabled -Dtests=disabled |
31 |
.endif |
22 |
|
32 |
|
23 |
BINARY_ALIAS= python3=${PYTHON_CMD} |
33 |
post-patch: |
|
|
34 |
@${REINPLACE_CMD} -e '/input\.h/s,top_srcdir,LOCALBASE,g' \ |
35 |
${WRKSRC}/libevdev/Makefile.in |
36 |
@${REINPLACE_CMD} -e '/^LIBS = /s/$$/ -pthread -lrt -lepoll-shim/' \ |
37 |
${WRKSRC}/tools/Makefile.in |
38 |
@${REINPLACE_CMD} -e 's|program_invocation_short_name|getprogname()|' \ |
39 |
${WRKSRC}/tools/mouse-dpi-tool.c \ |
40 |
${WRKSRC}/tools/touchpad-edge-detector.c \ |
41 |
${WRKSRC}/tools/libevdev-tweak-device.c |
42 |
|
24 |
|
43 |
.include <bsd.port.mk> |
25 |
.include <bsd.port.mk> |