SUMMARY="C Language Integrated Production System"
DESCRIPTION="CLIPS is an OPS-like forward chaining production system \
written in ANSI C by NASA. The CLIPS inference engine \
includes truth maintenance, dynamic rule addition, and \
customizable conflict resolution strategies."
HOMEPAGE="http://www.clipsrules.net"
COPYRIGHT="1985-2015, NASA, Gary Riley"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/clipsrules/files/CLIPS/6.30/clips_core_source_630.zip"
CHECKSUM_SHA256="01555b257efae281199b82621ad5cc1106a395acc095b9ba66f40fe50fe3ef1c"
SOURCE_DIR="clips_core_source_630"

ARCHITECTURES="all ?x86"

PROVIDES="
	clips = $portVersion
	cmd:clips
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:ld
	cmd:make
	"

BUILD()
{
	cp makefiles/makefile.gcc core/
	cd core
	make -f makefile.gcc
}

INSTALL()
{
	mkdir -p $binDir
	cp core/clips $binDir
}
