mid-kid
8 years ago
11 changed files with 125 additions and 18 deletions
@ -0,0 +1,14 @@ |
|||||
|
import 'vcs/git' |
||||
|
|
||||
|
name=bsnes-libretro |
||||
|
|
||||
|
vcs_git -r libretro "https://github.com/libretro/$name" |
||||
|
header_end |
||||
|
|
||||
|
cd "$name" |
||||
|
for profile in accuracy balanced performance; do |
||||
|
make profile="$profile" |
||||
|
make profile="$profile" core_installdir="/$dir_prefix/$dir_libdir/libretro" DESTDIR="$dir_install" install |
||||
|
done |
||||
|
|
||||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,12 @@ |
|||||
|
import 'vcs/git' |
||||
|
|
||||
|
name=retroarch-assets |
||||
|
|
||||
|
vcs_git "https://github.com/libretro/$name" |
||||
|
header_end |
||||
|
|
||||
|
cd "$name" |
||||
|
mkdir -p "$dir_install/$dir_prefix/$dir_datadir/retroarch/assets" |
||||
|
cp -av xmb "$dir_install/$dir_prefix/$dir_datadir/retroarch/assets" |
||||
|
|
||||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,42 @@ |
|||||
|
name=RetroArch |
||||
|
version=1.4.1 |
||||
|
update_url="https://github.com/libretro/$name/releases" |
||||
|
update_names="/archive/v$version.tar.gz" |
||||
|
|
||||
|
dlextract "https://github.com/libretro/$name/archive/v$version/$name-$version.tar.gz" \ |
||||
|
'a2431adfee081c5cab3c6b7930e5bfab' |
||||
|
dlfile "https://slackbuilds.org/slackbuilds/14.2/games/$name/disable_core_update.patch.gz" \ |
||||
|
'5c55e7b66e1d1bc38f0bee3813861460' |
||||
|
header_end |
||||
|
|
||||
|
cd "$name-$version" |
||||
|
|
||||
|
# Patch retroarch.cfg to point to the correct directories for cores and other files. |
||||
|
sed -i -e "/^[# ]*libretro_directory/clibretro_directory = \"$(safe_sed "/$dir_prefix/$dir_libdir/libretro")\"" \ |
||||
|
-e "/^[# ]*libretro_info_path/clibretro_info_path = \"$(safe_sed "/$dir_prefix/$dir_libdir/libretro/info")\"" \ |
||||
|
-e "/^[# ]*audio_filter_dir/caudio_filter_dir = \"$(safe_sed "/$dir_prefix/$dir_libdir/retroarch/filters/audio")\"" \ |
||||
|
-e "/^[# ]*video_filter_dir/cvideo_filter_dir = \"$(safe_sed "/$dir_prefix/$dir_libdir/retroarch/filters/video")\"" \ |
||||
|
-e "/^[# ]*assets_directory/cassets_directory = \"$(safe_sed "/$dir_prefix/$dir_datadir/retroarch/assets")\"" retroarch.cfg |
||||
|
|
||||
|
# Disable updating of cores |
||||
|
zcat ../disable_core_update.patch.gz | patch -p1 |
||||
|
|
||||
|
# Custom configure-style script. |
||||
|
./configure --disable-update_assets --disable-update_cores \ |
||||
|
--prefix="/$dir_prefix" \ |
||||
|
--global-config-dir="/$dir_prefix/$dir_sysconfdir" \ |
||||
|
--with-assets_dir="/$dir_prefix/$dir_datadir" \ |
||||
|
--with-bin_dir="/$dir_prefix/$dir_bindir" \ |
||||
|
--with-man_dir="/$dir_prefix/$dir_mandir" |
||||
|
|
||||
|
make DESTDIR="$dir_install" install |
||||
|
|
||||
|
# Compile and install audio filters |
||||
|
make -C libretro-common/audio/dsp_filters |
||||
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_libdir/retroarch/filters/audio" libretro-common/audio/dsp_filters/*.{dsp,so} |
||||
|
|
||||
|
# Compile and install video filters |
||||
|
make -C gfx/video_filters |
||||
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_libdir/retroarch/filters/video" gfx/video_filters/*.{filt,so} |
||||
|
|
||||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,14 @@ |
|||||
|
import 'compile/configure' |
||||
|
|
||||
|
name=cabextract |
||||
|
version=1.6 |
||||
|
update_url='https://www.cabextract.org.uk/' |
||||
|
|
||||
|
dlextract "https://www.cabextract.org.uk/$name-$version.tar.gz" \ |
||||
|
'ee3ded0b1f84e5c6e3309bb36d701916' |
||||
|
header_end |
||||
|
|
||||
|
cd "$name-$version" |
||||
|
compile_configure |
||||
|
|
||||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
@ -0,0 +1,21 @@ |
|||||
|
import 'compile/configure' |
||||
|
|
||||
|
name=mozplugger |
||||
|
version=2.1.6 |
||||
|
update_url='http://mozplugger.mozdev.org/' |
||||
|
|
||||
|
dlextract "http://mozplugger.mozdev.org/files/$name-$version.tar.gz" \ |
||||
|
'abb42f3c3c2f3a940c1252a83f254116' |
||||
|
header_end |
||||
|
|
||||
|
cd "$name-$version" |
||||
|
|
||||
|
# Fix paths |
||||
|
sed -i -e '/install/s/@bindir@/$(DESTDIR)&/' \ |
||||
|
-e '/install/s/@sysconfdir@/$(DESTDIR)&/' \ |
||||
|
-e '/install/s/@mandir@/$(DESTDIR)&/' \ |
||||
|
-e '/install/s/$$a/$(DESTDIR)&/' Makefile.in |
||||
|
|
||||
|
compile_configure -m "PLUGINDIRS='/$dir_prefix/$dir_libdir/mozilla/plugins'" |
||||
|
|
||||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: |
Loading…
Reference in new issue