1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/comms/lirc/Makefile
Juergen Lock 1174b885c8 - Switch to USES= gmake.
- Stagify.
2014-01-26 17:37:03 +00:00

85 lines
2.3 KiB
Makefile

# Created by: Mike Heffner <mikeh@FreeBSD.org>
# $FreeBSD$
PORTNAME= lirc
PORTVERSION= 0.9.0
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= comms
MASTER_SITES= SF/${PORTNAME}/LIRC/${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION:S/p1/-pre1/}
MAINTAINER= nox@FreeBSD.org
COMMENT= Linux Infrared Remote Control
BUILD_DEPENDS= v4l_compat>=1.0.20110603:${PORTSDIR}/multimedia/v4l_compat
USE_AUTOTOOLS= libtool automake autoheader aclocal autoconf
USES= gmake
ACLOCAL_ARGS= -I "${ACLOCAL_DIR}" -I ${LOCALBASE}/share/aclocal
USE_BZIP2= yes
USE_XORG= sm x11
USE_PYTHON= yes
USE_CSTD= gnu89
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --enable-sandboxed --with-devdir=/var/run/lirc \
--sysconfdir=${PREFIX}/etc
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= MINIMAL DEBUG UARTLIRC
MINIMAL_DESC= Build with minmal dependencies
UARTLIRC_DESC= Install serial LIRC driver
USE_RC_SUBR= lircd
PORTDOCS= html images irxevent.keys lirc.css lirc.hwdb
PORTEXAMPLES= remotes
SUB_FILES= pkg-message lircd.conf
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libvga.so.1)
LIB_DEPENDS+= libvga.so:${PORTSDIR}/graphics/svgalib
PLIST_SUB+= SMODE2=
.else
PLIST_SUB+= SMODE2="@comment "
.endif
.if empty(PORT_OPTIONS:MMINIMAL)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libirman.a:${PORTSDIR}/comms/libirman
LIB_DEPENDS+= libftdi.so:${PORTSDIR}/devel/libftdi
CONFIGURE_ARGS+= --with-driver=userspace
.else
CONFIGURE_ARGS+= --with-driver=dvico
.endif
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug
.endif
.if ${PORT_OPTIONS:MUARTLIRC}
RUN_DEPENDS+= uartlirc>=0.3:${PORTSDIR}/comms/uartlirc
.endif
# 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
post-install:
.if ${PORT_OPTIONS:MDOCS}
@(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}/)
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} remotes ${STAGEDIR}${EXAMPLESDIR}/)
.endif
@${INSTALL_DATA} ${WRKDIR}/lircd.conf ${STAGEDIR}${PREFIX}/etc/lircd.conf.sample
@${MKDIR} ${STAGEDIR}/var/run/lirc
.include <bsd.port.post.mk>