2013-01-31 14:38:42 +01:00
|
|
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
2007-06-12 12:32:45 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mp3plot
|
2009-07-03 21:34:05 +02:00
|
|
|
DISTVERSION= 0.6.0
|
2014-02-07 12:44:08 +01:00
|
|
|
PORTREVISION= 10
|
2007-06-12 12:32:45 +02:00
|
|
|
CATEGORIES= audio
|
2009-05-13 10:47:46 +02:00
|
|
|
MASTER_SITES= http://p.outlyer.net/mp3plot/files/
|
2007-06-12 12:32:45 +02:00
|
|
|
|
2009-11-27 23:52:30 +01:00
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
2007-06-12 12:32:45 +02:00
|
|
|
COMMENT= Mp3 bitrate plot tool
|
|
|
|
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs
|
2007-06-12 12:32:45 +02:00
|
|
|
|
2013-03-21 18:32:34 +01:00
|
|
|
OPTIONS_DEFINE= GD IMAGEMAGICK
|
|
|
|
OPTIONS_DEFAULT= GD
|
2009-05-13 10:47:46 +02:00
|
|
|
|
2011-05-19 20:25:58 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-09-20 16:36:35 +02:00
|
|
|
NO_STAGE= yes
|
2007-06-12 12:32:45 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2009-05-31 03:07:11 +02:00
|
|
|
CONFIGURE_ARGS+=--with-boost-program-options=boost_program_options \
|
|
|
|
--with-boost-thread=boost_thread
|
2013-01-31 14:38:42 +01:00
|
|
|
CONFIGURE_ENV+= "LIBS=-lboost_system"
|
2009-05-13 10:47:46 +02:00
|
|
|
|
|
|
|
MAN1= ${PORTNAME}.1
|
2007-06-12 12:32:45 +02:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2009-05-13 10:47:46 +02:00
|
|
|
|
2013-03-21 18:32:34 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2009-05-13 10:47:46 +02:00
|
|
|
|
2013-03-21 18:32:34 +01:00
|
|
|
.if ${PORT_OPTIONS:MGD}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libgd.so:${PORTSDIR}/graphics/gd
|
2013-03-21 18:32:34 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gd
|
2009-05-13 10:47:46 +02:00
|
|
|
.endif
|
|
|
|
|
2013-03-21 18:32:34 +01:00
|
|
|
.if ${PORT_OPTIONS:MIMAGEMAGICK}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libMagick++.so:${PORTSDIR}/graphics/ImageMagick
|
2009-05-13 10:47:46 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-magick
|
|
|
|
.endif
|
|
|
|
|
2007-06-12 12:32:45 +02:00
|
|
|
post-patch:
|
2013-01-31 14:38:42 +01:00
|
|
|
@${REINPLACE_CMD} -e '/bldtype_/s|-O2||g' \
|
|
|
|
-e 's|^extra_LD.*||g' \
|
|
|
|
${WRKSRC}/configure
|
2007-06-12 12:32:45 +02:00
|
|
|
|
2013-03-21 18:32:34 +01:00
|
|
|
.include <bsd.port.mk>
|