diff options
author | jmc <jmc> | 2003-03-30 08:54:39 +0000 |
---|---|---|
committer | jmc <jmc> | 2003-03-30 08:54:39 +0000 |
commit | 7e4fbc7593b59e87c4037a341143bedd81b15ed9 (patch) | |
tree | 40430cd7f2461cba8ffcefa9e8bc4fd7cf0b1456 /graphics/glut/Makefile | |
parent | abd6e7853d8e72d93b4fe8abe913af979b696a45 (diff) | |
download | pkgsrc-7e4fbc7593b59e87c4037a341143bedd81b15ed9.tar.gz |
Test Mesa version and set shared library version in PLIST accordingly
Diffstat (limited to 'graphics/glut/Makefile')
-rw-r--r-- | graphics/glut/Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/graphics/glut/Makefile b/graphics/glut/Makefile index 54f25d3885c..fea1f694986 100644 --- a/graphics/glut/Makefile +++ b/graphics/glut/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2003/03/09 19:04:54 jschauma Exp $ +# $NetBSD: Makefile,v 1.16 2003/03/30 08:54:39 jmc Exp $ PKGNAME= ${DISTNAME:S/MesaLib/glut/} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} @@ -28,6 +28,19 @@ post-install: .include "../../graphics/MesaLib/buildlink2.mk" .include "../../mk/bsd.pkg.mk" +.if (${MESA_REQD} == 3.4.2) +SO_SUFFIX=3 +SO_VERS=3.7 +.elif (${MESA_REQD} == 5.0) +SO_SUFFIX=10 +SO_VERS=10.1 +.else +.error Library version not known! +.endif + +PLIST_SUBST+=SO_SUFFIX=${SO_SUFFIX} +PLIST_SUBST+=SO_VERS=${SO_VERS} + # must be below bsd.pkg.mk to overwrite values PREFIX= ${LOCALBASE} X11PREFIX= ${LOCALBASE} |