aboutsummaryrefslogtreecommitdiff
path: root/audio/qsynth/Makefile
blob: dbae97e09cf8e9a6c984c8bf9a96914105546129 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: lazyklimm <lazyklimm@gmail.com>
# $FreeBSD$

PORTNAME=	qsynth
PORTVERSION=	0.3.7
CATEGORIES=	audio
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Qt fluidsynth front-end application

LICENSE=	GPLv2 # (or later)

LIB_DEPENDS=	fluidsynth:${PORTSDIR}/audio/fluidsynth

OPTIONS_DEFINE=	GRADIENT SYSTEM_TRAY
OPTIONS_DEFAULT=	GRADIENT SYSTEM_TRAY
GRADIENT_DESC=		Gradient eye-candy
SYSTEM_TRAY_DESC=	System-tray icon

USE_QT4=	gui linguist_build moc_build qmake_build rcc_build uic_build
QT_NONSTANDARD=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ac_cv_path_ac_moc=${MOC} \
		ac_cv_path_ac_uic=${UIC} \
		ac_cv_path_ac_qmake=${QMAKE} \
		ac_cv_path_ac_lupdate=${LOCALBASE}/bin/lupdate-qt4 \
		ac_cv_path_ac_lrelease=${LOCALBASE}/bin/lrelease-qt4
CONFIGURE_ARGS=	--localedir=${DATADIR} \
		--with-qt=${QT_PREFIX} \
		--with-fluidsynth=${LOCALBASE}
INSTALLS_ICONS=	yes

.include <bsd.port.options.mk>

.if empty(PORT_OPTIONS:MGRADIENT)
CONFIGURE_ARGS+=--disable-gradient
.endif

.if empty(PORT_OPTIONS:MSYSTEM_TRAY)
CONFIGURE_ARGS+=--disable-system-tray
.endif

post-configure:
	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} -o qsynth.mak \
		${QMAKEFLAGS})

post-install:
	@${STRIP_CMD} ${PREFIX}/bin/qsynth

.include <bsd.port.mk>