From ccabe57855c893121d5a530c0aa761c3f9f38824 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= <des@FreeBSD.org>
Date: Thu, 28 Nov 2002 12:12:39 +0000
Subject: Unbreak 4.x by making the compat4x dependency conditional on
 OSVERSION.

Submitted by:	edwin
Approved by:	portmgr (kris)
---
 www/opera/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'www/opera')

diff --git a/www/opera/Makefile b/www/opera/Makefile
index 2c1f71ca9ac6..737daad827d2 100644
--- a/www/opera/Makefile
+++ b/www/opera/Makefile
@@ -15,7 +15,6 @@ DISTNAME=	${PORTNAME}-${PORTVERSION:S/10./10-/}.1-static-qt.i386.freebsd
 MAINTAINER=	des@FreeBSD.org
 
 LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
-LIB_DEPENDS=	c_r.4:${PORTSDIR}/misc/compat4x
 
 USE_BZIP2=	yes
 ONLY_FOR_ARCHS=	i386
@@ -27,4 +26,10 @@ NO_FILTER_SHLIBS=yes
 do-install:
 	(cd ${WRKSRC} && ${SH} install.sh --prefix="${PREFIX}")
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500000
+LIB_DEPENDS+=	c_r.4:${PORTSDIR}/misc/compat4x
+.endif
+
+.include <bsd.port.post.mk>
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0