mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Initial recipe for squirrel
This commit is contained in:
74
dev-lang/squirrel/squirrel-3.0.4.recipe
Normal file
74
dev-lang/squirrel/squirrel-3.0.4.recipe
Normal file
@@ -0,0 +1,74 @@
|
||||
SUMMARY="A light-weight scripting language"
|
||||
DESCRIPTION="
|
||||
Squirrel is a light weight programming language featuring higher-order \
|
||||
functions, classes/inheritance, delegation, tail recursion, generators, \
|
||||
cooperative threads, exception handling, reference counting and garbage \
|
||||
collection on demand. C-like syntax.
|
||||
"
|
||||
HOMEPAGE="http://www.squirrel-lang.org"
|
||||
SRC_URI="https://squirrel.googlecode.com/files/squirrel_3_0_4_stable.tar.gz"
|
||||
CHECKSUM_MD5="e75feaed79c203d027708e2067ca1dcc"
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="2004-2013 Alberto Demichelis"
|
||||
REVISION="1"
|
||||
|
||||
ARCHITECTURES="!x86 ?x86_64"
|
||||
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"
|
||||
else
|
||||
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86 ?x86_64"
|
||||
|
||||
PROVIDES="
|
||||
squirrel$secondaryArchSuffix = $portVersion
|
||||
cmd:sq$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
SOURCE_DIR="SQUIRREL3"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir
|
||||
cp -r bin/* $binDir
|
||||
|
||||
mkdir -p $includeDir
|
||||
cp -r include/* $includeDir
|
||||
|
||||
mkdir -p $developDocDir
|
||||
cp -r doc/* $developDocDir
|
||||
|
||||
mkdir -p $libDir
|
||||
cp -r lib/* $develLibDir
|
||||
|
||||
rm -rf $libDir
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
libsquirrel${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libsquirrel$secondaryArchSuffix = $portVersion
|
||||
devel:libsqstdlib$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
squirrel$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
Reference in New Issue
Block a user