summaryrefslogtreecommitdiff
path: root/graphics/opendx
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2001-10-12 10:40:13 +0000
committerThomas Gellekum <tg@FreeBSD.org>2001-10-12 10:40:13 +0000
commit4d3bc792096d7790906a4855170df006e1d99e88 (patch)
tree7686fa05de0856c241520b13ae81c4e9ef14ceee /graphics/opendx
parent- Detect needed libs on installed sendmail package (diff)
Fix core dump in dxexec. Bump PORTREVISION.
PR: 31141.
Notes
Notes: svn path=/head/; revision=48707
Diffstat (limited to 'graphics/opendx')
-rw-r--r--graphics/opendx/Makefile1
-rw-r--r--graphics/opendx/files/patch-src:exec:libdx:memory.c22
2 files changed, 23 insertions, 0 deletions
diff --git a/graphics/opendx/Makefile b/graphics/opendx/Makefile
index f5a5fc366e8f..d71649b3dd79 100644
--- a/graphics/opendx/Makefile
+++ b/graphics/opendx/Makefile
@@ -7,6 +7,7 @@
PORTNAME= opendx
PORTVERSION= 4.1.3
+PORTREVISION= 1
CATEGORIES= graphics math
MASTER_SITES= http://www.research.ibm.com/dx/srcDownload/srcArchive/ \
http://opendx.npaci.edu/source/
diff --git a/graphics/opendx/files/patch-src:exec:libdx:memory.c b/graphics/opendx/files/patch-src:exec:libdx:memory.c
new file mode 100644
index 000000000000..d231862856e5
--- /dev/null
+++ b/graphics/opendx/files/patch-src:exec:libdx:memory.c
@@ -0,0 +1,22 @@
+--- src/exec/libdx/memory.c.orig Mon May 21 07:06:59 2001
++++ src/exec/libdx/memory.c Thu Oct 11 10:15:47 2001
+@@ -1057,6 +1057,19 @@
+ #define LARGE(x) ((int)x>=(int)large)
+ #endif
+
++#ifdef freebsd
++#define initvalues
++#define SMALL_BASE 0 /* use data segment */
++#define SMALL_GET _dxfgetmem /* expand by using DosSetMem */
++#define LARGE_GET _dxfgetmem /* expand by using DosSetMem */
++#define LARGE_INIT 2 MEG /* doesn't matter; consistent w/ sgi */
++#define LARGE_INCR 2 MEG /* doesn't matter; consistent w/ sgi */
++#define SIZE_ROUND 2 MEG /* doesn't matter; consistent w/ sgi */
++#define MALLOC_NONE 1 /* provide malloc from global arena */
++#define SMALL(x) ((long)x<(long)large)
++#define LARGE(x) ((long)x>=(long)large)
++#endif
++
+ #ifdef cygwin
+ #define initvalues
+ #define SMALL_BASE 0 /* use data segment */