1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/devel/evemu/Makefile
Niclas Zeising 248c6b5c09 Split out evdev headers from multimedia/v4l_compat
Split out evdev headers (input.h, input-event-codes.h, uinput.h) into their
own port, devel/evdev-proto, and update those to be current with the Linux
4.19 kernel.  This is done in order to be able to update the rest of the
FreeBSD input stack, which is forthcoming.

By splititng out the evdev headers we can update them independent of other
updates in v4l_compat, which makes it easier for the graphics team to keep
track of them and keep them updated as needed.

Update devel/libevdev from 1.4.4 to 1.5.9 instead of trying to make it work
with the updated headers.  This will be further updated.

Update devel/py-evdev from 0.5.0 to 0.8.1 instead of trying to make it work
with the updated evdev headers.

Update consumers to use devel/evdev-proto rather than multimedia/v4l_compat
as needed, and bump portrevisions.

This is the first step in getting the FreeBSD input stack (libevdev,
libinput and so on) updated to newer versions.

Many thanks to all who have helped out with testing, code and exp-runs.
Apologies if I've forgotten to add any names.

PR:		222905, 217248, (based on, in part), 233787 (exp-run)
Submitted by:	Greg V, wulf
Tested by:	tcberner, kde
Exp-run by:	antoine
Approved by:	portmgr (antoine)
Obtained from:	FreeBSDDesktop development repo
		https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/input
		https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/input-ports
2018-12-19 09:09:11 +00:00

58 lines
1.6 KiB
Makefile

# Created by: Vladimir Kondratyev <wulf@FreeBSD.org>
# $FreeBSD$
PORTNAME= evemu
PORTVERSION= 2.6.0
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://www.freedesktop.org/software/${PORTNAME}/
MAINTAINER= wulf@FreeBSD.org
COMMENT= Records and replays EVDEV descriptions and events
LICENSE= GPLv3
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto
LIB_DEPENDS= libevdev.so:devel/libevdev
USES= tar:xz pathfix libtool pkgconfig localbase
OPTIONS_DEFINE= MANPAGES PYTHON
OPTIONS_DEFAULT=MANPAGES
OPTIONS_SUB= yes
MANPAGES_BUILD_DEPENDS= minixmlto:textproc/minixmlto \
asciidoc:textproc/asciidoc
MANPAGES_CONFIGURE_ENV= XMLTO=${LOCALBASE}/bin/minixmlto
MANPAGES_CONFIGURE_ENV_OFF= ac_cv_path_XMLTO="" \
ac_cv_path_ASCIIDOC=""
PYTHON_USES= python:2.7
PYTHON_USES_OFF= python:2.7,build
PYTHON_CONFIGURE_ENABLE= python-bindings
GNU_CONFIGURE= yes
CFLAGS+= -D_WITH_DPRINTF -include stdlib.h
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
REINPLACE_ARGS= -i ''
TEST_TARGET= check
TEST_WRKSRC= ${WRKSRC}/test
post-patch:
${REINPLACE_CMD} -e 's|program_invocation_short_name|getprogname()|' \
${WRKSRC}/tools/evemu-event.c ${WRKSRC}/tools/evemu-play.c \
${WRKSRC}/tools/evemu-record.c
${REINPLACE_CMD} -e 's|versionsort|alphasort|' \
${WRKSRC}/tools/find_event_devices.c
# Fix evemu-event.1, evemu-play.1 and evemu-record.1 manpages which are broken
# due to docbook-xsl bug: https://sourceforge.net/p/docbook/bugs/1058/
post-install-MANPAGES-on:
.for manpage in evemu-event.1 evemu-play.1 evemu-record.1
@${REINPLACE_CMD} -e 's|^\.so evemu|.so man1/evemu|' \
${STAGEDIR}${MANPREFIX}/man/man1/${manpage}
.endfor
.include <bsd.port.mk>