aboutsummaryrefslogtreecommitdiffstats
path: root/editors/openoffice-2.0-devel
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2002-05-19 21:02:37 +0800
committermbr <mbr@FreeBSD.org>2002-05-19 21:02:37 +0800
commit12247e8bbabfb86dde5e72d4f2643dde35b6fe68 (patch)
tree9f3b85ff8c4cd88e6dcaf7c20d7a2afef59de5ae /editors/openoffice-2.0-devel
parentf96d94ad2ff072a911e0f47f5c293857828f27d0 (diff)
downloadfreebsd-ports-gnome-12247e8bbabfb86dde5e72d4f2643dde35b6fe68.tar.gz
freebsd-ports-gnome-12247e8bbabfb86dde5e72d4f2643dde35b6fe68.tar.zst
freebsd-ports-gnome-12247e8bbabfb86dde5e72d4f2643dde35b6fe68.zip
Add BSD specific nas patches to get it really working. NetBSD should
do the same.
Diffstat (limited to 'editors/openoffice-2.0-devel')
-rw-r--r--editors/openoffice-2.0-devel/files/patch-nas+nas-1.4.1.patch158
1 files changed, 152 insertions, 6 deletions
diff --git a/editors/openoffice-2.0-devel/files/patch-nas+nas-1.4.1.patch b/editors/openoffice-2.0-devel/files/patch-nas+nas-1.4.1.patch
index 6f2635c639f7..3babf927e982 100644
--- a/editors/openoffice-2.0-devel/files/patch-nas+nas-1.4.1.patch
+++ b/editors/openoffice-2.0-devel/files/patch-nas+nas-1.4.1.patch
@@ -1,9 +1,32 @@
---- ../nas/nas-1.4.1.patch.orig Wed Mar 6 02:24:32 2002
-+++ ../nas/nas-1.4.1.patch Wed Mar 6 02:27:00 2002
-@@ -143,3 +143,14 @@
- InstallMultiple($(HEADERS),$(INCDIR))
- #if ProjectX >= 5
- InstallNonExecFile(AuErrorDB,$(LIBDIR))
+--- ../nas/nas-1.4.1.patch.orig Thu Nov 1 17:27:31 2001
++++ ../nas/nas-1.4.1.patch Sun May 19 14:58:01 2002
+@@ -120,26 +120,137 @@
+ return(-1);
+ }
+
+-*** misc/nas-1.4.1/lib/audio/Imakefile Sat Jan 1 10:28:13 2000
+---- misc/build/nas-1.4.1/lib/audio/Imakefile Thu Nov 1 13:12:56 2001
+-***************
+-*** 25,30 ****
+---- 25,32 ----
+-
+- #include "../../config/NetAudio.tmpl"
+-
+-+ CCOPTIONS += $(EXTRA_CCOPTIONS)
+-+
+- #if ProjectX < 5
+- /* Pre-X11R5 compatability */
+- #ifndef NormalLibX
+-***************
+-*** 119,124 ****
+---- 121,127 ----
+-
+- #endif
+- BuildIncludes($(HEADERS),audio,..)
+-+ BuildIncludes($(HEADERS),audio,$(BUILDINCTOP:../..=.))
+- InstallMultiple($(HEADERS),$(INCDIR))
+- #if ProjectX >= 5
+- InstallNonExecFile(AuErrorDB,$(LIBDIR))
+--- misc/nas-1.4.1/Imakefile.orig Wed Mar 6 02:20:01 2002
++++ misc/build/nas-1.4.1/Imakefile Wed Mar 6 02:20:07 2002
+@@ -42,6 +42,8 @@
@@ -15,3 +38,126 @@
+ $(MAKE) $(MFLAGS) Makefiles
+ $(MAKE) $(MFLAGS) clean
+ $(MAKE) $(MFLAGS) includes
++--- misc/nas-1.4.1/clients/audio/audial/audial.c.orig Wed Nov 5 18:50:21 1997
+++++ misc/build/nas-1.4.1/clients/audio/audial/audial.c Wed Nov 5 18:56:33 1997
++@@ -133,6 +133,7 @@
++ signal(SIGALRM, SIG_DFL);
++ }
++
+++#if !defined(__FreeBSD__) || (__FreeBSD__ < 3)
++ static void
++ usleep(usecs)
++ unsigned int usecs;
++@@ -149,7 +150,7 @@
++ setitimer(ITIMER_REAL, &ntval, &otval);
++ pause();
++ }
++-
+++#endif
++ #endif /* SYSV else not */
++ #endif /* VMS else not */
++ #endif /* NEEDUSLEEP */
++--- misc/nas-1.4.1/server/dda/voxware/auvoxware.c.orig Sun Mar 5 03:40:55 2000
+++++ misc/build/nas-1.4.1/server/dda/voxware/auvoxware.c Sat Dec 16 22:11:35 2000
++@@ -156,7 +156,9 @@
++
++ #ifdef __FreeBSD__
++ # include <machine/soundcard.h>
++-# include <machine/pcaudioio.h>
+++# ifdef __i386__
+++# include <machine/pcaudioio.h>
+++# endif
++ #else
++ # ifdef __NetBSD__
++ # include <sys/ioctl.h>
++@@ -610,7 +612,11 @@
++
++ if(sndStatOut.fd == -1)
++ {
+++#ifdef __FreeBSD__
+++ while ((sndStatOut.fd = open(sndStatOut.device, O_RDWR)) == -1 && wait)
+++#else
++ while ((sndStatOut.fd = open(sndStatOut.device, O_RDWR|O_SYNC)) == -1 && wait)
+++#endif
++ {
++ osLogMsg("openDevice: waiting on output device\n");
++ sleep(1);
++@@ -1230,6 +1236,11 @@
++ /*
++ * Setup soundcard at maximum audio quality.
++ */
+++
+++#ifdef __FreeBSD__
+++#define NO_16_BIT_SAMPLING
+++#endif
+++
++ static void setupSoundcard(sndStatPtr)
++ SndStat* sndStatPtr;
++ {
++@@ -1380,7 +1391,11 @@
++
++ AL_initialized = AuTrue;
++
+++#ifdef __FreeBSD__
+++ if ((fd = open(sndStatOut.device, O_RDWR, 0)) == -1) {
+++#else
++ if ((fd = open(sndStatOut.device, O_RDWR|O_SYNC, 0)) == -1) {
+++#endif
++ UNIDENTMSG;
++ return AuFalse;
++ }
++--- misc/nas-1.4.1/clients/audio/auedit/Graph.c.orig Mon Oct 25 02:24:08 1999
+++++ misc/build/nas-1.4.1/clients/audio/auedit/Graph.c Sat Mar 25 14:56:23 2000
++@@ -28,7 +28,7 @@
++ */
++
++ #ifndef WIN32
++-# ifdef __NetBSD__
+++# if defined(__NetBSD__) || defined(__FreeBSD__)
++ # include <limits.h>
++ # define MAXSHORT SHRT_MAX
++ # define MINSHORT SHRT_MIN
++--- misc/nas-1.4.1/lib/audio/Imakefile.orig Sun May 19 14:52:20 2002
+++++ misc/build/nas-1.4.1/lib/audio/Imakefile Sun May 19 14:54:25 2002
++@@ -25,6 +25,8 @@
++
++ #include "../../config/NetAudio.tmpl"
++
+++CCOPTIONS += $(EXTRA_CCOPTIONS)
+++
++ #if ProjectX < 5
++ /* Pre-X11R5 compatability */
++ #ifndef NormalLibX
++@@ -64,10 +66,14 @@
++ COMPAT_OBJS = AuGetBest.o
++ #endif /* ProjectX < 5 */
++
+++#if HasBSD44Sockets
+++ SOCK_DEFINES = -DBSD44SOCKETS
+++#endif
+++
++ EDB_DEFINES = -DERRORDB=\"$(LIBDIR)/AuErrorDB\"
++
++ DEFINES = $(MALLOC_DEFINES) $(SYSV_DEFINES)
++- CONN_DEFINES = ConnectionFlags
+++ CONN_DEFINES = ConnectionFlags $(SOCK_DEFINES)
++
++ HEADERS = Alibint.h Alibnet.h Xtutil.h audiolib.h audioutil.h snd.h wave.h \
++ voc.h aiff.h sound.h soundlib.h fileutil.h 8svx.h Astreams.h \
++@@ -119,6 +125,7 @@
++
++ #endif
++ BuildIncludes($(HEADERS),audio,..)
+++BuildIncludes($(HEADERS),audio,$(BUILDINCTOP:../..=.))
++ InstallMultiple($(HEADERS),$(INCDIR))
++ #if ProjectX >= 5
++ InstallNonExecFile(AuErrorDB,$(LIBDIR))
++--- misc/nas-1.4.1/config/NetAudio.def.orig Sun Feb 13 05:31:14 2000
+++++ misc/build/nas-1.4.1/config/NetAudio.def Fri Mar 24 04:55:49 2000
++@@ -8,5 +8,5 @@
++
++ XCOMM Directory where NAS will look for it's config file(s)
++ #ifndef NasConfigSearchPath
++-#define NasConfigSearchPath /etc/nas/
+++#define NasConfigSearchPath $(PROJECTROOT)/etc/
++ #endif