freebsd-ports/audio/mp3plot/Makefile
Ion-Mihai Tetcu 73beef82f0 Hint stupid confgiure script about boost libraries in order to fix build with
custom PREFIX/LOCABASE.

Reported by:	QATty
2009-05-31 01:07:11 +00:00

49 lines
1.1 KiB
Makefile

# New ports collection makefile for: mp3plot
# Date created: 12 June 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mp3plot
DISTVERSION= 0.5.1
CATEGORIES= audio
MASTER_SITES= http://p.outlyer.net/mp3plot/files/
MAINTAINER= ports@FreeBSD.org
COMMENT= Mp3 bitrate plot tool
LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost
OPTIONS= GD "Enable support for GD library" on \
IMAGEMAGICK "Enable support for Magick++" off
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
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++.2:${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>