freebsd-ports/audio/qsynth/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

54 lines
1.6 KiB
Makefile

# Created by: lazyklimm <lazyklimm@gmail.com>
# $FreeBSD$
PORTNAME= qsynth
PORTVERSION= 0.5.4
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= tobik@FreeBSD.org
COMMENT= Qt fluidsynth front-end application
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth
USES= compiler:c++11-lang gmake pkgconfig qt:5
USE_CXXSTD= c++11
USE_QT= core gui widgets x11extras buildtools_build linguisttools_build qmake_build
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_path_ac_cv_qmake=${QMAKE} \
ac_cv_path_ac_moc=${MOC} \
ac_cv_path_ac_uic=${UIC} \
ac_cv_path_ac_lupdate=${LUPDATE} \
ac_cv_path_ac_lrelease=${LRELEASE}
CONFIGURE_ARGS= --localedir=${DATADIR} \
--with-fluidsynth=${LOCALBASE}
LDFLAGS+= -Wl,--as-needed # cf. PR 224488
OPTIONS_DEFINE= GRADIENT SYSTEM_TRAY XUNIQUE
OPTIONS_DEFAULT= GRADIENT SYSTEM_TRAY XUNIQUE
GRADIENT_DESC= Gradient eye-candy
SYSTEM_TRAY_DESC= System-tray icon support
XUNIQUE_DESC= X11 unique/single instance
GRADIENT_CONFIGURE_ENABLE= gradient
SYSTEM_TRAY_CONFIGURE_ENABLE= system-tray
XUNIQUE_CONFIGURE_ENABLE= xunique
XUNIQUE_USE= XORG=x11
post-patch:
@${REINPLACE_CMD} -e ' \
s|oss,alsa,alsa_seq,|jack,sndio,oss,|; \
s|alsa,jack,oss,dsound,|jack,sndio,oss,|; \
s|"/MidiDriver", "alsa_seq"|"/MidiDriver", "jack"|; \
s|m_settings.value("/SoundFontDir").toString();|m_settings.value("/SoundFontDir").toString().isEmpty() ? "${LOCALBASE}/share/sounds/sf2" : m_settings.value("/SoundFontDir").toString();|' \
${WRKSRC}/src/qsynthOptions.cpp \
${WRKSRC}/qsynth.1 ${WRKSRC}/qsynth.fr.1
.include <bsd.port.mk>