summaryrefslogtreecommitdiff
path: root/www/shttpd/Makefile
blob: 741f38e7c60c465df20ed50914e3b3012329e614 (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
37
# New ports collection makefile for:  shttpd
# Date created:			  Wed Dec 15, 2004
# Whom:				  Sergey Lyubka (valenok@gmail.com)
#
# $FreeBSD$
#

PORTNAME=	shttpd
PORTVERSION=	1.27
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	shttpd
DISTNAME=	shttpd-${PORTVERSION}

MAINTAINER=	valenok@gmail.com
COMMENT=	Small, fast, embeddable web server with CGI, SSL, Authorization

MAN1=		shttpd.1

.if defined(WITHOUT_SSL)
PKGNAMESUFFIX=	-nossl
.else
CFLAGS+=	-DWITH_SSL -lssl -lcrypto
.endif

PLIST_FILES=	bin/shttpd etc/shttpd.conf

do-build:
	${CC} ${CFLAGS} -DCONFIG=\"${PREFIX}/etc/shttpd.conf\" \
		${WRKSRC}/shttpd.c -o ${WRKSRC}/shttpd

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/shttpd ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/shttpd.conf ${PREFIX}/etc
	${INSTALL_MAN} ${WRKSRC}/shttpd.1 ${PREFIX}/man/man1

.include <bsd.port.mk>