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
This commit is contained in:
Simon Barner 2005-06-06 08:45:24 +00:00
parent 2895a64581
commit 01b9f86459
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136896
2 changed files with 44 additions and 2 deletions

View File

@ -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>

View File

@ -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>