blob: 94f32dc8864633433fda95ef3bad7e09c28839c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Created by: Mike Heffner <mikeh@FreeBSD.org>
# $FreeBSD$
PORTNAME= lirc
PORTVERSION= 0.9.0
PORTREVISION= 7
PORTEPOCH= 1
CATEGORIES= comms
MASTER_SITES= SF/${PORTNAME}/LIRC/${PORTVERSION}
MAINTAINER= nox@FreeBSD.org
COMMENT= Linux Infrared Remote Control
BUILD_DEPENDS= v4l_compat>=1.0.20110603:${PORTSDIR}/multimedia/v4l_compat
INSTALL_TARGET= install-strip
USES= alias autoreconf gmake libtool python tar:bzip2
USE_XORG= sm x11
USE_CSTD= gnu89
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-sandboxed --with-devdir=/var/run/lirc \
--sysconfdir=${PREFIX}/etc
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= MINIMAL DEBUG UARTLIRC DOCS EXAMPLES
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)
LIB_DEPENDS+= libftdi.so:${PORTSDIR}/devel/libftdi \
libirman.so:${PORTSDIR}/comms/libirman
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
post-patch:
@${REINPLACE_CMD} \
-e 's/`$${LIBUSB_CONFIG} --libs`/-lusb/' \
-e 's/`$${LIBUSB_CONFIG} --cflags`//' \
${WRKSRC}/configure.ac
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>
|