SUMMARY="C implementation of Sass CSS preprocessor"
DESCRIPTION="SassC is a C/C++ port of the Sass engine. The point is to be \
simple, fast, and easy to integrate. \
 \
Sass is a pre-processing language for CSS. It allows you to write cleaner \
stylesheets and makes collaboration on your CSS a breeze."
HOMEPAGE="https://sass-lang.com"
COPYRIGHT="2012-2016 by the Sass Open Source Foundation"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/sass/sassc/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="608dc9002b45a91d11ed59e352469ecc05e4f58fc1259fc9a9f5b8f0f8348a03"

ARCHITECTURES="all ?x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	sassc$secondaryArchSuffix = $portVersion
	cmd:sassc$secondaryArchSuffix
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libsass$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libsass${secondaryArchSuffix}
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoreconf
	cmd:gcc$secondaryArchSuffix
	cmd:libtoolize$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	autoreconf -fi
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
