#!/bin/sh

NAME="squeak-vm"
DESC="Full-featured implementation of the Smalltalk programming language and environment"

MAKEDEPS=" make cmake"

PKG_VER=4.10.2.2614
SOURCE="http://squeakvm.org/unix/release/Squeak-$PKG_VER-src.tar.gz"

ADDITIONAL="
sqVirtualMachine.patch
"

prepare () {
    apply_patches
}

build() {
	./unix/cmake/configure \
		--prefix=/usr \
		--without-quartz \
		--with-x \
		--enable-mpg-mmx
	 make
}

package() {
	make DESTDIR="$PKG_DEST" install
}

