summaryrefslogtreecommitdiff
path: root/net-im/bsflite
diff options
context:
space:
mode:
authorSimon Barner <barner@FreeBSD.org>2005-06-06 08:45:24 +0000
committerSimon Barner <barner@FreeBSD.org>2005-06-06 08:45:24 +0000
commit01b9f86459e5c72b6c07de497b92ef759cbe0562 (patch)
tree3172adfe5aae83609a3811c3f8a35257ad2445cc /net-im/bsflite
parentUpdate to 2.9008 (diff)
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
Notes
Notes: svn path=/head/; revision=136896
Diffstat (limited to 'net-im/bsflite')
-rw-r--r--net-im/bsflite/Makefile23
1 files changed, 22 insertions, 1 deletions
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 <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>