2008-02-14 06:44:10 +00:00
|
|
|
# New ports collection makefile for: libmicrohttpd
|
|
|
|
# Date created: 12 February 2008
|
|
|
|
# Whom: David Barksdale <amatus@gnu.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libmicrohttpd
|
2012-08-08 12:43:40 +00:00
|
|
|
PORTVERSION= 0.9.21
|
2008-02-14 06:44:10 +00:00
|
|
|
CATEGORIES= www
|
2011-01-09 12:07:15 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
2011-01-17 20:05:33 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2008-02-14 06:44:10 +00:00
|
|
|
|
2011-01-09 12:07:15 +00:00
|
|
|
MAINTAINER= gaod@hychen.org
|
2008-02-14 06:44:10 +00:00
|
|
|
COMMENT= C library for embedding HTTP server functionality
|
|
|
|
|
2011-01-09 12:07:15 +00:00
|
|
|
LICENSE= LGPL21
|
2011-01-17 20:05:33 +00:00
|
|
|
|
|
|
|
OPTIONS= GNUTLS "Build with gnutls to support ssl" off
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2011-01-19 21:52:34 +00:00
|
|
|
.if ${OSVERSION} < 702000
|
|
|
|
IGNORE= strdup is not available in this OS release
|
|
|
|
.endif
|
|
|
|
|
2011-01-17 20:05:33 +00:00
|
|
|
.if defined(WITH_GNUTLS)
|
2011-10-12 21:11:28 +00:00
|
|
|
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt \
|
2012-07-12 11:54:46 +00:00
|
|
|
gnutls:${PORTSDIR}/security/gnutls
|
2011-01-17 20:05:33 +00:00
|
|
|
CONFIGURE_ARGS+=--with-gnutls=${LOCALBASE} --enable-https
|
|
|
|
.endif
|
|
|
|
|
2008-02-14 06:44:10 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2009-10-17 23:14:46 +00:00
|
|
|
MAKE_ARGS+= pkgconfigdir=${PREFIX}/libdata/pkgconfig
|
2008-02-14 06:44:10 +00:00
|
|
|
|
2011-01-09 12:07:15 +00:00
|
|
|
MAN3= libmicrohttpd.3
|
|
|
|
INFO= microhttpd microhttpd-tutorial
|
|
|
|
|
2012-08-08 12:43:40 +00:00
|
|
|
PLIST_FILES= lib/libmicrohttpd.so.26 \
|
2008-02-14 06:44:10 +00:00
|
|
|
lib/libmicrohttpd.la \
|
|
|
|
lib/libmicrohttpd.so \
|
|
|
|
lib/libmicrohttpd.a \
|
2009-08-17 20:18:58 +00:00
|
|
|
libdata/pkgconfig/libmicrohttpd.pc \
|
2011-01-09 12:07:15 +00:00
|
|
|
include/microhttpd.h
|
2008-02-14 06:44:10 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|