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
|
2013-02-08 23:21:50 +01:00
|
|
|
PORTREVISION= 4
|
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}
|
2011-02-26 23:11:54 +01:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/p1/-pre1/}
|
2003-10-06 03:31:49 +02:00
|
|
|
|
2011-02-26 23:11:54 +01:00
|
|
|
MAINTAINER= nox@FreeBSD.org
|
|
|
|
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
|
|
|
|
|
2011-02-26 23:11:54 +01:00
|
|
|
USE_AUTOTOOLS= libtool automake autoheader aclocal autoconf
|
2014-03-15 16:35:59 +01:00
|
|
|
USES= gmake tar:bzip2
|
2011-02-26 23:11:54 +01:00
|
|
|
ACLOCAL_ARGS= -I "${ACLOCAL_DIR}" -I ${LOCALBASE}/share/aclocal
|
2013-02-08 23:21:50 +01:00
|
|
|
USE_XORG= sm x11
|
2011-02-26 23:11:54 +01:00
|
|
|
USE_PYTHON= yes
|
2011-06-28 20:12:32 +02:00
|
|
|
USE_CSTD= gnu89
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-01-19 03:27:23 +01:00
|
|
|
USE_LDCONFIG= yes
|
2004-12-03 02:10:36 +01:00
|
|
|
|
2011-06-28 20:12:32 +02:00
|
|
|
CONFIGURE_ARGS= --enable-sandboxed --with-devdir=/var/run/lirc \
|
|
|
|
--sysconfdir=${PREFIX}/etc
|
2009-01-05 18:27:29 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2007-01-19 03:27:23 +01:00
|
|
|
|
2012-06-02 21:37:10 +02:00
|
|
|
OPTIONS_DEFINE= MINIMAL DEBUG UARTLIRC
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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
|
|
|
|
2012-06-02 21:37:10 +02:00
|
|
|
.if empty(PORT_OPTIONS:MMINIMAL)
|
2006-04-29 19:57:03 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libirman.a:${PORTSDIR}/comms/libirman
|
2013-12-11 16:10:44 +01:00
|
|
|
LIB_DEPENDS+= libftdi.so:${PORTSDIR}/devel/libftdi
|
2011-02-26 23:11:54 +01:00
|
|
|
CONFIGURE_ARGS+= --with-driver=userspace
|
2007-01-19 03:27:23 +01:00
|
|
|
.else
|
2011-02-26 23:11:54 +01:00
|
|
|
CONFIGURE_ARGS+= --with-driver=dvico
|
|
|
|
.endif
|
|
|
|
|
2012-06-02 21:37:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2011-02-26 23:11:54 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
2007-01-19 03:27:23 +01:00
|
|
|
.endif
|
|
|
|
|
2012-06-02 21:37:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MUARTLIRC}
|
2012-05-13 18:13:13 +02:00
|
|
|
RUN_DEPENDS+= uartlirc>=0.3:${PORTSDIR}/comms/uartlirc
|
|
|
|
.endif
|
|
|
|
|
2013-07-16 07:42:36 +02:00
|
|
|
# XXX: work around an issue with automake-1.13 erroring out on a
|
|
|
|
# non-existent m4 directory before libtoolize creates it
|
|
|
|
pre-configure::
|
|
|
|
@${MKDIR} ${WRKSRC}/m4
|
|
|
|
|
2003-10-06 03:31:49 +02:00
|
|
|
post-install:
|
2012-06-02 21:37:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
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}/)
|
2011-02-26 23:11:54 +01:00
|
|
|
.endif
|
2012-06-02 21:37:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2014-01-26 18:37:03 +01:00
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} remotes ${STAGEDIR}${EXAMPLESDIR}/)
|
2011-02-26 23:11:54 +01:00
|
|
|
.endif
|
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
|
|
|
|
2004-12-03 02:10:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|