aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/chpp/Makefile
blob: b0289c1fc867da1d3af75e900b3f2a2f66950d54 (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
# New ports collection makefile for:    chpp
# Date created:             4 May 1999
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   chpp
PORTVERSION=    0.3.5
CATEGORIES= textproc
MASTER_SITES=   http://www.complang.tuwien.ac.at/~schani/chpp/files/

MAINTAINER= ports@FreeBSD.org

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share

EXAMPLES_DIR=   ${PREFIX}/share/examples/chpp

post-install:
    @${MKDIR} ${EXAMPLES_DIR}
    ${TAR} -C ${WRKSRC}/test -cf - . | \
        ${TAR} -C ${EXAMPLES_DIR} --unlink -xf -
    @find ${EXAMPLES_DIR} | xargs ${CHOWN} ${SHAREOWN}:${SHAREGRP}
    @find ${EXAMPLES_DIR} -type f | xargs ${CHMOD} ${SHAREMODE}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in AUTHORS NEWS README
    @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>