Fix build problem if converters/iconv is installed

PR:		33157
Submitted by:	maintainer
This commit is contained in:
Patrick Li 2002-02-24 17:34:22 +00:00
parent a35cebf9cf
commit 69f7440d60
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55191

View file

@ -7,6 +7,7 @@
PORTNAME= graphviz PORTNAME= graphviz
PORTVERSION= 1.7.7 PORTVERSION= 1.7.7
PORTREVISION= 1
CATEGORIES= graphics tk83 CATEGORIES= graphics tk83
MASTER_SITES= http://www.research.att.com/sw/tools/graphviz/dist/ MASTER_SITES= http://www.research.att.com/sw/tools/graphviz/dist/
EXTRACT_SUFX= .tgz EXTRACT_SUFX= .tgz
@ -38,6 +39,13 @@ MANN= gdtclft.n tcldgl.n tcldgr.n tcldot.n tkspline.n
PORTDOCS= dotguide.pdf dottyguide.pdf gd.html leftyguide.pdf \ PORTDOCS= dotguide.pdf dottyguide.pdf gd.html leftyguide.pdf \
neatoguide.pdf tcldot.html Dot.ref FAQ.html neatoguide.pdf tcldot.html Dot.ref FAQ.html
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/iconv.h) || defined(WITH_ICONV)
LIB_DEPENDS+= iconv.2:${PORTSDIR}/converters/iconv
CONFIGURE_ENV+= LIBS="-liconv"
.endif
post-extract: post-extract:
@${RM} ${WRKSRC}/cdt/ast_common.h @${RM} ${WRKSRC}/cdt/ast_common.h
@ -52,4 +60,4 @@ post-install:
.endfor .endfor
.endif .endif
.include <bsd.port.mk> .include <bsd.port.post.mk>