Celestia: fix build for secondary arch. fix crash in mesh render.

This commit is contained in:
Gerasim Troeglazov
2018-09-16 21:11:30 +10:00
parent 123a7005c0
commit d364042076
2 changed files with 115 additions and 23 deletions

View File

@@ -41,10 +41,11 @@ REQUIRES="
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
haiku${secondaryArchSuffix}_devel
devel:libgl$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:liblua5.1$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
@@ -62,22 +63,12 @@ BUILD_PREREQUIRES="
"
BUILD()
{
local
for cf in -O2 -ffast-math \
-fexpensive-optimizations \
-fomit-frame-pointer; do
sed -i \
-e "s/${cf}//g" \
configure.in admin/* || die "sed failed"
done
{
autoreconf -fi
export LIBS="-lbe -lnetwork -lglut -lGL -lintl"
./configure \
--prefix=$appsDir \
export LIBS="-lbe -lGL -lGLU -lglut -lintl -lnetwork"
runConfigure ./configure \
--datarootdir=$dataDir \
--datadir=$dataDir \
--disable-rpath \
@@ -90,9 +81,10 @@ BUILD()
INSTALL()
{
mkdir -p $appsDir
make install
mv $appsDir/bin/celestia $appsDir/Celestia
rm -rf $appsDir/bin
mv $binDir/celestia $appsDir/Celestia
rm -rf $binDir
local APP_SIGNATURE="application/x-vnd.celestia"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"