mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
45526ecbee
A new USES has been added to depend on ImageMagick. USES=magick adds a LIB_DEPENDS on graphics/ImageMagick${IMAGEMAGICK_DEFAULT}. If a specific version is required, use for example USES=magick:6 resp. USES=magick:7 If only a build, run or test is required, use for example USES=magick:build resp. USES=magick:6,build,test If a dependency on the nox11 flavor is required, use for example USES=magick:nox11 resp. USES=magick:7,nox11,run,test See magick.mk for more details on the available flags. The tree has been completely converted to make use of this. Approved by: bapt Differential Revision: https://reviews.freebsd.org/D32754
40 lines
938 B
Makefile
40 lines
938 B
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
|
|
PORTNAME= mp3plot
|
|
DISTVERSION= 0.6.0
|
|
PORTREVISION= 29
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://p.outlyer.net/mp3plot/files/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= MP3 bitrate plot tool
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= compiler:c++11-lang
|
|
LIB_DEPENDS= libboost_thread.so:devel/boost-libs
|
|
|
|
USE_CXXSTD= c++98
|
|
|
|
OPTIONS_DEFINE= GD IMAGEMAGICK
|
|
OPTIONS_DEFAULT=GD
|
|
|
|
CONFIGURE_ARGS= --with-boost-program-options=boost_program_options \
|
|
--with-boost-thread=boost_thread
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
GNU_CONFIGURE= yes
|
|
LIBS+= -L${LOCALBASE}/lib -lboost_system
|
|
|
|
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
|
|
|
|
GD_CONFIGURE_ENABLE= gd
|
|
GD_LIB_DEPENDS= libgd.so:graphics/gd
|
|
IMAGEMAGICK_CONFIGURE_ENABLE= magick
|
|
IMAGEMAGICK_USES= magick:6
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/bldtype_/s|-O2||g; s|^extra_LD.*||g' ${WRKSRC}/configure
|
|
|
|
.include <bsd.port.mk>
|