1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/comms/lirc/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

57 lines
1.3 KiB
Makefile

# New ports collection makefile for: lirc
# Date created: 4 January 2003
# Whom: Mike Heffner <mikeh@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= lirc
PORTVERSION= 0.7.2
CATEGORIES= comms
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= lirc
MAINTAINER= doconnor@gsoft.com.au
COMMENT= Linux Infared Remote Control
USE_XLIB= yes
USE_GETOPT_LONG=yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:13:inc
USE_REINPLACE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-manage-devices --with-devdir=/var/lirc
OPTIONS= IRMAN "Build with libirman support" On
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib
PLIST_SUB+= SMODE2=
.else
PLIST_SUB+= SMODE2="@comment "
.endif
.if defined(WITH_IRMAN)
BUILD_DEPENDS= ${LOCALBASE}/lib/libirman.a:${PORTSDIR}/comms/libirman
CONFIGURE_ARGS+= --with-driver=irman
.if ${OSVERSION} >= 500041
# These are already included in the getopt_long case on < 50041
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.endif
.else
CONFIGURE_ARGS+= --with-driver=any
.endif
MAN1= ircat.1 irexec.1 irpty.1 irrecord.1 irsend.1 irw.1 \
irxevent.1 mode2.1 smode2.1 xmode2.1
MAN8= lircd.8 lircmd.8
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>