Changeset View
Changeset View
Standalone View
Standalone View
x11/libinput/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= libinput | PORTNAME= libinput | ||||
PORTVERSION= 1.6.0 | PORTVERSION= 1.6.0 | ||||
CATEGORIES= x11 | CATEGORIES= x11 | ||||
MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/ | MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/ | ||||
MAINTAINER= x11@FreeBSD.org | MAINTAINER= x11@FreeBSD.org | ||||
COMMENT= Generic input library | COMMENT= Generic input library | ||||
BUILD_DEPENDS= v4l_compat>=0:multimedia/v4l_compat | LICENSE= MIT | ||||
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/libevdev-headers | |||||
LIB_DEPENDS= libevdev.so:devel/libevdev \ | LIB_DEPENDS= libevdev.so:devel/libevdev \ | ||||
libepoll-shim.so:devel/libepoll-shim \ | |||||
libwacom.so:x11/libwacom \ | |||||
libudev.so:devel/libudev-devd \ | libudev.so:devel/libudev-devd \ | ||||
libmtdev.so:devel/libmtdev | libmtdev.so:devel/libmtdev | ||||
OPTIONS_DEFINE= EVENT_GUI LIBWACOM | |||||
OPTIONS_DEFAULT= | |||||
EVENT_GUI_DESC= Build the GUI event viewer | |||||
LIBWACOM_DESC= Libwacom support | |||||
OPTIONS_SUB= yes | |||||
EVENT_GUI_USE= GNOME=gtk30,glib20,cairo | |||||
EVENT_GUI_CONFIGURE_ENABLE= event-gui | |||||
LIBWACOM_LIB_DEPENDS= libwacom.so:x11/libwacom | |||||
LIBWACOM_CONFIGURE_ENABLE= libwacom | |||||
USES= autoreconf gmake libtool pathfix pkgconfig tar:xz | USES= autoreconf gmake libtool pathfix pkgconfig tar:xz | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CPPFLAGS+= -I${LOCALBASE}/include/libepoll-shim | CPPFLAGS+= -I${WRKSRC}/shims | ||||
CONFIGURE_ARGS= --disable-tests --without-libunwind | |||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} -e 's|program_invocation_short_name|getprogname()|' \ | ${RM} ${WRKSRC}/include/linux/input.h | ||||
${WRKSRC}/tools/libinput-list-devices.c \ | ${REINPLACE_CMD} -e '/SUBDIR/ s/udev//g' ${WRKSRC}/Makefile.am | ||||
${WRKSRC}/tools/ptraccel-debug.c ${WRKSRC}/tools/shared.c | |||||
post-install-EVENT_GUI-on: | |||||
${INSTALL_PROGRAM} ${WRKSRC}/tools/event-gui \ | |||||
${STAGEDIR}${PREFIX}/bin/libinput-event-gui | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |