File:  [cvs.NetBSD.org] / pkgsrc / audio / moc / Makefile
Revision 1.49: download - view: text, annotated - select for diffs
Tue Aug 18 17:57:37 2020 UTC (4 years, 3 months ago) by leot
Branches: MAIN
CVS tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD
*: revbump for libsndfile

# $NetBSD: Makefile,v 1.49 2020/08/18 17:57:37 leot Exp $

DISTNAME=		moc-2.5.2
PKGREVISION=		10
CATEGORIES=		audio
MASTER_SITES=		http://ftp.daper.net/pub/soft/moc/stable/
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		peter.schuller@infidyne.com
HOMEPAGE=		https://moc.daper.net/
COMMENT=		Curses based console audio player
LICENSE=		gnu-gpl-v2

GNU_CONFIGURE=		yes
USE_PKGLOCALEDIR=	yes
USE_LIBTOOL=		yes
USE_TOOLS+=		pkg-config
USE_LANGUAGES=		c c++

SUBST_CLASSES+=		eq
SUBST_STAGE.eq=		pre-configure
SUBST_FILES.eq=		configure
SUBST_SED.eq=		-e 's," == "," = ",g'
SUBST_MESSAGE.eq=	Fixing non-portable == in test

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

.if ${OSS_TYPE} != "none"
SUBST_CLASSES+=		oss
SUBST_STAGE.oss=	pre-configure
SUBST_FILES.oss=	config.example.in options.c
SUBST_SED.oss=		-e s,/dev/dsp,${DEVOSSAUDIO},g
SUBST_MESSAGE.oss=	Fixing hardcoded audio device.
.endif

.if ${OSS_TYPE} == "none"
CONFIGURE_ARGS+=	--without-oss
.endif

# not in pkgsrc?
CONFIGURE_ARGS+=	--without-rcc

# no buildlink?
CONFIGURE_ARGS+=	--without-timidity

# if you're one of the two people with music collections in musepack,
# want this, and can get it to work, please send a patch
CONFIGURE_ARGS+=	--without-musepack

BUILDLINK_TRANSFORM+=	l:db:db4

LDFLAGS.SunOS+=		-lsocket

# ${PREFIX}/bin/mocp contains path to pkg-config in work/.tools/.
# It is harmless.
CHECK_WRKREF_SKIP=	bin/mocp

.include "options.mk"
.include "../../audio/libid3tag/buildlink3.mk"
.include "../../databases/db4/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../sysutils/file/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>