summaryrefslogtreecommitdiff
path: root/audio/mp3blaster/Makefile
blob: fe505dccc70b2efafb9b46c23343f9dcd5d7219c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $NetBSD: Makefile,v 1.22 2005/12/05 20:49:49 rillig Exp $

DISTNAME=	mp3blaster-3.2.0
PKGREVISION=	2
CATEGORIES=	audio
MASTER_SITES=	http://www.stack.nl/~brama/mp3blaster/src/

MAINTAINER=	rxg@NetBSD.org
HOMEPAGE=	http://www.stack.nl/~brama/mp3blaster.html
COMMENT=	MP3 console curses-based player

PTHREAD_OPTS+=	require
USE_TOOLS+=	gmake

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+="--with-cxxflags=${CXXFLAGS}" \
		--with-curses \
		--with-oggvorbis

.include "../../mk/pthread.buildlink3.mk"

.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
CONFIGURE_ARGS+=	--enable-newthreads
.endif

post-extract:
	${MKDIR} ${WRKSRC}/getopt
	${MV} ${WRKSRC}/nmixer/getopt.h ${WRKSRC}/nmixer/getopt.c \
		${WRKSRC}/nmixer/getopt1.c ${WRKSRC}/getopt
	${RM} ${WRKSRC}/src/getopt.h ${WRKSRC}/src/getopt.c \
		${WRKSRC}/src/getopt1.c

.include "../../audio/libvorbis/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"