If inews exists in ${PREFIX}/bin/, then use that instead of using

the copy of inews that inn installs in ${PREFIX}/news/lib/inews.  The
cnews port likes to put inews in ${PREFIX}/bin/.

Explanation: The uudeview port generally doesn't use inews, but it has
             the ability to post items directly to news if the user
             requests it.  The default inews location is hardcoded at
             compile time.  This port does not DEPEND on any particular
             news software.

Requested by:	Daeron <daeron -a-t- optushome com au>
This commit is contained in:
Tim Vanderhoek 2004-03-25 04:13:31 +00:00
parent f9937a26c0
commit 44129e3861
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105184

View file

@ -17,8 +17,18 @@ LIB_DEPENDS= uu.3:${PORTSDIR}/converters/uulib
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-inews=${PREFIX}/news/lib/inews \
--disable-tcl
CONFIGURE_ARGS= --disable-tcl
.include <bsd.port.pre.mk>
# Try and catch some of the different places that inn and cnews put inews
.if exists(${PREFIX}/bin/inews)
# cnews
CONFIGURE_ARGS+= --enable-inews=${PREFIX}/bin/inews
.else
# inn by default
CONFIGURE_ARGS+= --enable-inews=${PREFIX}/news/lib/inews
.endif
MAN1= uudeview.1 uuenview.1
@ -34,4 +44,4 @@ post-install:
@${ECHO_MSG} "===> Not installing available documents"
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>