Lines 1-30
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= libinput |
3 |
PORTNAME= libinput |
4 |
PORTVERSION= 1.6.0 |
4 |
PORTVERSION= 1.10.4 |
5 |
CATEGORIES= x11 |
5 |
CATEGORIES= x11 |
6 |
MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/ |
6 |
MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/ |
7 |
|
7 |
|
8 |
MAINTAINER= x11@FreeBSD.org |
8 |
MAINTAINER= x11@FreeBSD.org |
9 |
COMMENT= Generic input library |
9 |
COMMENT= Generic input library |
10 |
|
10 |
|
11 |
BUILD_DEPENDS= v4l_compat>=0:multimedia/v4l_compat |
11 |
LICENSE= MIT |
|
|
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
|
14 |
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto |
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}evdev>0:devel/py-evdev@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}pyudev>0:devel/py-pyudev@${PY_FLAVOR} |
12 |
LIB_DEPENDS= libevdev.so:devel/libevdev \ |
17 |
LIB_DEPENDS= libevdev.so:devel/libevdev \ |
13 |
libepoll-shim.so:devel/libepoll-shim \ |
18 |
libepoll-shim.so:devel/libepoll-shim \ |
14 |
libwacom.so:x11/libwacom \ |
|
|
15 |
libudev.so:devel/libudev-devd \ |
19 |
libudev.so:devel/libudev-devd \ |
16 |
libmtdev.so:devel/libmtdev |
20 |
libmtdev.so:devel/libmtdev |
17 |
|
21 |
|
18 |
USES= autoreconf gmake libtool pathfix pkgconfig tar:xz |
22 |
OPTIONS_DEFINE= DEBUG_GUI LIBWACOM |
19 |
USE_LDCONFIG= yes |
23 |
OPTIONS_DEFAULT=LIBWACOM |
20 |
GNU_CONFIGURE= yes |
24 |
OPTIONS_SUB= yes |
21 |
|
25 |
|
|
|
26 |
DEBUG_GUI_DESC= Build the GUI event viewer |
27 |
LIBWACOM_DESC= Libwacom support |
28 |
|
29 |
DEBUG_GUI_USE= GNOME=gtk30,glib20,cairo |
30 |
DEBUG_GUI_MESON_TRUE= debug-gui |
31 |
LIBWACOM_LIB_DEPENDS= libwacom.so:x11/libwacom |
32 |
LIBWACOM_MESON_TRUE= libwacom |
33 |
|
34 |
USES= localbase meson pkgconfig python:3.4+,run shebangfix tar:xz |
35 |
USE_LDCONFIG= yes |
36 |
EXTRACT_AFTER_ARGS= --exclude include/linux # supplied linux/input.h |
37 |
|
38 |
MESON_ARGS+= -Ddocumentation=false -Dtests=false |
22 |
CPPFLAGS+= -I${LOCALBASE}/include/libepoll-shim |
39 |
CPPFLAGS+= -I${LOCALBASE}/include/libepoll-shim |
|
|
40 |
LDFLAGS+= -lepoll-shim |
23 |
INSTALL_TARGET= install-strip |
41 |
INSTALL_TARGET= install-strip |
24 |
|
42 |
|
|
|
43 |
python_OLD_CMD= "/usr/bin/env python3" |
44 |
SHEBANG_FILES= tools/libinput-measure-touch-size \ |
45 |
tools/libinput-measure-touchpad-pressure \ |
46 |
tools/libinput-measure-touchpad-tap \ |
47 |
tools/libinput-measure-trackpoint-range |
48 |
|
49 |
post-extract: |
50 |
# meson script checks existence of bundled evdev headers. Fake them. |
51 |
${LN} -sf ${LOCALBASE}/include/linux ${WRKSRC}/include/linux |
52 |
|
25 |
post-patch: |
53 |
post-patch: |
26 |
${REINPLACE_CMD} -e 's|program_invocation_short_name|getprogname()|' \ |
54 |
${REINPLACE_CMD} -e 's|program_invocation_short_name|getprogname()|' \ |
27 |
${WRKSRC}/tools/libinput-list-devices.c \ |
55 |
${WRKSRC}/tools/ptraccel-debug.c |
28 |
${WRKSRC}/tools/ptraccel-debug.c ${WRKSRC}/tools/shared.c |
|
|
29 |
|
56 |
|
30 |
.include <bsd.port.mk> |
57 |
.include <bsd.port.mk> |