Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 87 lines (73 sloc) 1.899 kb
#!/bin/bash
#
# HTS configure script for PS3 with PSL1GHT toolchain
#
# Copyright (c) 2011 Andreas Öman
#
# Based on FFmpeg's configure script:
#
# Copyright (c) 2000-2002 Fabrice Bellard
# Copyright (c) 2005-2008 Diego Biurrun
# Copyright (c) 2005-2008 Mans Rullgard
#
PLATFORM="ps3"
OSENV="ps3"
DEFAULT_UI="glw"
source support/configure.inc
GLW_DEFAULT_THEME="mono"
TOOLCHAIN="${PS3DEV}/host/ppu/bin/ppu-"
enable psl1ght
enable embedded_resources
LIBAV_CFLAGS="-mminimal-toc -B${PSL1GHT}/target/lib -B${PS3DEV}/host/ppu/lib -I${PS3DEV}/host/ppu/include -include ${TOPDIR}/support/nostrictansi.h"
LIBAV_ARCH_FLAGS="--cross-prefix=${PS3DEV}/host/ppu/bin/ppu- --enable-cross-compile --arch=powerpc64 --cpu=cell --target-os=none"
show_help(){
common_help
echo " --logtarget=HOST:PORT Log to HOST:PORT via UDP [disabled]"
exit 1
}
for opt do
optval="${opt#*=}"
case "$opt" in
--help) show_help
;;
--logtarget=*) DEFAULT_LOGTARGET="$optval"
;;
*)
common_opt $opt $optval
esac
done
setup_env "$@"
enable libfreetype
enable spidermonkey
enable trex
enable emu_thread_specifics
enable glw_frontend_ps3
enable glw_backend_rsx
enable glw
enable polarssl
enable librtmp
enable httpserver
enable dvd
enable ps3_vdec
libav_setup
cat >> ${CONFIG_MAK} <<EOF
CC=${TOOLCHAIN}gcc
STRIP=${TOOLCHAIN}strip
CFLAGS_cfg += -mminimal-toc -DWORDS_BIGENDIAN
CFLAGS_cfg += -DPATH_MAX=512 -DPS3
CFLAGS_cfg += -I${PSL1GHT}/target/include
CFLAGS_cfg += -I${PS3DEV}/host/ppu/include
CFLAGS_cfg += -I${PS3DEV}/host/ppu/include/freetype2
BUNDLES+=src/ui/glw/rsx
EOF
#
#
#
cat >> ${CONFIG_MAK} <<EOF
LDFLAGS_cfg += -lvdec
LDFLAGS_cfg += -B${PSL1GHT}/target/lib -B${PS3DEV}/host/ppu/lib
LDFLAGS_cfg += -lgcm_sys -laudio -lreality -lsysutil -lio -lnet -lnetctl -lsysmodule
LDFLAGS_cfg += -lfreetype
LDFLAGS_cfg += ${PS3DEV}/host/ppu/ppu/lib/lv2-psl1ght.o -lpsl1ght -llv2
EOF
finalize
Jump to Line
Something went wrong with that request. Please try again.