2021-02-05 08:59:09 +00:00
|
|
|
SUMMARY="Embeddable Javascript engine"
|
|
|
|
DESCRIPTION="Duktape is a small and portable ECMAScript E5/E5.1 \
|
|
|
|
implementation. It isintended to be easily embeddable into C programs, with \
|
|
|
|
a C API similar in spirit to Lua's."
|
|
|
|
HOMEPAGE="https://duktape.org/"
|
2021-02-22 18:54:20 +00:00
|
|
|
COPYRIGHT="2013-present Duktape authors"
|
2021-02-05 08:59:09 +00:00
|
|
|
LICENSE="MIT"
|
2021-02-22 18:54:20 +00:00
|
|
|
REVISION="2"
|
2021-02-05 08:59:09 +00:00
|
|
|
SOURCE_URI="https://duktape.org/duktape-${portVersion}.tar.xz"
|
|
|
|
CHECKSUM_SHA256="96f4a05a6c84590e53b18c59bb776aaba80a205afbbd92b82be609ba7fe75fa7"
|
2021-02-22 18:54:20 +00:00
|
|
|
PATCHES="duktape-$portVersion.patchset"
|
2021-02-05 08:59:09 +00:00
|
|
|
|
|
|
|
libVersion="206.20600"
|
|
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86"
|
2021-02-05 08:59:09 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
duktape$secondaryArchSuffix = $portVersion
|
|
|
|
lib:libduktape$secondaryArchSuffix = $libVersionCompat
|
|
|
|
lib:libduktaped$secondaryArchSuffix = $libVersionCompat
|
|
|
|
"
|
|
|
|
REQUIRES="
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
PROVIDES_devel="
|
|
|
|
duktape${secondaryArchSuffix}_devel = $portVersion
|
|
|
|
devel:libduktape$secondaryArchSuffix = $libVersionCompat
|
|
|
|
devel:libduktaped$secondaryArchSuffix = $libVersionCompat
|
|
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
|
|
duktape$secondaryArchSuffix == $portVersion base
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
cmd:ld$secondaryArchSuffix
|
|
|
|
cmd:make
|
|
|
|
"
|
|
|
|
|
|
|
|
defineDebugInfoPackage duktape$secondaryArchSuffix \
|
|
|
|
$libDir/libduktape.so.$libVersion \
|
|
|
|
$libDir/libduktaped.so.$libVersion
|
|
|
|
|
2021-02-22 18:54:20 +00:00
|
|
|
BUILD()
|
2021-02-05 08:59:09 +00:00
|
|
|
{
|
|
|
|
mv Makefile.sharedlibrary Makefile || die "failed to rename makefile"
|
|
|
|
|
2021-02-22 18:54:20 +00:00
|
|
|
make INSTALL_PREFIX=$prefix \
|
|
|
|
INCLUDEDIR=$includeDir \
|
|
|
|
LIBDIR=$libDir $jobArgs
|
2021-02-05 08:59:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
2021-02-22 18:54:20 +00:00
|
|
|
make INSTALL_PREFIX=$prefix \
|
|
|
|
INCLUDEDIR=$includeDir \
|
|
|
|
LIBDIR=$libDir install
|
2021-02-05 08:59:09 +00:00
|
|
|
|
|
|
|
prepareInstalledDevelLibs libduktape libduktaped
|
|
|
|
fixPkgconfig
|
|
|
|
|
|
|
|
# devel package
|
|
|
|
packageEntries devel \
|
|
|
|
$developDir
|
|
|
|
}
|