# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD: tags/RELEASE_10_0_0/multimedia/flvtool++/Makefile 336260 2013-12-12 13:01:40Z bapt $

PORTNAME=	flvtool++
PORTVERSION=	1.2.1
CATEGORIES=	multimedia
MASTER_SITES=	http://mirror.facebook.net/facebook/flvtool++/

MAINTAINER=	gslin@gslin.org
COMMENT=	Tool for hinting and manipulating the metadata of FLV files

LIB_DEPENDS=	libboost_iostreams.so:${PORTSDIR}/devel/boost-libs

CFLAGS+=	-I${LOCALBASE}/include/boost
NO_WRKSUBDIR=	yes
PLIST_FILES=	bin/flvtool++
USE_SCONS=	yes
SCONS_BUILDENV=	${SCONS_ENV}

NO_STAGE=	yes
post-patch:
	${REINPLACE_CMD} -e 's|/usr/local/include/boost-1_33_1|${LOCALBASE}/include|' \
		${WRKSRC}/SConscript

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/flvtool++ ${PREFIX}/bin

.include <bsd.port.mk>
