mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
Update to 1.1.5
This commit is contained in:
parent
7d7bb35c6b
commit
377f67f9c1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=54978
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= kxl
|
||||
PORTVERSION= 0.5.6
|
||||
PORTVERSION= 1.1.5
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://www2.mwnet.or.jp/~fc3srx7/download/
|
||||
DISTNAME= KXL-${PORTVERSION}
|
||||
|
@ -1 +1 @@
|
||||
MD5 (KXL-0.5.6.tar.gz) = 7868cf8e6c342da9cac03a0f5d933598
|
||||
MD5 (KXL-1.1.5.tar.gz) = cc353e6e3db4f6ff72019766250ff04d
|
||||
|
@ -1,64 +1,59 @@
|
||||
--- src/KXLsound.c.orig Thu May 17 18:08:13 2001
|
||||
+++ src/KXLsound.c Sat Jun 16 19:31:43 2001
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
-#include <linux/soundcard.h>
|
||||
#include "KXL.h"
|
||||
|
||||
#define MIN(a, b) ((a<b) ? a : b)
|
||||
@@ -45,12 +44,14 @@
|
||||
******************************************/
|
||||
void KXL_SoundServer(void)
|
||||
{
|
||||
--- src/KXLsound.c.orig Wed Feb 20 21:42:17 2002
|
||||
+++ src/KXLsound.c Wed Feb 20 21:44:49 2002
|
||||
@@ -3,7 +3,9 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
+#ifndef __FreeBSD__
|
||||
Uint16 i;
|
||||
KXL_SoundControl Command;
|
||||
fd_set sound_fdset;
|
||||
|
||||
if (KXL_SoundOk == False)
|
||||
return;
|
||||
+
|
||||
|
||||
close(KXL_SoundData.Pipe[1]);
|
||||
for (i = 0; i < MAX_SOUNDS_PLAYING; i ++)
|
||||
@@ -166,6 +167,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
#include <linux/soundcard.h>
|
||||
+#endif
|
||||
}
|
||||
|
||||
/******************************************
|
||||
@@ -245,6 +247,7 @@
|
||||
******************************************/
|
||||
void KXL_InitSound(Uint8 *path, Uint8 **fname)
|
||||
{
|
||||
#include "KXL.h"
|
||||
|
||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
@@ -45,6 +47,7 @@
|
||||
//==============================================================
|
||||
void KXL_SoundServer(void)
|
||||
{
|
||||
+#ifndef __FreeBSD__
|
||||
KXL_SoundOk = False;
|
||||
KXL_LoadSoundData(path, fname);
|
||||
if (pipe(KXL_SoundData.Pipe) < 0) {
|
||||
@@ -264,6 +267,7 @@
|
||||
}
|
||||
if (KXL_SoundOk == False)
|
||||
fprintf(stderr, "KXL_InitSoundServer : no sounds\n");
|
||||
Uint16 i;
|
||||
KXL_SoundControl Command;
|
||||
fd_set sound_fdset;
|
||||
@@ -163,6 +166,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
/******************************************
|
||||
@@ -271,6 +275,7 @@
|
||||
******************************************/
|
||||
void KXL_EndSound(void)
|
||||
{
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
@@ -238,6 +242,7 @@
|
||||
//==============================================================
|
||||
void KXL_InitSound(Uint8 *path, Uint8 **fname)
|
||||
{
|
||||
+#ifndef __FreeBSD__
|
||||
if (KXL_SoundOk == False)
|
||||
return;
|
||||
KXL_PlaySound(0, KXL_SOUND_STOP_ALL);
|
||||
@@ -278,5 +283,6 @@
|
||||
KXL_Free(KXL_wavelist[-- KXL_SoundData.ListCnt]);
|
||||
KXL_Free(KXL_wavelist);
|
||||
kill(KXL_SoundData.ID, SIGTERM);
|
||||
KXL_SoundOk = False;
|
||||
|
||||
KXL_LoadSoundData(path, fname);
|
||||
@@ -265,6 +270,7 @@
|
||||
close(KXL_SoundData.Pipe[0]);
|
||||
KXL_SoundOk = True;
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
@@ -272,6 +278,7 @@
|
||||
//==============================================================
|
||||
void KXL_EndSound(void)
|
||||
{
|
||||
+#ifndef __FreeBSD__
|
||||
while (KXL_SoundData.ListCnt)
|
||||
KXL_Free(KXL_wavelist[-- KXL_SoundData.ListCnt].Data);
|
||||
KXL_Free(KXL_wavelist);
|
||||
@@ -281,5 +288,6 @@
|
||||
KXL_PlaySound(0, KXL_SOUND_STOP_ALL);
|
||||
kill(KXL_SoundData.ID, SIGTERM);
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
|
11
devel/kxl/files/patch-ab
Normal file
11
devel/kxl/files/patch-ab
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/KXLmisc.c.orig Wed Feb 20 21:52:35 2002
|
||||
+++ src/KXLmisc.c Wed Feb 20 21:53:17 2002
|
||||
@@ -1,6 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#if __FreeBSD__ >= 5
|
||||
#include <malloc.h>
|
||||
+#endif
|
||||
#include <signal.h>
|
||||
#include <sys/time.h>
|
||||
#include "KXL.h"
|
@ -1,6 +1,6 @@
|
||||
include/KXL.h
|
||||
lib/libKXL-0.5.6.so
|
||||
lib/libKXL.a
|
||||
lib/libKXL-1.1.5.so
|
||||
lib/libKXL.so
|
||||
lib/libKXL.a
|
||||
lib/libKXL.la
|
||||
share/aclocal/KXL.m4
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= kxl
|
||||
PORTVERSION= 0.5.6
|
||||
PORTVERSION= 1.1.5
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://www2.mwnet.or.jp/~fc3srx7/download/
|
||||
DISTNAME= KXL-${PORTVERSION}
|
||||
|
@ -1 +1 @@
|
||||
MD5 (KXL-0.5.6.tar.gz) = 7868cf8e6c342da9cac03a0f5d933598
|
||||
MD5 (KXL-1.1.5.tar.gz) = cc353e6e3db4f6ff72019766250ff04d
|
||||
|
@ -1,64 +1,59 @@
|
||||
--- src/KXLsound.c.orig Thu May 17 18:08:13 2001
|
||||
+++ src/KXLsound.c Sat Jun 16 19:31:43 2001
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
-#include <linux/soundcard.h>
|
||||
#include "KXL.h"
|
||||
|
||||
#define MIN(a, b) ((a<b) ? a : b)
|
||||
@@ -45,12 +44,14 @@
|
||||
******************************************/
|
||||
void KXL_SoundServer(void)
|
||||
{
|
||||
--- src/KXLsound.c.orig Wed Feb 20 21:42:17 2002
|
||||
+++ src/KXLsound.c Wed Feb 20 21:44:49 2002
|
||||
@@ -3,7 +3,9 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
+#ifndef __FreeBSD__
|
||||
Uint16 i;
|
||||
KXL_SoundControl Command;
|
||||
fd_set sound_fdset;
|
||||
|
||||
if (KXL_SoundOk == False)
|
||||
return;
|
||||
+
|
||||
|
||||
close(KXL_SoundData.Pipe[1]);
|
||||
for (i = 0; i < MAX_SOUNDS_PLAYING; i ++)
|
||||
@@ -166,6 +167,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
#include <linux/soundcard.h>
|
||||
+#endif
|
||||
}
|
||||
|
||||
/******************************************
|
||||
@@ -245,6 +247,7 @@
|
||||
******************************************/
|
||||
void KXL_InitSound(Uint8 *path, Uint8 **fname)
|
||||
{
|
||||
#include "KXL.h"
|
||||
|
||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
@@ -45,6 +47,7 @@
|
||||
//==============================================================
|
||||
void KXL_SoundServer(void)
|
||||
{
|
||||
+#ifndef __FreeBSD__
|
||||
KXL_SoundOk = False;
|
||||
KXL_LoadSoundData(path, fname);
|
||||
if (pipe(KXL_SoundData.Pipe) < 0) {
|
||||
@@ -264,6 +267,7 @@
|
||||
}
|
||||
if (KXL_SoundOk == False)
|
||||
fprintf(stderr, "KXL_InitSoundServer : no sounds\n");
|
||||
Uint16 i;
|
||||
KXL_SoundControl Command;
|
||||
fd_set sound_fdset;
|
||||
@@ -163,6 +166,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
/******************************************
|
||||
@@ -271,6 +275,7 @@
|
||||
******************************************/
|
||||
void KXL_EndSound(void)
|
||||
{
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
@@ -238,6 +242,7 @@
|
||||
//==============================================================
|
||||
void KXL_InitSound(Uint8 *path, Uint8 **fname)
|
||||
{
|
||||
+#ifndef __FreeBSD__
|
||||
if (KXL_SoundOk == False)
|
||||
return;
|
||||
KXL_PlaySound(0, KXL_SOUND_STOP_ALL);
|
||||
@@ -278,5 +283,6 @@
|
||||
KXL_Free(KXL_wavelist[-- KXL_SoundData.ListCnt]);
|
||||
KXL_Free(KXL_wavelist);
|
||||
kill(KXL_SoundData.ID, SIGTERM);
|
||||
KXL_SoundOk = False;
|
||||
|
||||
KXL_LoadSoundData(path, fname);
|
||||
@@ -265,6 +270,7 @@
|
||||
close(KXL_SoundData.Pipe[0]);
|
||||
KXL_SoundOk = True;
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
@@ -272,6 +278,7 @@
|
||||
//==============================================================
|
||||
void KXL_EndSound(void)
|
||||
{
|
||||
+#ifndef __FreeBSD__
|
||||
while (KXL_SoundData.ListCnt)
|
||||
KXL_Free(KXL_wavelist[-- KXL_SoundData.ListCnt].Data);
|
||||
KXL_Free(KXL_wavelist);
|
||||
@@ -281,5 +288,6 @@
|
||||
KXL_PlaySound(0, KXL_SOUND_STOP_ALL);
|
||||
kill(KXL_SoundData.ID, SIGTERM);
|
||||
}
|
||||
+#endif
|
||||
}
|
||||
|
||||
|
11
games/kxl/files/patch-ab
Normal file
11
games/kxl/files/patch-ab
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/KXLmisc.c.orig Wed Feb 20 21:52:35 2002
|
||||
+++ src/KXLmisc.c Wed Feb 20 21:53:17 2002
|
||||
@@ -1,6 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#if __FreeBSD__ >= 5
|
||||
#include <malloc.h>
|
||||
+#endif
|
||||
#include <signal.h>
|
||||
#include <sys/time.h>
|
||||
#include "KXL.h"
|
@ -1,6 +1,6 @@
|
||||
include/KXL.h
|
||||
lib/libKXL-0.5.6.so
|
||||
lib/libKXL.a
|
||||
lib/libKXL-1.1.5.so
|
||||
lib/libKXL.so
|
||||
lib/libKXL.a
|
||||
lib/libKXL.la
|
||||
share/aclocal/KXL.m4
|
||||
|
Loading…
Reference in New Issue
Block a user