- Depend on readline port if library exists

program will link it rather than a system one

PR:		ports/101437
Submitted by:	Stanislav Sedov <ssedov at mbsd.msk.ru>
This commit is contained in:
Rong-En Fan 2006-08-06 05:38:13 +00:00
parent 182ebbde04
commit d3e4204077
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=169795

View file

@ -7,7 +7,7 @@
PORTNAME= ecasound
PORTVERSION= 2.4.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://ecasound.seul.org/download/
@ -16,7 +16,7 @@ COMMENT= Multitrack audio processing software
USE_GNOME= gnometarget
USE_GMAKE= yes
GNU_CONFIGURE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --disable-pyecasound --disable-rubyecasound --with-largefile \
--enable-sys-readline
@ -32,8 +32,11 @@ LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
.if ${OSVERSION} < 500000 || exists(${LOCALBASE}/lib/libreadline.so.5)
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
.endif
.if ${OSVERSION} < 500000
CFLAGS+= -fpermissive
.endif