aboutsummaryrefslogtreecommitdiffstats
path: root/www/shttpd/Makefile
blob: c46c572aa7f0294aadab53d0ac97eac811ebe09e (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
38
39
40
41
42
# New ports collection makefile for:  shttpd
# Date created:           Wed Dec 15, 2004
# Whom:               Sergey Lyubka (valenok@gmail.com)
#
# $FreeBSD$
#

PORTNAME=   shttpd
PORTVERSION=    1.19
CATEGORIES= www
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= shttpd
DISTNAME=   shttpd_${PORTVERSION}.c
EXTRACT_SUFX=
EXTRACT_ONLY=   #none

MAINTAINER= valenok@gmail.com
COMMENT=    Simple embeddable web server with CGI support

NO_WRKSUBDIR=   yes
DIST_SUBDIR=    ${PORTNAME}
MAN1=       shttpd.1

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

PLIST_FILES=    bin/shttpd

post-extract:
    ${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/

do-build:
    ${CC} ${CFLAGS} -o ${WRKSRC}/shttpd ${WRKSRC}/${DISTNAME}

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

.include <bsd.port.mk>