aboutsummaryrefslogtreecommitdiffstats
path: root/misc/kcd/Makefile
blob: 71f28783939dfe0da41de0b717cde7a4059ef0f2 (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:    kcd
# Date created:             5 May 1999
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   kcd
PORTVERSION=    4.11.2
CATEGORIES= misc
MASTER_SITES=   http://download.sourceforge.net/kcd/

MAINTAINER= ports@FreeBSD.org

.include <bsd.port.pre.mk>
.if ${OSVERSION} < 400010
LIB_DEPENDS=    ncurses.4:${PORTSDIR}/devel/ncurses
.endif

USE_NEWGCC= yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"
MAN1=       kcd.1

post-patch:
    @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cc

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/kcdmain ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/kcdscr ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/kcd.1 ${PREFIX}/man/man1
    @${MKDIR} ${PREFIX}/share/examples/kcd
    ${INSTALL_DATA} ${WRKSRC}/kcd.csh.init ${PREFIX}/share/examples/kcd
    ${INSTALL_DATA} ${WRKSRC}/kcd.sh.init ${PREFIX}/share/examples/kcd
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/kcd
    ${INSTALL_DATA} ${WRKSRC}/CHANGES ${PREFIX}/share/doc/kcd
    ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/kcd
.endif

.include <bsd.port.post.mk>