diff options
author | barner <barner@FreeBSD.org> | 2005-06-06 08:45:24 +0000 |
---|---|---|
committer | barner <barner@FreeBSD.org> | 2005-06-06 08:45:24 +0000 |
commit | 65ada439328cdfc32d84181dfdf38e00a8409e74 (patch) | |
tree | a7a8c26f2466a650bcd1d4432e155fe04cb6523d /net-im | |
parent | 599bad332566a51241d45d513bfd189b42848ae8 (diff) | |
download | FreeBSD-ports-65ada439328cdfc32d84181dfdf38e00a8409e74.zip FreeBSD-ports-65ada439328cdfc32d84181dfdf38e00a8409e74.tar.gz |
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 <ehaupt@critical.ch>
PR: ports/81938
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/bsflite/Makefile | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/net-im/bsflite/Makefile b/net-im/bsflite/Makefile index 7b24e48..48a8eba 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 <bsd.port.pre.mk> + +.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 <bsd.port.mk> +.include <bsd.port.post.mk> |