# Created by: ijliao
# $FreeBSD: archivers/libcomprex/Makefile 328242 2013-09-25 03:05:42Z vanilla $

PORTNAME=	libcomprex
PORTVERSION=	0.3.3
PORTREVISION=	8
CATEGORIES=	archivers
MASTER_SITES=	SF/gnupdate/${PORTNAME}/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Transparently handles automatic compression and decompression of files

LICENSE=	LGPL21

OPTIONS_DEFINE=	NLS

USE_AUTOTOOLS=	libtool
USES=		pathfix pkgconfig
USE_LDCONFIG=	yes

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=		gettext
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -lintl
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

.include <bsd.port.mk>
