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 96 lines (80 sloc) 2.353 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
#
OS="ps3"
DEFAULT_UI="glw"
CONFIGURE_POSTFIX="ps3"
source support/configure.inc
TOOLCHAIN="${PS3DEV}/host/ppu/bin/ppu-"
CC=${TOOLCHAIN}gcc
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 --malloc-prefix=my"
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
enable sqlite_vfs
enable sqlite_locking
enable tlsf
${PS3DEV}/host/ppu/bin/ppu-gcc -c -o ${TMPDIR}/mallocstub.o ${TOPDIR}/support/mallocstub.c
LIBAV_LDFLAGS="${TMPDIR}/mallocstub.o"
libav_setup
cat >> ${CONFIG_MAK} <<EOF
CC=${CC}
STRIP=${TOOLCHAIN}strip
OBJDUMP=${TOOLCHAIN}objdump
OBJCOPY=${TOOLCHAIN}objcopy
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
SQLITE_PLATFORM_DEFINES += -DSQLITE_OS_OTHER=1
EOF
#
#
#
cat >> ${CONFIG_MAK} <<EOF
LDFLAGS_cfg += -lvdec -lrtc
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
LDFLAGS_EBOOT += -B${PSL1GHT}/target/lib -B${PS3DEV}/host/ppu/lib -lgcm_sys -laudio -lreality -lsysutil -lio -lnet -lnetctl -lsysmodule ${PS3DEV}/host/ppu/ppu/lib/lv2-psl1ght.o -lpsl1ght -llv2
EOF
finalize
Jump to Line
Something went wrong with that request. Please try again.