# Created by: Manuel Creach <manuel.creach@icloud.com>
# $FreeBSD: head/net/libnfs/Makefile 460581 2018-02-01 09:09:53Z gahr $

PORTNAME=	libnfs
PORTVERSION=	2.0.0
CATEGORIES=	net

MAINTAINER=	snoe925@gmail.com
COMMENT=	Client library for accessing NFS shares over a network

LICENSE=	LGPL21 GPLv3
LICENSE_COMB=	multi
LICENSE_FILE=	${WRKSRC}/COPYING

GNU_CONFIGURE=	yes
USES=		autoreconf gmake libtool pkgconfig
USE_LDCONFIG=	yes
USE_GITHUB=	yes
GH_ACCOUNT=	sahlberg
GH_TAGNAME=	${PORTNAME}-${PORTVERSION}

CONFIGURE_ARGS=	--disable-werror

post-patch:
	${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \
		${WRKSRC}/Makefile.am

.include <bsd.port.mk>
