From 65ada439328cdfc32d84181dfdf38e00a8409e74 Mon Sep 17 00:00:00 2001 From: barner Date: Mon, 6 Jun 2005 08:45:24 +0000 Subject: Add a knob to define the TCP port to contact the OSCAR server (at compile time). The original author was contacted to implement this as a config directive. Requested by: barner Submitted by: Emanuel Haupt PR: ports/81938 --- net-im/bsflite/Makefile | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'net-im') diff --git a/net-im/bsflite/Makefile b/net-im/bsflite/Makefile index 7b24e480a248..48a8eba5e4d6 100644 --- a/net-im/bsflite/Makefile +++ b/net-im/bsflite/Makefile @@ -14,6 +14,27 @@ MASTER_SITE_SUBDIR=bsflite MAINTAINER= ehaupt@critical.ch COMMENT= A lightweight command line AIM client +USE_REINPLACE= yes + +OSCAR_PORT?= 5190 + +.include + +.if ${OSCAR_PORT} == "5190" +pre-everything:: + @${ECHO_MSG} "" + @${ECHO_MSG} "Note:" + @${ECHO_MSG} "If you're behind a firewall you might want to set OSCAR_PORT" + @${ECHO_MSG} "a port other than ${OSCAR_PORT}." + @${ECHO_MSG} "" +.endif + +.if ${OSCAR_PORT} != 5190 +post-patch: + @${REINPLACE_CMD} -e 's|^\(#define OSCAR_PORT\) 5190|\1 ${OSCAR_PORT}|' \ + ${WRKSRC}/imcomm/imcomm.h +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bsflite ${PREFIX}/bin ${MKDIR} ${EXAMPLESDIR} @@ -26,4 +47,4 @@ do-install: .endfor .endif -.include +.include -- cgit