# $OpenBSD: Makefile,v 1.13 2021/03/10 18:34:18 naddy Exp $

# Big endian support is not complete as of 0.1.0
NOT_FOR_ARCHS=		${BE_ARCHS}
BROKEN-i386=		requires __m128i and similar types; may work if SSE is disabled

COMMENT=		LUNA-I emulator

DISTNAME=		nono-0.1.5
REVISION=		0
CATEGORIES=		emulators

MAINTAINER=		Gonzalo L. R. <gonzalo@openbsd.org>

HOMEPAGE=		http://www.pastel-flower.jp/~isaki/nono/

# BSD
PERMIT_PACKAGE=	Yes

WANTLIB += ${COMPILER_LIBCXX} c curses edit m wx_baseu-3.0 wx_baseu_net-3.0
WANTLIB += wx_baseu_xml-3.0 wx_gtk3u_adv-3.0 wx_gtk3u_core-3.0
WANTLIB += wx_gtk3u_html-3.0 wx_gtk3u_qa-3.0 wx_gtk3u_xrc-3.0
WANTLIB += z

MASTER_SITES=		http://www.pastel-flower.jp/~isaki/nono/archive/

BUILD_DEPENDS=		devel/gettext,-tools
LIB_DEPENDS=		x11/wxWidgets

NO_TEST=		Yes
CONFIGURE_STYLE=	gnu

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/cli/nono-cli ${PREFIX}/bin/
	${INSTALL_PROGRAM} ${WRKSRC}/wx/nono ${PREFIX}/bin/
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nono
	${INSTALL_DATA} ${WRKSRC}/doc/index.html ${PREFIX}/share/doc/nono/manual.html

.include <bsd.port.mk>
