aboutsummaryrefslogtreecommitdiff
path: root/www/libmicrohttpd/Makefile
blob: 77ade03a39da82cc44b64bcf53aee08c2f6a9b04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
PORTNAME=	libmicrohttpd
DISTVERSION=	1.0.1
CATEGORIES=	www
MASTER_SITES=	GNU

MAINTAINER=	gaod@hychen.org
COMMENT=	C library for embedding HTTP server functionality
WWW=		https://www.gnu.org/software/libmicrohttpd/

LICENSE=	LGPL21+
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		cpe libtool localbase pathfix
USE_LDCONFIG=	yes
CPE_VENDOR=	gnu

GNU_CONFIGURE=	yes

INFO=		libmicrohttpd libmicrohttpd-tutorial
INSTALL_TARGET=	install-strip
TEST_TARGET=	check

GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS=	--disable-examples

OPTIONS_DEFINE=		GNUTLS TESTCURL
OPTIONS_DEFAULT=	GNUTLS
TESTCURL_DESC=		Use curl when running unit tests

GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
GNUTLS_CONFIGURE_ENABLE=https

TESTCURL_LIB_DEPENDS=	libcurl.so:ftp/curl
TESTCURL_CONFIGURE_ENABLE=	curl

.include <bsd.port.mk>