games/colem: Updated for version 3.7.

This commit is contained in:
B. Watson 2016-07-29 14:47:21 -04:00 committed by Willy Sudiarto Raharjo
parent a4f7b6e497
commit fe9122b82c
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 12 additions and 8 deletions

View file

@ -6,6 +6,10 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20160729 bkw:
# - updated for 3.7
# - rom_path.diff now handles filenames longer than 20 characters.
# 20150506 bkw:
# - updated for 3.3. Lots of little changes, meaning the script
# won't work for 2.9 any more.
@ -34,7 +38,7 @@
# with OSS modules disabled by default.
PRGNAM=colem
VERSION=${VERSION:-3.3}
VERSION=${VERSION:-3.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -52,11 +56,11 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# Since we have to set endianness at compile-time, included a few
# extra ARCHes here (only i486 and x86_64 are actually tested, you're
# extra ARCHes here (only i586 and x86_64 are actually tested, you're
# on your own with the others)
# alphaslack and armedslack are little-endian, caught by the default case.
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then

View file

@ -1,8 +1,8 @@
PRGNAM="colem"
VERSION="3.3"
VERSION="3.7"
HOMEPAGE="http://fms.komkon.org/ColEm/"
DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/ColEm33-Source.zip"
MD5SUM="90d38c6fa5a88a100a855b4ad9d28233"
DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/ColEm37-Source.zip"
MD5SUM="b1f3a0672992db1e413f92fd5a5a41b5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -20,7 +20,7 @@ diff -Naur a/ColEm/Coleco.c b/ColEm/Coleco.c
+ for both upper- and lower-case filenames. */
+static FILE *smart_fopen(const char *path, const char *mode) {
+ FILE *fp;
+ char lowercase_path[20], filename[PATH_MAX + 1];
+ char lowercase_path[PATH_MAX + 1], filename[PATH_MAX + 1];
+ const char *p = path;
+ char *lp = lowercase_path;
+ struct passwd *ent;