BROKEN-i386=		requires __m128i and similar types; may work if SSE is disabled

COMMENT=		OMRON LUNA-I and LUNA-88K emulator

DISTNAME=		nono-1.3.0
CATEGORIES=		emulators

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

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

# see doc/nono-license.txt
PERMIT_DISTFILES =	Yes
PERMIT_PACKAGE =	binaries cannot be distributed

COMPILER=	base-clang ports-gcc

WANTLIB += ${COMPILER_LIBCXX} c m slirp wx_baseu-3.2
WANTLIB += wx_baseu_net-3.2 wx_baseu_xml-3.2 wx_gtk3u_core-3.2
WANTLIB += wx_gtk3u_html-3.2 wx_gtk3u_qa-3.2 wx_gtk3u_xrc-3.2 z

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

BUILD_DEPENDS=		devel/gettext,-tools \
			net/libslirp
RUN_DEPENDS=		net/libslirp
LIB_DEPENDS=		x11/wxWidgets

NO_TEST=		Yes
CONFIGURE_STYLE=	gnu

post-extract:
	sed -i 's/-Werror//g' ${WRKSRC}/Makefile.inc

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nono
	${INSTALL_DATA} ${WRKSRC}/doc/index.html ${PREFIX}/share/doc/nono/manual.html

.include <bsd.port.mk>
