# Created by: Alex Samorukov <samm@freebsd.org>

PORTNAME=	qpress
PORTVERSION=	1.1
CATEGORIES=	archivers
MASTER_SITES=	http://www.quicklz.com/
DISTNAME=	qpress-11-source

MAINTAINER=	samm@FreeBSD.org
COMMENT=	Portable file archiver using QuickLZ

LICENSE=	GPLv2

USES=		dos2unix zip
EXTRACT_AFTER_ARGS=	-d ${WRKSRC}

PLIST_FILES=	bin/qpress

do-build:
	cd ${WRKSRC} && \
	${CXX} ${CXXFLAGS} -o qpress qpress.cpp aio.cpp quicklz.c utilities.cpp -lpthread

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/qpress ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>
