aboutsummaryrefslogtreecommitdiff
path: root/graphics/libprojectm/Makefile
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2020-04-21 17:08:39 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2020-04-21 17:08:39 +0000
commit6cdd0a3b517ce2e06335520fdc700bfb86378622 (patch)
tree8bb44ea3c8d9a4d4840188e5b6ab69dbd7e550d5 /graphics/libprojectm/Makefile
parent7fb1663db56f7d4742db8de1359244a16dcc844c (diff)
Notes
Diffstat (limited to 'graphics/libprojectm/Makefile')
-rw-r--r--graphics/libprojectm/Makefile48
1 files changed, 34 insertions, 14 deletions
diff --git a/graphics/libprojectm/Makefile b/graphics/libprojectm/Makefile
index dc053b839817..5190b17acf8b 100644
--- a/graphics/libprojectm/Makefile
+++ b/graphics/libprojectm/Makefile
@@ -2,8 +2,7 @@
PORTNAME= libprojectM
DISTVERSIONPREFIX= v
-DISTVERSION= 3.1.0
-PORTREVISION= 4
+DISTVERSION= 3.1.3
CATEGORIES= graphics audio
MAINTAINER= yuri@FreeBSD.org
@@ -12,39 +11,60 @@ COMMENT= Awesome music visualiser
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
-BUILD_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm
+BUILD_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm \
+ bash:shells/bash
LIB_DEPENDS= libftgl.so:graphics/ftgl \
libfreetype.so:print/freetype2 \
libvisual-0.4.so:graphics/libvisual04
RUN_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm
USES= autoreconf:build compiler:c++11-lang gl gmake libtool \
- localbase:ldflags pkgconfig qt:5 sdl
-
+ localbase:ldflags pkgconfig sdl
USE_GITHUB= yes
GH_ACCOUNT= projectM-visualizer
GH_PROJECT= projectm
USE_SDL= sdl2
-USE_QT= buildtools core gui opengl qmake_build widgets xml
USE_GL= gl glu glew
+
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --enable-sdl --enable-qt --enable-gles
+CONFIGURE_ARGS= --enable-sdl --enable-gles
INSTALL_TARGET= install-strip
+CONFIGURE_SHELL= ${PREFIX}/bin/bash # https://github.com/projectM-visualizer/projectm/issues/319
+
USE_LDCONFIG= yes
USE_CXXSTD= c++98
CXXFLAGS+= -DDATADIR_PATH='\"${LOCALBASE}/share/projectM\"'
+LDFLAGS+= -L${LOCALBASE}/lib/qt5 # https://github.com/projectM-visualizer/projectm/issues/320
+
+BINARY_ALIAS= make=${GMAKE}
+
+OPTIONS_DEFINE= PULSEAUDIO JACK
+OPTIONS_DEFAULT= PULSEAUDIO
+OPTIONS_SUB= yes
+
+PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
+PULSEAUDIO_USES= qt:5
+PULSEAUDIO_USE= qt=core,gui,opengl,widgets,xml,buildtools_build,qmake_build #qt=declarative,network,script,sensors,serialport,sql,xmlpatterns
+PULSEAUDIO_CONFIGURE_ENABLE= pulseaudio
+PULSEAUDIO_CONFIGURE_ON= --enable-qt
+
+JACK_LIB_DEPENDS= libjack.so:audio/jack
+JACK_USES= qt:5
+JACK_USE= qt=core,gui,opengl,widgets,xml,buildtools_build,qmake_build #qt=declarative,network,script,sensors,serialport,sql,xmlpatterns
+JACK_CONFIGURE_ENABLE= jack
+JACK_CONFIGURE_ON= --enable-qt
-OPTIONS_DEFINE= PULSEAUDIO JACK
-OPTIONS_DEFAULT= PULSEAUDIO
-OPTIONS_SUB= yes
+.include <bsd.port.options.mk>
-PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
-PULSEAUDIO_BROKEN_OFF= Erroneously requires pulseaudio, expected to be fixed in 3.1.1
+.if ! ${PORT_OPTIONS:MPULSEAUDIO} && ! ${PORT_OPTIONS:MJACK}
+CONFIGURE_ARGS+= --disable-qt
+.endif
-JACK_LIB_DEPENDS= libjack.so:audio/jack
-JACK_BROKEN= Missing: bin/projectM-jack, expected to be fixed in 3.1.1
+.if ${PORT_OPTIONS:MPULSEAUDIO} || ${PORT_OPTIONS:MJACK}
+PLIST_FILES+= share/icons/hicolor/scalable/apps/projectM.svg
+.endif
pre-configure:
@cd ${WRKSRC}/ && ${SH} autogen.sh