aboutsummaryrefslogtreecommitdiffstats
path: root/www/quickie/Makefile
blob: 1630c9cd8aea384ea522fe5b405fbbc6ef35fe4e (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# New ports collection makefile for:    quickie
# Date Created:             2006-05-16
# Whom:                 Shaun Amott <shaun@inerd.com>
#
# $FreeBSD$
#

PORTNAME=   quickie
PORTVERSION=    1.1
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   http://${PORTNAME}.sourceforge.net/

MAINTAINER= shaun@FreeBSD.org
COMMENT=    A small footprint, fast Wiki engine written in C++

GNU_CONFIGURE=  yes

CONFIGURE_ARGS= --prefix=${PREFIX}      \
        --sysconfdir=${PREFIX}/etc  \
        --localstatedir=${DATADIR}

MAN1=       quickie-config.1 quickie_prime.1 quickie.1 quickie_svt.1 \
        quickie_license.1 quickie_post_install.1

SUB_FILES=  pkg-message

PORTDOCS=   ${DISTNAME}.pdf

.if !defined(NOPORTDOCS)
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}.pdf
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}
.endif

.include <bsd.port.pre.mk>

post-patch:
    @${CP} ${FILESDIR}/freebsd.h ${WRKSRC}/lib
    @${REINPLACE_CMD} -e 's|output_html_quote::name()|name()|' \
        ${WRKSRC}/lib/output/html_quote.h
    @${REINPLACE_CMD} -e 's|input_uudecode::read_inner|read_inner|' \
        ${WRKSRC}/lib/input/uudecode.h

pre-install:
    @${MKDIR} ${DATADIR}/admin
    @${MKDIR} ${DATADIR}/manual

post-install:
    @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DATADIR}
.if !defined(WITHOUT_CGICOPY)
    @if [ -d ${PREFIX}/www/cgi-bin/ ]; then \
        if [ ! -f ${PREFIX}/www/cgi-bin/${PORTNAME} ]; then \
            ${ECHO_MSG} "===> Copying CGI binary..." ; \
            ${CP} -p ${PREFIX}/bin/${PORTNAME} ${PREFIX}/www/cgi-bin/${PORTNAME} ; \
            ${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/www/cgi-bin/${PORTNAME} ; \
        fi ; \
    fi
.endif
    @${CAT} ${PKGMESSAGE}

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${DISTDIR}/${DISTNAME}.pdf ${DOCSDIR}
.endif

.include <bsd.port.post.mk>