# Created by: shigeru@iij.ad.jp
# $FreeBSD: tags/RELEASE_10_2_0/net/libarms/Makefile 377064 2015-01-15 09:05:37Z tijl $

PORTNAME=	libarms
PORTVERSION=	5.01
PORTREVISION=	2
CATEGORIES=	net devel
MASTER_SITES=	https://dev.smf.jp/dl/ \
		http://dev.smf.jp/dl/

MAINTAINER=	shigeru@iij.ad.jp
COMMENT=	SMFv2/ARMS client library for C

LIB_DEPENDS=	libexpat.so:${PORTSDIR}/textproc/expat2

GNU_CONFIGURE=	yes
USES=		gmake libtool
USE_LDCONFIG=	yes
USE_OPENSSL=	yes

LDFLAGS+=	-L${LOCALBASE}/lib
CPPFLAGS+=	-I${LOCALBASE}/include

post-configure:
	@${REINPLACE_CMD} 's|$${datarootdir}/doc/$${PACKAGE_TARNAME}|${DOCSDIR}|' \
		${WRKSRC}/Makefile

.include <bsd.port.mk>
