1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/graphics/libprojectm/Makefile
Yuri Victorovich ec750519bd graphics/libprojectm: Only builds with default options PULSEAUDIO=ON JACK=OFF
The new version 3.1.1-rc4 appears to have options reworked, but 3.1.1 itselfdoesn't build for unrelated reasons that were reported to the upstream.
Also add USES=sdl

PR:		238086
Reported by:	Grzegorz Junka <list1@gjunka.com>
2019-05-24 13:54:09 +00:00

57 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= libprojectM
DISTVERSIONPREFIX= v
DISTVERSION= 3.1.0
PORTREVISION= 3
CATEGORIES= graphics audio
MAINTAINER= yuri@FreeBSD.org
COMMENT= Awesome music visualiser
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm
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
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
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
USE_CXXSTD= c++98
CXXFLAGS+= -DDATADIR_PATH='\"${LOCALBASE}/share/projectM\"'
OPTIONS_DEFINE= PULSEAUDIO JACK
OPTIONS_DEFAULT= PULSEAUDIO
OPTIONS_SUB= yes
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_BROKEN_OFF= Erroneously requires pulseaudio, expected to be fixed in 3.1.1
JACK_LIB_DEPENDS= libjack.so:audio/jack
JACK_BROKEN= Missing: bin/projectM-jack, expected to be fixed in 3.1.1
pre-configure:
@cd ${WRKSRC}/ && ${SH} autogen.sh
post-install:
@${MV} ${STAGEDIR}${PREFIX}/share/projectM/config.inp ${STAGEDIR}${PREFIX}/share/projectM/config.inp.sample
${INSTALL_DATA} ${WRKSRC}/fonts/Vera.ttf ${STAGEDIR}${PREFIX}/share/projectM/fonts/
.include <bsd.port.mk>