Mercurial > vanilla
comparison emulation/libretro-crocods/libretro-crocods.sh @ 854:1cbcb1fcee1b
emulation/libretro-crocods: initial import, closes #2135
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 24 Aug 2019 16:06:11 +0200 |
parents | |
children | ddab65a5b3f5 |
comparison
equal
deleted
inserted
replaced
853:fe84f2cd789a | 854:1cbcb1fcee1b |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | |
4 # | |
5 # Permission to use, copy, modify, and/or distribute this software for any | |
6 # purpose with or without fee is hereby granted, provided that the above | |
7 # copyright notice and this permission notice appear in all copies. | |
8 # | |
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
16 # | |
17 | |
18 _COMMIT=a7d1098000376a39d70db171863c8f46da7de07d | |
19 _SCOMMIT=$(echo $_COMMIT | awk '{ print substr($1, 0, 7) }') | |
20 | |
21 PKGNAME=libretro-crocods | |
22 PKGVERSION=$_SCOMMIT | |
23 PKGREVISION=1 | |
24 PKGLICENSE="MIT" | |
25 PKGSUMMARY="libretro implementation for crocods (Amstrad CPC)" | |
26 PKGDOWNLOAD="https://github.com/libretro/libretro-crocods/archive/$_COMMIT.tar.gz | |
27 https://raw.github.com/libretro/libretro-super/master/dist/info/crocods_libretro.info" | |
28 | |
29 : ${CC:=clang} | |
30 : ${CFLAGS:=-O2} | |
31 | |
32 build() | |
33 { | |
34 rm -rf $PKGNAME-$_COMMIT | |
35 tar xvf $_COMMIT.tar.gz | |
36 cd $PKGNAME-$_COMMIT | |
37 | |
38 sed -i -e '278iCFLAGS+= $(EXTRA_CFLAGS)' Makefile | |
39 | |
40 make \ | |
41 GIT_VERSION="$_SCOMMIT" \ | |
42 CC="$CC" \ | |
43 EXTRA_CFLAGS="$CFLAGS" \ | |
44 platform=unix | |
45 install -Dm0644 ../crocods_libretro.info $DESTDIR/share/libretro/info/crocods_libretro.info | |
46 install -Dm0644 crocods_libretro.so $DESTDIR/lib/libretro/crocods_libretro.so | |
47 | |
48 cd .. | |
49 rm -rf $PKGNAME-$_COMMIT | |
50 } |