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
|
2014-10-24 18:17:48 +02:00
|
|
|
PORTREVISION= 7
|
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
|
|
|
|
2011-06-28 20:12:32 +02:00
|
|
|
BUILD_DEPENDS= v4l_compat>=1.0.20110603:${PORTSDIR}/multimedia/v4l_compat
|
|
|
|
|
2014-08-11 15:59:47 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2014-12-18 12:23:46 +01:00
|
|
|
USES= alias autoreconf gmake libtool python tar:bzip2
|
2013-02-08 23:21:50 +01:00
|
|
|
USE_XORG= sm x11
|
2011-06-28 20:12:32 +02:00
|
|
|
USE_CSTD= gnu89
|
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
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
2007-01-19 03:27:23 +01:00
|
|
|
|
2014-07-15 17:03:23 +02:00
|
|
|
OPTIONS_DEFINE= MINIMAL DEBUG UARTLIRC DOCS EXAMPLES
|
2012-06-02 21:37:10 +02:00
|
|
|
|
|
|
|
MINIMAL_DESC= Build with minmal dependencies
|
|
|
|
UARTLIRC_DESC= Install serial LIRC driver
|
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
|
|
|
|
2007-01-19 03:27:23 +01:00
|
|
|
.if exists(${LOCALBASE}/lib/libvga.so.1)
|
2013-12-11 16:10:44 +01:00
|
|
|
LIB_DEPENDS+= libvga.so:${PORTSDIR}/graphics/svgalib
|
2005-10-25 04:08:11 +02:00
|
|
|
PLIST_SUB+= SMODE2=
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SMODE2="@comment "
|
|
|
|
.endif
|
2006-04-29 19:57:03 +02:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
MINIMAL_LIB_DEPENDS_OFF= libftdi.so:${PORTSDIR}/devel/libftdi \
|
2014-10-24 18:17:48 +02:00
|
|
|
libirman.so:${PORTSDIR}/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
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
UARTLIRC_RUN_DEPENDS= uartlirc>=0.3:${PORTSDIR}/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
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
post-install-DOCS-on:
|
2014-01-26 18:37:03 +01:00
|
|
|
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}/)
|
|
|
|
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} images ${STAGEDIR}${DOCSDIR}/)
|
|
|
|
@(cd ${WRKSRC}/doc && ${INSTALL_DATA} 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}/)
|
2015-08-19 15:29:59 +02:00
|
|
|
post-install:
|
2014-01-26 18:37:03 +01:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/lircd.conf ${STAGEDIR}${PREFIX}/etc/lircd.conf.sample
|
|
|
|
@${MKDIR} ${STAGEDIR}/var/run/lirc
|
2003-10-06 03:31:49 +02:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
.include <bsd.port.mk>
|