Browse Source

* Fixed breaking of Freebsd. Still requires copying linux to freebsd dir.

marco 24 years ago
parent
commit
25f6cffe53

+ 5 - 1
packages/opengl/Makefile

@@ -1,5 +1,5 @@
 #
-# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/06]
+# Don't edit, this file is generated by fpcmake v1.99.0 [2001/06/19]
 #
 default: all
 override PATH:=$(subst \,/,$(PATH))
@@ -126,6 +126,9 @@ endif
 ifeq ($(OS_TARGET),win32)
 override TARGET_UNITS+=glaux gl_sl glut_sl glaux_sl
 endif
+ifeq ($(OS_TARGET),freebsd)
+override TARGET_UNITS+=glx
+endif
 override TARGET_EXAMPLEDIRS+=examples
 override INSTALL_FPCPACKAGE=y
 override COMPILER_SOURCEDIR+=$(OS_TARGET)
@@ -525,6 +528,7 @@ REQUIRE_PACKAGES_RTL=1
 endif
 ifeq ($(OS_TARGET),freebsd)
 REQUIRE_PACKAGES_RTL=1
+REQUIRE_PACKAGES_X11=1
 endif
 ifeq ($(OS_TARGET),beos)
 REQUIRE_PACKAGES_RTL=1

+ 2 - 0
packages/opengl/Makefile.fpc

@@ -8,12 +8,14 @@ version=1.0.5
 
 [require]
 packages_linux=x11
+packages_freebsd=x11
 libc=y
 
 [target]
 units=gl glut
 units_win32=glaux gl_sl glut_sl glaux_sl
 units_linux=glx
+units_freebsd=glx
 exampledirs=examples
 
 [compiler]

+ 9 - 3
packages/opengl/linux/gl.pp

@@ -43,7 +43,7 @@ interface
 
 {$MACRO ON}
 
-{$IFDEF Linux}
+{$IFDEF Unix}
   {$LINKLIB c}
 {$ELSE}
   {$MESSAGE Unsupported platform.}
@@ -2039,7 +2039,10 @@ finalization
 end.
 {
   $Log$
-  Revision 1.5  2000-10-01 22:17:58  peter
+  Revision 1.6  2001-06-20 13:59:20  marco
+   * Fixed breaking of Freebsd. Still requires copying linux to freebsd dir.
+
+  Revision 1.5  2000/10/01 22:17:58  peter
     * new bounce demo
 
   Revision 1.4.2.1  2000/10/01 22:12:27  peter
@@ -2056,7 +2059,10 @@ end.
 
 {
   $Log$
-  Revision 1.5  2000-10-01 22:17:58  peter
+  Revision 1.6  2001-06-20 13:59:20  marco
+   * Fixed breaking of Freebsd. Still requires copying linux to freebsd dir.
+
+  Revision 1.5  2000/10/01 22:17:58  peter
     * new bounce demo
 
   Revision 1.4.2.1  2000/10/01 22:12:27  peter

+ 9 - 3
packages/opengl/linux/glu.pp

@@ -36,7 +36,7 @@ interface
 
 {$MACRO ON}
 
-{$IFDEF Linux}
+{$IFDEF Unix}
   uses GL;
 {$ELSE}
   {$MESSAGE Unsupported platform.}
@@ -359,7 +359,10 @@ end.
 
 {
   $Log$
-  Revision 1.2  2000-10-01 22:17:59  peter
+  Revision 1.3  2001-06-20 13:59:20  marco
+   * Fixed breaking of Freebsd. Still requires copying linux to freebsd dir.
+
+  Revision 1.2  2000/10/01 22:17:59  peter
     * new bounce demo
 
   Revision 1.1.2.1  2000/10/01 22:12:28  peter
@@ -376,7 +379,10 @@ end.
 
 {
   $Log$
-  Revision 1.2  2000-10-01 22:17:59  peter
+  Revision 1.3  2001-06-20 13:59:20  marco
+   * Fixed breaking of Freebsd. Still requires copying linux to freebsd dir.
+
+  Revision 1.2  2000/10/01 22:17:59  peter
     * new bounce demo
 
   Revision 1.1.2.1  2000/10/01 22:12:28  peter

+ 5 - 2
packages/opengl/linux/glut.pp

@@ -32,7 +32,7 @@ interface
 
 {$MACRO ON}
 
-{$IFDEF Linux}
+{$IFDEF Unix}
   {$DEFINE gldecl := cdecl;}
   {$DEFINE extdecl := cdecl;}
   uses GL;
@@ -451,7 +451,10 @@ end.
 
 {
   $Log$
-  Revision 1.5  2000-10-01 22:17:59  peter
+  Revision 1.6  2001-06-20 13:59:20  marco
+   * Fixed breaking of Freebsd. Still requires copying linux to freebsd dir.
+
+  Revision 1.5  2000/10/01 22:17:59  peter
     * new bounce demo
 
   Revision 1.4.2.1  2000/10/01 22:12:28  peter

+ 9 - 3
packages/opengl/linux/glx.pp

@@ -36,7 +36,7 @@ interface
 
 {$MACRO ON}
 
-{$IFDEF Linux}
+{$IFDEF Unix}
   uses
     X, XLib, XUtil;
   {$DEFINE HasGLX}  // Activate GLX stuff
@@ -246,7 +246,10 @@ end.
 
 {
   $Log$
-  Revision 1.2  2000-10-01 22:17:59  peter
+  Revision 1.3  2001-06-20 13:59:20  marco
+   * Fixed breaking of Freebsd. Still requires copying linux to freebsd dir.
+
+  Revision 1.2  2000/10/01 22:17:59  peter
     * new bounce demo
 
   Revision 1.1.2.1  2000/10/01 22:12:28  peter
@@ -263,7 +266,10 @@ end.
 
 {
   $Log$
-  Revision 1.2  2000-10-01 22:17:59  peter
+  Revision 1.3  2001-06-20 13:59:20  marco
+   * Fixed breaking of Freebsd. Still requires copying linux to freebsd dir.
+
+  Revision 1.2  2000/10/01 22:17:59  peter
     * new bounce demo
 
   Revision 1.1.2.1  2000/10/01 22:12:28  peter