summaryrefslogtreecommitdiff
path: root/graphics/gts
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-09-27 15:20:06 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-09-27 15:20:06 +0000
commit8eceeba3805d2a2198d81faca5b2910b842f917e (patch)
tree26d34e5db50c27b388dfdcf22092fdac2b749e19 /graphics/gts
parent- Fix loadable module support (diff)
- Fix build on non-i386 platform
PR: 57285 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=89550
Diffstat (limited to 'graphics/gts')
-rw-r--r--graphics/gts/Makefile3
-rw-r--r--graphics/gts/files/patch-src::rounding.h16
2 files changed, 16 insertions, 3 deletions
diff --git a/graphics/gts/Makefile b/graphics/gts/Makefile
index dc9eaf0b1186..1045ed78a3d7 100644
--- a/graphics/gts/Makefile
+++ b/graphics/gts/Makefile
@@ -26,9 +26,6 @@ INSTALLS_SHLIB= yes
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
-# Supports only i386 FP operation
-ONLY_FOR_ARCHS= i386
-
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|-release \$$(LT_RELEASE)||g'
diff --git a/graphics/gts/files/patch-src::rounding.h b/graphics/gts/files/patch-src::rounding.h
new file mode 100644
index 000000000000..666d1c1354a5
--- /dev/null
+++ b/graphics/gts/files/patch-src::rounding.h
@@ -0,0 +1,16 @@
+--- src/rounding.h.orig Mon Jun 17 12:05:45 2002
++++ src/rounding.h Wed Sep 24 12:57:41 2003
+@@ -28,11 +28,11 @@
+ _FPU_SETCW(fpu_round_double); }
+ # define FPU_RESTORE {_FPU_SETCW(fpu_init);}
+ #else /* not HAVE_FPU_CONTROL_H */
+-# ifdef __FreeBSD__
++# ifdef HAVE_FROATINGPOINT_H
+ # include <floatingpoint.h>
+ # define FPU_ROUND_DOUBLE (fpsetprec(FP_PD))
+ # define FPU_RESTORE (fpsetprec(FP_PE))
+-# else /* not __FreeBSD__ */
++# else /* not HAVE_FROATINGPOINT_H */
+ # ifdef WIN32
+ # ifdef _MSC_VER
+ # include <float.h>