Mercurial > vanilla
comparison emulation/retroarch/retroarch.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | 7791d3dbfecf |
children | 27d1a83dc8d6 |
comparison
equal
deleted
inserted
replaced
1215:3214f7fed454 | 1216:6710613b88b9 |
---|---|
193 with_zlib="--enable-zlib" | 193 with_zlib="--enable-zlib" |
194 else | 194 else |
195 with_zlib="--disable-zlib" | 195 with_zlib="--disable-zlib" |
196 fi | 196 fi |
197 | 197 |
198 build() | 198 rm -rf RetroArch-$PKGVERSION |
199 { | 199 tar xvf RetroArch-$PKGVERSION.tar.xz |
200 rm -rf RetroArch-$PKGVERSION | 200 cd RetroArch-$PKGVERSION |
201 tar xvf RetroArch-$PKGVERSION.tar.xz | 201 |
202 cd RetroArch-$PKGVERSION | 202 # Disable core updater because they are not binary compatible and |
203 | 203 # shipped with Vanilla Linux. |
204 # Disable core updater because they are not binary compatible and | 204 sed -i -e "s|# menu_show_core_updater.*|menu_show_core_updater = false|" retroarch.cfg |
205 # shipped with Vanilla Linux. | 205 |
206 sed -i -e "s|# menu_show_core_updater.*|menu_show_core_updater = false|" retroarch.cfg | 206 # Adapt core and their info directories respectively. |
207 | 207 sed -i \ |
208 # Adapt core and their info directories respectively. | 208 -e "s|# libretro_directory.*|libretro_directory = /lib/libretro|" \ |
209 sed -i \ | 209 -e "s|# libretro_info_path.*|libretro_info_path = /share/libretro/info|" retroarch.cfg |
210 -e "s|# libretro_directory.*|libretro_directory = /lib/libretro|" \ | 210 |
211 -e "s|# libretro_info_path.*|libretro_info_path = /share/libretro/info|" retroarch.cfg | 211 # Adapt assets directory. |
212 | 212 sed -i -e "s|# assets_directory.*|assets_directory = /share/retroarch/assets|" retroarch.cfg |
213 # Adapt assets directory. | 213 |
214 sed -i -e "s|# assets_directory.*|assets_directory = /share/retroarch/assets|" retroarch.cfg | 214 # --prefix=/.: does not accept an empty prefix. |
215 | 215 CC="$CC" \ |
216 # --prefix=/.: does not accept an empty prefix. | 216 CFLAGS="$CFLAGS" \ |
217 CC="$CC" \ | 217 LDFLAGS="$LDFLAGS" \ |
218 CFLAGS="$CFLAGS" \ | 218 PKG_CONF_PATH=/bin/pkgconf \ |
219 LDFLAGS="$LDFLAGS" \ | 219 ./configure \ |
220 PKG_CONF_PATH=/bin/pkgconf \ | 220 --build=$CBUILD \ |
221 ./configure \ | 221 --host=$CHOST \ |
222 --build=$CBUILD \ | 222 --prefix=/. \ |
223 --host=$CHOST \ | 223 --disable-sdl \ |
224 --prefix=/. \ | 224 --disable-systemd \ |
225 --disable-sdl \ | 225 $with_alsa \ |
226 --disable-systemd \ | 226 $with_dbus \ |
227 $with_alsa \ | 227 $with_ffmpeg \ |
228 $with_dbus \ | 228 $with_jack \ |
229 $with_ffmpeg \ | 229 $with_kms \ |
230 $with_jack \ | 230 $with_openal \ |
231 $with_kms \ | 231 $with_opengl \ |
232 $with_openal \ | 232 $with_pulseaudio \ |
233 $with_opengl \ | 233 $with_qt \ |
234 $with_pulseaudio \ | 234 $with_sdl2 \ |
235 $with_qt \ | 235 $with_ttf \ |
236 $with_sdl2 \ | 236 $with_udev \ |
237 $with_ttf \ | 237 $with_usb \ |
238 $with_udev \ | 238 $with_wayland \ |
239 $with_usb \ | 239 $with_x \ |
240 $with_wayland \ | 240 $with_zlib |
241 $with_x \ | 241 make CC="$CC" CXX="$CXX" |
242 $with_zlib | 242 make install DESTDIR=$DESTDIR |
243 make CC="$CC" CXX="$CXX" | 243 |
244 make install DESTDIR=$DESTDIR | 244 cd .. |
245 | 245 rm -rf RetroArch-$PKGVERSION |
246 cd .. | |
247 rm -rf RetroArch-$PKGVERSION | |
248 } |