2003-10-06 03:31:49 +02:00
|
|
|
# New ports collection makefile for: lirc
|
|
|
|
# Date created: 4 January 2003
|
|
|
|
# Whom: Mike Heffner <mikeh@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= lirc
|
2011-06-28 20:12:32 +02:00
|
|
|
PORTVERSION= 0.9.0
|
2011-12-18 17:39:55 +01:00
|
|
|
PORTREVISION= 3
|
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
|
|
|
|
ACLOCAL_ARGS= -I "${ACLOCAL_DIR}" -I ${LOCALBASE}/share/aclocal
|
2007-01-19 03:27:23 +01:00
|
|
|
USE_BZIP2= yes
|
2003-10-06 03:31:49 +02:00
|
|
|
USE_GMAKE= yes
|
2008-03-23 17:44:09 +01:00
|
|
|
USE_XORG= 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
|
2011-03-15 21:41:27 +01:00
|
|
|
MAKE_JOBS_SAFE= 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
|
|
|
|
2011-02-26 23:11:54 +01:00
|
|
|
OPTIONS= MINIMAL "Build with minmal dependencies" Off \
|
|
|
|
DEBUG "Build debug version" Off
|
2007-01-19 03:27:23 +01:00
|
|
|
|
|
|
|
USE_RC_SUBR= lircd.sh
|
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)
|
2005-10-25 06:45:49 +02:00
|
|
|
LIB_DEPENDS+= vga:${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
|
|
|
|
2011-02-26 23:11:54 +01:00
|
|
|
.if defined(WITHOUT_MINIMAL)
|
2006-04-29 19:57:03 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libirman.a:${PORTSDIR}/comms/libirman
|
2011-03-05 16:55:58 +01:00
|
|
|
LIB_DEPENDS+= ftdi.19:${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
|
|
|
|
|
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
2007-01-19 03:27:23 +01:00
|
|
|
.endif
|
|
|
|
|
2005-10-19 05:41:51 +02:00
|
|
|
MAN1= ircat.1 irexec.1 irpty.1 irrecord.1 irsend.1 irw.1 \
|
2007-01-19 03:27:23 +01:00
|
|
|
irxevent.1 lircrcd.1 mode2.1 smode2.1 xmode2.1
|
2003-10-06 03:31:49 +02:00
|
|
|
MAN8= lircd.8 lircmd.8
|
|
|
|
|
|
|
|
post-install:
|
2011-02-26 23:11:54 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${DOCSDIR}/)
|
|
|
|
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} images ${DOCSDIR}/)
|
|
|
|
@(cd ${WRKSRC}/doc && ${INSTALL_DATA} irxevent.keys lirc.css lirc.hwdb ${DOCSDIR}/)
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} remotes ${EXAMPLESDIR}/)
|
|
|
|
.endif
|
2011-03-02 23:58:35 +01:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/lircd.conf ${PREFIX}/etc/lircd.conf.sample
|
|
|
|
@if [ ! -f ${PREFIX}/etc/lircd.conf ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/lircd.conf ${PREFIX}/etc; \
|
|
|
|
fi
|
2007-01-19 03:27:23 +01:00
|
|
|
@${MKDIR} /var/run/lirc
|
2003-10-06 03:31:49 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2004-12-03 02:10:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|