aboutsummaryrefslogtreecommitdiffstats
path: root/www/mathopd/Makefile
blob: b3efc549f5366a1c7a2d9243f00aacb788f476e7 (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
# Created by: tobez@plab.ku.dk
# $FreeBSD$

PORTNAME=   mathopd
PORTVERSION=    1.5p8
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   http://www.mathopd.org/dist/

MAINTAINER= michiel@boland.org
COMMENT=    Small, yet fast HTTP server

LICENSE=    BSD3CLAUSE

CFLAGS+=    -DFREEBSD_SENDFILE
MAKE_ARGS=  CFLAGS="${CFLAGS}"

OPTIONS_DEFINE= DOCS

DOCS=   CHANGES cgi.txt config.txt running.txt sample.cfg syntax.txt

do-install:
    ${INSTALL} -s ${WRKSRC}/src/mathopd ${STAGEDIR}${PREFIX}/sbin/
    ${INSTALL_DATA} ${WRKSRC}/doc/sample.cfg ${STAGEDIR}${PREFIX}/etc/mathopd.conf.sample
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/mathopd
    ${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${PREFIX}/share/doc/mathopd
    ${INSTALL_DATA} ${WRKSRC}/README  ${STAGEDIR}${PREFIX}/share/doc/mathopd
.for df in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/doc/${df}  ${STAGEDIR}${PREFIX}/share/doc/mathopd
.endfor
    ${INSTALL_SCRIPT} ${FILESDIR}/mathopd.sh ${STAGEDIR}${PREFIX}/etc/rc.d/mathopd.sh-dist
    @${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE}

.include <bsd.port.mk>