diff options
author | ed <ed@FreeBSD.org> | 2010-03-10 02:42:11 +0800 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-03-10 02:42:11 +0800 |
commit | 3afbdfb726acb0ff33723c41b667125c1c423ec4 (patch) | |
tree | d7300bc31ba7376510e556f404bc1e537029a343 /graphics | |
parent | 01316df60b1ef3ce9f52e29e021a1063b3c703e8 (diff) | |
download | freebsd-ports-graphics-3afbdfb726acb0ff33723c41b667125c1c423ec4.tar.gz freebsd-ports-graphics-3afbdfb726acb0ff33723c41b667125c1c423ec4.tar.zst freebsd-ports-graphics-3afbdfb726acb0ff33723c41b667125c1c423ec4.zip |
Don't depend on libcompat.
The code can be built to use gettimeofday() instead of ftime().
Approved by: erwin (portmgr, implicit)
Diffstat (limited to 'graphics')
5 files changed, 24 insertions, 4 deletions
diff --git a/graphics/wildmagic/files/patch-LibFoundation_System_Wm4System.cpp b/graphics/wildmagic/files/patch-LibFoundation_System_Wm4System.cpp new file mode 100644 index 00000000000..b13a901bf24 --- /dev/null +++ b/graphics/wildmagic/files/patch-LibFoundation_System_Wm4System.cpp @@ -0,0 +1,20 @@ +--- LibFoundation/System/Wm4System.cpp ++++ LibFoundation/System/Wm4System.cpp +@@ -21,7 +21,7 @@ + #include <sys/stat.h> + + // support for GetTime +-#ifdef __APPLE__ ++#if defined(__APPLE__) || defined(__FreeBSD__) + #include <sys/time.h> + static timeval gs_kInitial; + static bool gs_bInitializedTime = false; +@@ -102,7 +102,7 @@ + //---------------------------------------------------------------------------- + double System::GetTime () + { +-#ifdef __APPLE__ ++#if defined(__APPLE__) || defined(__FreeBSD__) + if (!gs_bInitializedTime) + { + gs_bInitializedTime = true; diff --git a/graphics/wildmagic/files/patch-SampleFoundation_makeapp.wm4 b/graphics/wildmagic/files/patch-SampleFoundation_makeapp.wm4 index 7ebe32cf854..20b227bbae1 100644 --- a/graphics/wildmagic/files/patch-SampleFoundation_makeapp.wm4 +++ b/graphics/wildmagic/files/patch-SampleFoundation_makeapp.wm4 @@ -5,7 +5,7 @@ CORELIBS := -lWm4$(GRF)Application -lWm4$(GRF)Renderer -lWm4Graphics \ -lWm4Foundation - -+LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lcompat -lm ++LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lm + ifeq (Soft,$(findstring Soft,$(GRF))) CFLAGS += -DWM4_HAS_SOFT_SHADER diff --git a/graphics/wildmagic/files/patch-SampleGraphics_makeapp.wm4 b/graphics/wildmagic/files/patch-SampleGraphics_makeapp.wm4 index 498ddcaceaa..e613b0bfd33 100644 --- a/graphics/wildmagic/files/patch-SampleGraphics_makeapp.wm4 +++ b/graphics/wildmagic/files/patch-SampleGraphics_makeapp.wm4 @@ -5,7 +5,7 @@ CORELIBS := -lWm4$(GRF)Application -lWm4$(GRF)Renderer -lWm4Graphics \ -lWm4Foundation - -+LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lcompat -lm ++LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lm + ifeq (Soft,$(findstring Soft,$(GRF))) CFLAGS += -DWM4_HAS_SOFT_SHADER diff --git a/graphics/wildmagic/files/patch-SampleImagics_makeapp.wm4 b/graphics/wildmagic/files/patch-SampleImagics_makeapp.wm4 index 3a815d2e0f1..ef260a47742 100644 --- a/graphics/wildmagic/files/patch-SampleImagics_makeapp.wm4 +++ b/graphics/wildmagic/files/patch-SampleImagics_makeapp.wm4 @@ -5,7 +5,7 @@ CORELIBS := -lWm4$(GRF)Application -lWm4$(GRF)Renderer -lWm4Graphics \ -lWm4Imagics -lWm4Foundation - -+LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lcompat -lm ++LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lm + ifeq (Soft,$(findstring Soft,$(GRF))) CFLAGS += -DWM4_HAS_SOFT_SHADER diff --git a/graphics/wildmagic/files/patch-SamplePhysics_makeapp.wm4 b/graphics/wildmagic/files/patch-SamplePhysics_makeapp.wm4 index 75d046337fd..d44dbd099f1 100644 --- a/graphics/wildmagic/files/patch-SamplePhysics_makeapp.wm4 +++ b/graphics/wildmagic/files/patch-SamplePhysics_makeapp.wm4 @@ -5,7 +5,7 @@ CORELIBS := -lWm4$(GRF)Application -lWm4$(GRF)Renderer -lWm4Graphics \ -lWm4Imagics -lWm4Physics -lWm4Foundation - -+LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lcompat -lm ++LIBS := $(CORELIBS) $(XLIBS) $(GLIBS) -lm + ifeq (Soft,$(findstring Soft,$(GRF))) CFLAGS += -DWM4_HAS_SOFT_SHADER |