# $OpenBSD: Makefile,v 1.6 2008/07/25 14:02:48 espie Exp $


COMMENT =	smalltalk system, basic runtime image

PKG_ARCH =	*

DOTV =		2
IMAGE_V =	7179
DISTFILES =	Squeak$V.${DOTV}-${IMAGE_V}-basic.zip
DISTNAME =	squeak-image-$V.${DOTV}.${IMAGE_V}
PKGNAME =	${DISTNAME}p0
RUN_DEPENDS =	:squeak-vm->=3.10:lang/squeak/vm
MASTER_SITES =	${SQUEAK_SITE}
EXTRACT_ONLY =
NO_BUILD =	Yes

BUILD_DEPENDS =	::archivers/unzip

SUBST_VARS +=	IMAGE_V

do-install:
	${INSTALL_DATA_DIR} ${SQUEAK_DIR}
	cd ${SQUEAK_DIR} && unzip -x ${FULLDISTDIR}/${DISTFILES}

.include <bsd.port.mk>
