1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/comms/lirc/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

74 lines
2.1 KiB
Makefile

# Created by: Mike Heffner <mikeh@FreeBSD.org>
# $FreeBSD$
PORTNAME= lirc
PORTVERSION= 0.9.0
PORTREVISION= 10
PORTEPOCH= 1
CATEGORIES= comms
MASTER_SITES= SF/${PORTNAME}/LIRC/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Linux Infrared Remote Control
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto
USES= alias autoreconf gmake libtool localbase python tar:bzip2
USE_XORG= sm x11 ice
USE_CSTD= gnu89
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-sandboxed --with-devdir=/var/run/lirc \
--sysconfdir=${PREFIX}/etc
USE_RC_SUBR= lircd
PORTDOCS= html images irxevent.keys lirc.css lirc.hwdb
PORTEXAMPLES= remotes
SUB_FILES= pkg-message lircd.conf
OPTIONS_DEFINE= MINIMAL DEBUG UARTLIRC DOCS EXAMPLES
OPTIONS_DEFINE_i386= SMODE2 # requires svgalib which is...
OPTIONS_DEFINE_amd64= SMODE2 # ...only available on x86
OPTIONS_SUB= yes
MINIMAL_DESC= Build with minimal dependencies
UARTLIRC_DESC= Install serial LIRC driver
SMODE2_DESC= Build smode2 (shows signal waveform), requires svgalib
MINIMAL_LIB_DEPENDS_OFF=libftdi.so:devel/libftdi \
libirman.so:comms/libirman
MINIMAL_CONFIGURE_OFF= --with-driver=userspace
MINIMAL_CONFIGURE_ON= --with-driver=dvico
DEBUG_CONFIGURE_ENABLE= debug
SMODE2_LIB_DEPENDS= libvga.so:graphics/svgalib
SMODE2_PLIST_FILES= bin/smode2
UARTLIRC_RUN_DEPENDS= uartlirc>=0.3:comms/uartlirc
post-patch:
@${REINPLACE_CMD} \
-e 's/`$${LIBUSB_CONFIG} --libs`/-lusb/' \
-e 's/`$${LIBUSB_CONFIG} --cflags`//' \
${WRKSRC}/configure.ac
post-install:
${INSTALL_DATA} ${WRKDIR}/lircd.conf ${STAGEDIR}${PREFIX}/etc/lircd.conf.sample
@${MKDIR} ${STAGEDIR}/var/run/lirc
post-install-MINIMAL-on:
# bacause --with-driver is specified, it installs remotes/dvico/lircd.conf.fusionHDTV to etc/lircd/
# remove to not break the plist, but remote configs handling should probably be fixed...
@${RM} -r ${STAGEDIR}${PREFIX}/etc/lirc
post-install-DOCS-on:
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "html images irxevent.keys lirc.css lirc.hwdb" ${STAGEDIR}${DOCSDIR}/)
post-install-EXAMPLES-on:
@(cd ${WRKSRC} && ${COPYTREE_SHARE} remotes ${STAGEDIR}${EXAMPLESDIR}/)
.include <bsd.port.mk>