summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2006-08-21 20:18:05 +0000
committeracm <acm@FreeBSD.org>2006-08-21 20:18:05 +0000
commit19895050844fb893ffd7ff7397a1ea0247d78c52 (patch)
tree695cc42fae6aed5d241b98a2d312470ca3210853 /games
parentbcd288c030f0e0e865e83aa111aa46cd65d6c836 (diff)
downloadFreeBSD-ports-19895050844fb893ffd7ff7397a1ea0247d78c52.zip
FreeBSD-ports-19895050844fb893ffd7ff7397a1ea0247d78c52.tar.gz
- Add some missing things to patch-openal.c
- Fixes problems with empty directories on games/el-data Approved by: garga (mentor)
Diffstat (limited to 'games')
-rw-r--r--games/el-data/Makefile4
-rw-r--r--games/el-data/pkg-plist3
-rw-r--r--games/el/Makefile1
-rw-r--r--games/el/files/patch-sound.c32
4 files changed, 34 insertions, 6 deletions
diff --git a/games/el-data/Makefile b/games/el-data/Makefile
index 2ece67a..ff7e282 100644
--- a/games/el-data/Makefile
+++ b/games/el-data/Makefile
@@ -7,6 +7,7 @@
PORTNAME= data
PORTVERSION= 130
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.other-life.com/el/:data \
http://www.eternalmusik.org/music/:sound \
@@ -41,6 +42,9 @@ post-extract:
@${FIND} ${WRKSRC} -type f -name "*.exe" -print0 | \
${XARGS} -0 ${RM} -R
@${RM} ${WRKSRC}/el-130.*
+.for DIRE in languages/po/books languages/po/strings languages/tr/strings
+ @${RMDIR} ${WRKSRC}/${DIRE}
+.endfor
do-install:
${MKDIR} ${DATADIR}
diff --git a/games/el-data/pkg-plist b/games/el-data/pkg-plist
index faec6c6..b6e083a 100644
--- a/games/el-data/pkg-plist
+++ b/games/el-data/pkg-plist
@@ -3238,15 +3238,12 @@
@dirrm %%DATADIR%%/languages/fr/Encyclopedia
@dirrm %%DATADIR%%/languages/fr/strings
@dirrm %%DATADIR%%/languages/fr
-@dirrm %%DATADIR%%/languages/po/books
@dirrm %%DATADIR%%/languages/po/Encyclopedia
-@dirrm %%DATADIR%%/languages/po/strings
@dirrm %%DATADIR%%/languages/po
@dirrm %%DATADIR%%/languages/si/Encyclopedia/images
@dirrm %%DATADIR%%/languages/si/Encyclopedia
@dirrm %%DATADIR%%/languages/si
@dirrm %%DATADIR%%/languages/tr/Encyclopedia
-@dirrm %%DATADIR%%/languages/tr/strings
@dirrm %%DATADIR%%/languages/tr
@dirrm %%DATADIR%%/languages
@dirrm %%DATADIR%%/mapeditor
diff --git a/games/el/Makefile b/games/el/Makefile
index cc78bfa..499847b 100644
--- a/games/el/Makefile
+++ b/games/el/Makefile
@@ -7,6 +7,7 @@
PORTNAME= el
PORTVERSION= 130
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= acm/${PORTNAME}
diff --git a/games/el/files/patch-sound.c b/games/el/files/patch-sound.c
index 773f40c..8cc374a 100644
--- a/games/el/files/patch-sound.c
+++ b/games/el/files/patch-sound.c
@@ -1,5 +1,5 @@
---- sound.c Fri Aug 18 12:54:36 2006
-+++ sound.c Fri Aug 18 11:33:35 2006
+--- sound.c Mon Aug 21 11:20:53 2006
++++ sound.c Mon Aug 21 11:25:49 2006
@@ -313,10 +313,11 @@
ALuint get_loaded_buffer(int i)
{
@@ -24,7 +24,33 @@
- alBufferData(sound_buffer[i],format,data,size,freq);
- alutUnloadWAV(format,data,size,freq);
+ alBufferData(sound_buffer[i],format,data,size,(int)freq);
-+// alutUnloadWAV(format,data,size,freq);
++ free(data);
}
return sound_buffer[i];
}
+@@ -377,14 +378,14 @@
+ #ifndef OSX
+ alutLoadWAVFile(szPath,&pSample->format,&data,&pSample->size,&pSample->freq,&loop);
+ #else
+- alutLoadWAVFile(szPath,&pSample->format,&data,&pSample->size,&pSample->freq);
++ data = alutLoadMemoryFromFile(szPath, &pSample->format, &pSample->size, &pSample->freq);
+ #endif
+ if(!data)
+ {//couldn't load the file
+ #ifdef ELC
+ LOG_ERROR("%s: %s",snd_buff_error, "NO SOUND DATA");
+ #else
+- printf("ensure_sample_loaded : alutLoadWAVFile(%s) = %s\n",
++ printf("ensure_sample_loaded : alutLoadMemoryFromFile(%s) = %s\n",
+ szPath, "NO SOUND DATA");
+ #endif
+ return 1;
+@@ -420,7 +421,7 @@
+ pSample->length = (pSample->size*1000) / ((pSample->bits >> 3)*pSample->channels*pSample->freq);
+
+ //get rid of the temporary data
+- alutUnloadWAV(pSample->format,data,pSample->size,pSample->freq);
++ free(data);
+ }
+
+ pSample->loaded_status = 1;
OpenPOWER on IntegriCloud