openbsd-ports/graphics/glut/patches/patch-lib_glut_Imakefile
espie 6074834e14 Fix shared library building
How could something so wrong get committed in the first place ???
2002-12-30 10:02:55 +00:00

40 lines
946 B
Plaintext

$OpenBSD: patch-lib_glut_Imakefile,v 1.2 2002/12/30 10:02:55 espie Exp $
--- lib/glut/Imakefile.orig Sat Aug 8 02:20:51 1998
+++ lib/glut/Imakefile Mon Dec 30 10:41:50 2002
@@ -2,10 +2,12 @@
/* Copyright (c) Mark J. Kilgard, 1994. */
#define DoNormalLib YES
+#define DoSharedLib YES
+#define DoExtraLib YES
+#define LibName glut
+#define SoRev SOGLUTREV
-#include <Library.tmpl>
-
-#include "../../Glut.cf"
+SOGLUTREV = 3.7
HDRS = \
glutint.h \
@@ -108,6 +110,10 @@ OBJS = \
glut_winmisc.o \
layerutil.o
+#include <Library.tmpl>
+
+#include "../../Glut.cf"
+
#ifdef LibraryObjectRule
LibraryObjectRule()
#else
@@ -115,8 +121,6 @@ LibraryObjectRule()
will probably do essentially what LibraryObjectRule does. */
NormalLibraryObjectRule()
#endif
-
-NormalLibraryTarget(glut,$(OBJS))
/* I've gotten too many complaints from people (mostly Linux users)
trying to build GLUT that have problems using lex and yacc to