aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mp3blaster/Makefile
blob: d236659ea21d144efaff6bee8c85db8f6703571f (plain) (blame)
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
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:    mp3blaster
# Date created:     5 January 2000
# Whom:         Michael Vasilenko <acid@stu.cn.ua>
#
# $FreeBSD$
#

PORTNAME=   mp3blaster
PORTVERSION=    3.1.3
CATEGORIES= audio
MASTER_SITES=   http://www.stack.nl/~brama/mp3blaster/src/

MAINTAINER= ports@FreeBSD.org
COMMENT=    MP3 console ncurses-based player

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 400010
LIB_DEPENDS+=   ncurses.5:${PORTSDIR}/devel/ncurses
.endif

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-cxxflags="${CXXFLAGS}" \
        --without-sidplay
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib" \
        PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
        PTHREAD_LIBS="${PTHREAD_LIBS}"

.if !defined(WITHOUT_VORBIS)
LIB_DEPENDS+=   vorbisfile.3:${PORTSDIR}/audio/libvorbis
.else
CONFIGURE_ARGS+=    --without-oggvorbis
.endif

MAN1=       mp3blaster.1 nmixer.1 splay.1

.if !defined(WITHOUT_VORBIS)
pre-everything::
    @${ECHO_MSG}
    @${ECHO_MSG} "You can disable support for Ogg Vorbis by defining WITHOUT_VORBIS."
    @${ECHO_MSG}
.endif

.include <bsd.port.post.mk>