From 54468d5dfe373088db906e85946ce90eb58a7d7d Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sun, 14 Dec 2003 15:27:30 +0000 Subject: - Conditionalise dependency on compat libraries PR: ports/60231 Submitted by: Serge Negodyuck (maintainer) --- graphics/xnview/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'graphics/xnview') diff --git a/graphics/xnview/Makefile b/graphics/xnview/Makefile index dc9cbd566d28..dff20079bc45 100644 --- a/graphics/xnview/Makefile +++ b/graphics/xnview/Makefile @@ -15,14 +15,18 @@ EXTRACT_SUFX= .tgz MAINTAINER= petr@petrovich.kiev.ua COMMENT= An easy graphics viewer / converter -LIB_DEPENDS= c.4:${PORTSDIR}/misc/compat4x - ONLY_FOR_ARCHS= i386 NO_BUILD= yes USE_X_PREFIX= yes WRKSRC= ${WRKDIR}/XnView-1.50-x86-unknown-FreeBSD4.x-static INSTALL_SLIB= yes +.include + +.if ${OSVERSION} >= 500000 +LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/xnview ${PREFIX}/bin/xnview ${INSTALL_PROGRAM} ${WRKSRC}/bin/nview ${PREFIX}/bin/nv @@ -37,4 +41,4 @@ do-install: ${DOCSDIR} .endif -.include +.include -- cgit v1.2.3