PORTNAME=	mp3fs
PORTVERSION=	1.1.1
PORTREVISION=	1
PORTEPOCH=	1
CATEGORIES=	filesystems audio
MASTER_SITES=	https://github.com/khenriks/${PORTNAME}/releases/download/v${PORTVERSION}/
PKGNAMEPREFIX=	fusefs-

MAINTAINER=	stefan.rumetshofer@drei.at
COMMENT=	FUSE-based filesystem for transcoding FLAC to MP3 on the fly
WWW=		https://github.com/khenriks/mp3fs

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libFLAC.so:audio/flac \
		libid3tag.so:audio/libid3tag \
		libmp3lame.so:audio/lame \
		libvorbis.so:audio/libvorbis

USES=		fuse localbase pkgconfig
GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
PLIST_FILES=	bin/mp3fs \
		share/man/man1/mp3fs.1.gz

CFLAGS+=	-D__XSI_VISIBLE
.include <bsd.port.mk>
