Add recipe for xut.

Fixes http://ports.haiku-files.org/ticket/471.
This commit is contained in:
Adrien Destugues
2015-02-19 11:37:05 +01:00
parent dea53ec459
commit 94dae83b75
2 changed files with 97 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
From 8b2c1e32d3f290835e6db44788aab1c3114dd73a Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@gmail.com>
Date: Thu, 19 Feb 2015 11:16:28 +0100
Subject: Fix detection of libm.
diff --git a/configure.in b/configure.in
index 00b99e7..b769abd 100755
--- a/configure.in
+++ b/configure.in
@@ -68,7 +68,7 @@ AC_CHECK_LIB([SDL], [main], [], [AC_MSG_ERROR(Couldn't find SDL. Please go to ht
AC_CHECK_LIB([SDL_image], [main], [], [AC_MSG_ERROR(Couldn't find SDL_image. Please go to http://www.libsdl.org/projects/SDL_image and get it!)])
AC_CHECK_LIB([SDL_ttf], [main], [], [AC_MSG_ERROR(Couldn't find SDL_ttf. Please go to http://www.libsdl.org/projects/SDL_ttf and get it!)])
# Math
-AC_CHECK_LIB([m], [main], [], [AC_MSG_ERROR(Couldn't find math lib. Something is wrong with your C/C++ distribution)])
+AC_SEARCH_LIBS([cos], [m], [], [AC_MSG_ERROR(Couldn't find math lib. Something is wrong with your C/C++ distribution)])
# Cal3D
AC_CHECK_LIB([cal3d], [main], [], [AC_MSG_ERROR(Couldn't find cal3d. Go to http://home.gna.org/cal3d and get it.)])
#the intl is needed on not gnu systems
--
2.2.2

View File

@@ -0,0 +1,75 @@
SUMMARY="A button football simulation"
DESCRIPTION="A turn based game where you play football (soccer) with buttons, \
boxes and simple rules."
REVISION="1"
LICENSE="GNU GPL v3"
COPYRIGHT="2009-2010 The DNTeam"
HOMEPAGE="http://sourceforge.net/projects/digenv/"
SRC_URI="http://www.mirrorservice.org/sites/downloads.sourceforge.net/d/di/digenv/xut/$portVersion/xut-$portVersion.tar.bz2"
CHECKSUM_SHA256="bbaca1531439cad1f5a040571b8208d87c129a597c93d06d1598eb512e86fef3"
SOURCE_DIR="xut"
PATCHES="xut-$portVersion.patchset"
PROVIDES="
xut$secondaryArchSuffix = $portVersion
cmd:xut$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libglu$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
lib:libgcc_s$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libsdl_image$secondaryArchSuffix
lib:libsdl_ttf$secondaryArchSuffix
lib:libcal3d$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
lib:libvorbisfile$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libglu$secondaryArchSuffix
devel:libsdl$secondaryArchSuffix
devel:libsdl_image$secondaryArchSuffix
devel:libsdl_ttf$secondaryArchSuffix
devel:libcal3d$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:make
"
ARCHITECTURES="x86"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
BUILD()
{
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
mkdir -p bin
make install
cp -r data/* $dataDir/xut/
}