aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mp3plot/Makefile
blob: ac37d1029528059c5880e19855ead4b09d737be7 (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
46
47
48
49
50
51
# New ports collection makefile for:    mp3plot
# Date created:     12 June 2007
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mp3plot
DISTVERSION=    0.6.0
PORTREVISION=   7
CATEGORIES= audio
MASTER_SITES=   http://p.outlyer.net/mp3plot/files/

MAINTAINER= sylvio@FreeBSD.org
COMMENT=    Mp3 bitrate plot tool

LIB_DEPENDS=    boost_thread.4:${PORTSDIR}/devel/boost-libs

OPTIONS=    GD "Enable support for GD library" on \
        IMAGEMAGICK "Enable support for Magick++" off

LICENSE=    GPLv2

GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=--with-boost-program-options=boost_program_options \
        --with-boost-thread=boost_thread

MAN1=       ${PORTNAME}.1
PLIST_FILES=    bin/${PORTNAME}

CPPFLAGS+=  -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}

.include <bsd.port.pre.mk>

.if defined(WITHOUT_GD)
CONFIGURE_ARGS+=    --disable-gd
.else
LIB_DEPENDS+=   gd.4:${PORTSDIR}/graphics/gd
.endif

.if defined(WITH_IMAGEMAGICK)
LIB_DEPENDS+=   Magick++.5:${PORTSDIR}/graphics/ImageMagick
.else
CONFIGURE_ARGS+=    --disable-magick
.endif

post-patch:
    @${REINPLACE_CMD} -e '/bldtype_/s|-O2||g' ${WRKSRC}/configure

.include <bsd.port.post.mk>