diff options
author | jmc <jmc@pkgsrc.org> | 2003-03-30 08:54:39 +0000 |
---|---|---|
committer | jmc <jmc@pkgsrc.org> | 2003-03-30 08:54:39 +0000 |
commit | 74c2eb723e602f8e9f95ca8673e000300cfd41d0 (patch) | |
tree | 40430cd7f2461cba8ffcefa9e8bc4fd7cf0b1456 /graphics/glut | |
parent | 955c2e036d2e709741014c6c7c619198e5b8f3df (diff) | |
download | pkgsrc-74c2eb723e602f8e9f95ca8673e000300cfd41d0.tar.gz |
Test Mesa version and set shared library version in PLIST accordingly
Diffstat (limited to 'graphics/glut')
-rw-r--r-- | graphics/glut/Makefile | 15 | ||||
-rw-r--r-- | graphics/glut/PLIST | 6 |
2 files changed, 17 insertions, 4 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} diff --git a/graphics/glut/PLIST b/graphics/glut/PLIST index 6718d295695..c662626ac24 100644 --- a/graphics/glut/PLIST +++ b/graphics/glut/PLIST @@ -1,9 +1,9 @@ -@comment $NetBSD: PLIST,v 1.6 2003/03/09 19:04:54 jschauma Exp $ +@comment $NetBSD: PLIST,v 1.7 2003/03/30 08:54:39 jmc Exp $ include/GL/glut.h include/GL/glutf90.h lib/libglut.so -lib/libglut.so.10 -lib/libglut.so.10.1 +lib/libglut.so.${SO_SUFFIX} +lib/libglut.so.${SO_VERS} lib/libglut.a lib/libglut.la @unexec ${RMDIR} %D/include/GL >/dev/null 2>&1 || ${TRUE} |