diff options
author | mikeh <mikeh@FreeBSD.org> | 2004-12-03 09:10:36 +0800 |
---|---|---|
committer | mikeh <mikeh@FreeBSD.org> | 2004-12-03 09:10:36 +0800 |
commit | 3567118079706cebf1f207095ddea7e9bddbae3b (patch) | |
tree | 8b32264797baa42fa60a3f679f92f565e72f343c /comms | |
parent | 19d8d3fee03705eee3f4a32cdbc70a066d73f319 (diff) | |
download | freebsd-ports-gnome-3567118079706cebf1f207095ddea7e9bddbae3b.tar.gz freebsd-ports-gnome-3567118079706cebf1f207095ddea7e9bddbae3b.tar.zst freebsd-ports-gnome-3567118079706cebf1f207095ddea7e9bddbae3b.zip |
Add capability to build with libirman support.
Suggested and tested by: dennis@rootxs.nl
Diffstat (limited to 'comms')
-rw-r--r-- | comms/lirc/Makefile | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/comms/lirc/Makefile b/comms/lirc/Makefile index ce207d244b7f..552505bfa4c6 100644 --- a/comms/lirc/Makefile +++ b/comms/lirc/Makefile @@ -16,11 +16,28 @@ MAINTAINER= mikeh@FreeBSD.org COMMENT= Linux Infared Remote Control USE_XLIB= yes -USE_GETOPT_LONG= yes +USE_GETOPT_LONG=yes USE_GMAKE= yes -USE_INC_LIBTOOL_VER= 13 +USE_INC_LIBTOOL_VER=13 +USE_REINPLACE= yes + CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ARGS= --with-driver=any --disable-manage-devices +CONFIGURE_ARGS= --disable-manage-devices + +.include <bsd.port.pre.mk> + +.if defined(WITH_IRMAN) +CONFIGURE_ARGS+= --with-driver=irman +BUILD_DEPENDS= ${LOCALBASE}/libirman.a:${PORTSDIR}/comms/libirman +.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= irexec.1 ircat.1 irpty.1 irrecord.1 irw.1 irxevent.1 \ mode2.1 smode2.1 xmode2.1 rc.1 @@ -29,4 +46,11 @@ MAN8= lircd.8 lircmd.8 post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +pre-everything:: +.ifndef(WITH_IRMAN) + @${ECHO_CMD} + @${ECHO_CMD} "To build with libirman support, restart make and define WITH_IRMAN" + @${ECHO_CMD} +.endif + +.include <bsd.port.post.mk> |