# Created by: Evgeny Zhirnov <jirnov@gmail.com>
# $FreeBSD: branches/RELEASE_8_4_0/sysutils/fusefs-gunzip/Makefile 313527 2013-03-06 16:52:02Z bapt $

PORTNAME=	fuse.gunzip
PORTVERSION=	20070320
CATEGORIES=	sysutils
MASTER_SITES=	http://fuse.gunzip.silverice.org/files/

MAINTAINER=	jirnov@gmail.com
COMMENT=	Fuse.gunzip provides transparent decompression of gzip compressed files

WRKSRC=		${WRKDIR}/fuse.gunzip
USES=		fuse

PLIST_FILES=	bin/fuse.gunzip

NO_INSTALL_MANPAGES=	yes

do-build:
	(cd ${WRKSRC} && \
	${CC} ${CFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include/fuse \
	-D_FILE_OFFSET_BITS=64 \
	-o fuse.gunzip fuse.gunzip.c -L${LOCALBASE}/lib \
	-lulockmgr -lz -lfuse -liconv -lm)

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/fuse.gunzip ${PREFIX}/bin

.include <bsd.port.mk>
