[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / audio / qmmp

File: [cvs.NetBSD.org] / pkgsrc / audio / qmmp / Makefile (download)

Revision 1.1, Tue Oct 1 12:43:04 2019 UTC (11 months, 4 weeks ago) by nia
Branch: MAIN

Add audio/qmmp.

qmmp is an audio player. The default user interface is similar to Winamp/XMMP.
An alternative user interface based on a standard widget set is also available.

# $NetBSD: Makefile,v 1.1 2019/10/01 12:43:04 nia Exp $

DISTNAME=	qmmp-1.3.4
CATEGORIES=	audio
MASTER_SITES=	http://qmmp.ylsoftware.com/files/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://qmmp.ylsoftware.com/
COMMENT=	Audio player similar to Winamp using Qt
LICENSE=	gnu-gpl-v2

USE_CMAKE=	yes
USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c c++

TOOL_DEPENDS+=	qt5-qttools-[0-9]*:../../x11/qt5-qttools

# using mpg123 instead, it's better maintained
CMAKE_ARGS+=	-DUSE_MAD=OFF

# ??? seems to break playing some files
CMAKE_ARGS+=	-DUSE_MPLAYER=OFF

# XXX broken volume control
CMAKE_ARGS+=	-DUSE_OSS=OFF
CMAKE_ARGS+=	-DUSE_OSS4=OFF

.include "../../mk/oss.buildlink3.mk"

.if ${OSS_TYPE} != "none"
SUBST_CLASSES+=		oss
SUBST_STAGE.oss=	pre-build
SUBST_MESSAGE.oss=	Correcting the path to OSS device.
SUBST_FILES.oss+=	src/plugins/Output/oss/outputoss.cpp
SUBST_FILES.oss+=	src/plugins/Output/oss/settingsdialog.cpp
SUBST_FILES.oss+=	src/plugins/Output/oss4/outputoss4.h
SUBST_SED.oss+=		-e "s,/dev/dsp,${DEVOSSAUDIO},g"
SUBST_VARS.oss+=	LIBOSSAUDIO
.endif

.include "options.mk"
.include "../../audio/flac/buildlink3.mk"
.include "../../audio/game-music-emu/buildlink3.mk"
.include "../../audio/libopus/buildlink3.mk"
.include "../../audio/libmodplug/buildlink3.mk"
.include "../../audio/libshout/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/libsoxr/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/libwildmidi/buildlink3.mk"
.include "../../audio/mpg123/buildlink3.mk"
.include "../../audio/opusfile/buildlink3.mk"
.include "../../audio/taglib/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtmultimedia/buildlink3.mk"
.include "../../x11/qt5-qtx11extras/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"