Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 1996 13:59:33 +0300 (EET DST)
From:      Seppo Kallio <kallio@cc.jyu.fi>
To:        Marc van Kempen <marc@bowtie.nl>
Cc:        dwhite@resnet.uoregon.edu, ports@FreeBSD.org
Subject:   Tryed to port xwave-0.5alpha
Message-ID:  <Pine.SOL.3.92.961002135219.8007M-100000@kanto.cc.jyu.fi>
In-Reply-To: <199609270820.KAA12919@nietzsche.bowtie.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

1. I added -DFreeBSD and -Dlinux to the site.config
2. made these:

It compiles OK. It does not play the sounds out. Does not save correctly.

Made diff -p xxx xxx.orig

*** aifc.c      Wed Oct  2 13:37:11 1996
--- aifc.c.orig Wed Oct  2 12:34:11 1996
***************
*** 8,18 ****
  #include <sys/types.h>

  #ifdef linux
- #ifdef FreeBSD
- #include <machine/endian.h>
- #else
  #include <endian.h>
- #endif
  #endif

  #ifdef sgi
--- 8,14 ----
*** endian.h    Wed Oct  2 13:37:52 1996
--- endian.h.orig       Wed Oct  2 12:43:51 1996
***************
*** 1,8 ****

- #ifndef FreeBSD
  typedef unsigned int u_int32_t;
  typedef unsigned short u_int16_t;
- #endif

  /*
   * Little endian <==> big endian 32-bit swap macros.
--- 1,6 ----
*** riff.c      Wed Oct  2 13:38:49 1996
--- riff.c.orig Wed Oct  2 12:34:40 1996
***************
*** 32,42 ****
  #include <sys/types.h>

  #ifdef linux
- #ifdef FreeBSD
- #include <machine/endian.h>
- #else
  #include <endian.h>
- #endif
  #endif

  #ifdef sgi
--- 32,38 ----
*** au.c        Wed Oct  2 13:39:26 1996
--- au.c.orig   Wed Oct  2 12:34:18 1996
***************
*** 31,41 ****
  #include <sys/types.h>

  #ifdef linux
- #ifdef FreeBSD
- #include <machine/endian.h>
- #else
  #include <endian.h>
- #endif
  #endif

  #ifdef sgi
--- 31,37 ----
*** graphics.c  Wed Oct  2 13:32:12 1996
--- graphics.c.orig     Wed Oct  2 12:34:26 1996
***************
*** 28,41 ****
  #include <dirent.h>
  #include <math.h>

-
-
  #ifdef linux
- #ifdef FreeBSD
- #include <machine/endian.h>
- #else
  #include <endian.h>
- #endif
  #endif

  #ifdef sgi
--- 28,35 ----
*** types.h     Wed Oct  2 13:35:35 1996
--- types.h.orig        Wed Oct  2 12:36:56 1996
***************
*** 25,32 ****
  typedef unsigned char byte;
  typedef byte bool;

- typedef unsigned long ulong;
-
  typedef struct Wave_Datas {
     char        *name;            /* name of loaded file */
     char  *actual_name;     /* changed file on HDD */
--- 25,30 ----
*** audio.c     Wed Oct  2 13:36:28 1996
--- audio.c.orig        Wed Oct  2 12:33:07 1996
***************
*** 34,44 ****
  #include <X11/Intrinsic.h>

  #ifdef linux
- #ifdef FreeBSD
- #include <machine/soundcard.h>
- #else
  #include <linux/soundcard.h>
- #endif
  #endif

  #ifdef sgi
--- 34,40 ----

Seppo Kallio			kallio@jyu.fi
Computing Center		Fax +358-14-603611
U of Jyväskylä	62.14N 25.44    Phone (jyu)553606, 050 5524968 (GSM)
PL 35, 40351 Jyväskylä, Finland	http://www.jyu.fi/~kallio




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.92.961002135219.8007M-100000>