# $OpenBSD: Makefile,v 1.7 2017/05/11 20:50:55 espie Exp $

COMMENT=	C compiler for GMC-4

DISTNAME=	gmc4cc-0.6.2
CATEGORIES=	devel lang

REVISION=	2

# Japanese, use this for the English version: http://goo.gl/LPtgg
HOMEPAGE=	http://terus.jp/engineering/gmc4cc/

MAINTAINER=	Jasper Lievisse Adriaanse <jasper@openbsd.org>

# GPLv2+
PERMIT_PACKAGE_CDROM=	Yes

MASTER_SITES=	${HOMEPAGE}/files/
MASTER_SITES0=	http://distfiles.nl/

DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		gmc4cc-samples-0.1${EXTRACT_SUFX}:0

WANTLIB += c gmp iconv m

BUILD_DEPENDS=	lang/ghc
LIB_DEPENDS=	converters/libiconv \
		devel/gmp

WRKDIST= 	${WRKDIR}/gmc4cc

NO_TEST=	Yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/gmc4cc ${PREFIX}/bin/
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gmc4cc/
	cp -R ${WRKDIR}/gmc4cc-samples-0.1/* ${PREFIX}/share/examples/gmc4cc/

.include <bsd.port.mk>
