2013-02-08 23:21:50 +01:00
|
|
|
# Created by: Mike Heffner <mikeh@FreeBSD.org>
|
2003-10-06 03:31:49 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lirc
|
2011-06-28 20:12:32 +02:00
|
|
|
PORTVERSION= 0.9.0
|
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 10:09:11 +01:00
|
|
|
PORTREVISION= 10
|
2011-06-28 20:12:32 +02:00
|
|
|
PORTEPOCH= 1
|
2003-10-06 03:31:49 +02:00
|
|
|
CATEGORIES= comms
|
2011-06-28 20:12:32 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/LIRC/${PORTVERSION}
|
2003-10-06 03:31:49 +02:00
|
|
|
|
2015-12-14 03:52:14 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2011-02-26 23:11:54 +01:00
|
|
|
COMMENT= Linux Infrared Remote Control
|
2003-10-06 03:31:49 +02:00
|
|
|
|
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 10:09:11 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto
|
2011-06-28 20:12:32 +02:00
|
|
|
|
2019-11-04 22:36:13 +01:00
|
|
|
USES= alias autoreconf gmake libtool localbase python tar:bzip2 xorg
|
2018-02-02 17:45:55 +01:00
|
|
|
USE_XORG= sm x11 ice
|
2011-06-28 20:12:32 +02:00
|
|
|
USE_CSTD= gnu89
|
2018-02-02 17:45:55 +01:00
|
|
|
INSTALL_TARGET= install-strip
|
2007-01-19 03:27:23 +01:00
|
|
|
USE_LDCONFIG= yes
|
2004-12-03 02:10:36 +01:00
|
|
|
|
2014-12-18 12:23:46 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2014-08-11 15:59:47 +02:00
|
|
|
CONFIGURE_ARGS= --enable-sandboxed --with-devdir=/var/run/lirc \
|
|
|
|
--sysconfdir=${PREFIX}/etc
|
2007-01-19 03:27:23 +01:00
|
|
|
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= lircd
|
2011-02-26 23:11:54 +01:00
|
|
|
PORTDOCS= html images irxevent.keys lirc.css lirc.hwdb
|
|
|
|
PORTEXAMPLES= remotes
|
2011-03-02 23:58:35 +01:00
|
|
|
SUB_FILES= pkg-message lircd.conf
|
2004-12-03 02:10:36 +01:00
|
|
|
|
2018-02-02 17:45:55 +01:00
|
|
|
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
|
2006-04-29 19:57:03 +02:00
|
|
|
|
2018-02-02 17:45:55 +01:00
|
|
|
MINIMAL_LIB_DEPENDS_OFF=libftdi.so:devel/libftdi \
|
2016-04-01 15:29:15 +02:00
|
|
|
libirman.so:comms/libirman
|
2015-08-19 15:29:59 +02:00
|
|
|
MINIMAL_CONFIGURE_OFF= --with-driver=userspace
|
|
|
|
MINIMAL_CONFIGURE_ON= --with-driver=dvico
|
2011-02-26 23:11:54 +01:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
2007-01-19 03:27:23 +01:00
|
|
|
|
2018-02-02 17:45:55 +01:00
|
|
|
SMODE2_LIB_DEPENDS= libvga.so:graphics/svgalib
|
2018-02-15 15:35:58 +01:00
|
|
|
SMODE2_PLIST_FILES= bin/smode2
|
2018-02-02 17:45:55 +01:00
|
|
|
|
|
|
|
UARTLIRC_RUN_DEPENDS= uartlirc>=0.3:comms/uartlirc
|
2012-05-13 18:13:13 +02:00
|
|
|
|
2014-08-11 15:59:47 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's/`$${LIBUSB_CONFIG} --libs`/-lusb/' \
|
|
|
|
-e 's/`$${LIBUSB_CONFIG} --cflags`//' \
|
|
|
|
${WRKSRC}/configure.ac
|
2013-07-16 07:42:36 +02:00
|
|
|
|
2018-02-02 17:45:55 +01:00
|
|
|
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
|
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
post-install-DOCS-on:
|
2018-02-02 17:45:55 +01:00
|
|
|
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "html images irxevent.keys lirc.css lirc.hwdb" ${STAGEDIR}${DOCSDIR}/)
|
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
post-install-EXAMPLES-on:
|
2014-01-26 18:37:03 +01:00
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} remotes ${STAGEDIR}${EXAMPLESDIR}/)
|
2003-10-06 03:31:49 +02:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
.include <bsd.port.mk>
|