87 lines
1.8 KiB
Bash
87 lines
1.8 KiB
Bash
SUMMARY="A Javascript engine written in C/C++"
|
|
DESCRIPTION="Spidermonkey is a Javascript engine written in C/C++ used in \
|
|
various products from Mozilla."
|
|
HOMEPAGE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
|
|
COPYRIGHT="1998-1999 Netscape Communications Corporation"
|
|
LICENSE="NPL v1.1"
|
|
REVISION="2"
|
|
SOURCE_URI="https://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz"
|
|
CHECKSUM_SHA256="5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687"
|
|
SOURCE_DIR="js-$portVersion/"
|
|
PATCHES="spidermonkey-${portVersion}.patchset"
|
|
|
|
ARCHITECTURES="?all x86"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
spidermonkey$secondaryArchSuffix = $portVersion compat >= 1.8
|
|
cmd:js_config$secondaryArchSuffix = $portVersion
|
|
lib:libmozjs185$secondaryArchSuffix = 1.0.0 compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
spidermonkey${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libmozjs185$secondaryArchSuffix = 1.0.0 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
spidermonkey$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python
|
|
cmd:sed
|
|
cmd:xargs
|
|
cmd:zip
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
cd js/src
|
|
sed -e 's|${srcdir}/||' -i configure.in
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cd js/src
|
|
libtoolize -fci
|
|
|
|
runConfigure --omit-dirs "docDir dataRootDir" ./configure \
|
|
--disable-tracejit --enable-tests
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd js/src
|
|
make install
|
|
|
|
mv $libDir/libmozjs185-1.0.a $libDir/libmozjs185.a
|
|
|
|
prepareInstalledDevelLibs libmozjs185
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd js/src/jsapi-tests
|
|
make check
|
|
}
|