PORTNAME=	pianobooster
DISTVERSIONPREFIX=	v
DISTVERSION=	1.0.0
PORTREVISION=	7
CATEGORIES=	audio

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	MIDI file player that teaches how to play the piano
WWW=		https://www.pianobooster.org/index.html

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/gplv3.txt

LIB_DEPENDS=	libftgl.so:graphics/ftgl \
		libjack.so:audio/jack \
		librtmidi.so:audio/rtmidi

USES=		cmake compiler:c++11-lang desktop-file-utils gl pkgconfig qt:5
USE_GITHUB=	yes
GH_ACCOUNT=	captnfab
GH_PROJECT=	PianoBooster
USE_QT=		core gui opengl widgets xml buildtools:build linguisttools:build qmake:build
USE_GL=		gl glu

CMAKE_ON=	USE_JACK
CMAKE_OFF=	USE_BUNDLED_RTMIDI
CMAKE_ARGS=	-DDATA_DIR:STRING=share/${PORTNAME}

OPTIONS_DEFINE=		FLUIDSYNTH
OPTIONS_DEFAULT=	FLUIDSYNTH

FLUIDSYNTH_CMAKE_BOOL=	EXPERIMENTAL_USE_FLUIDSYNTH
FLUIDSYNTH_LIB_DEPENDS=	libfluidsynth.so:audio/fluidsynth

post-stage:
	@${RM} -r ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
