aboutsummaryrefslogtreecommitdiffstats
path: root/shells/wcd/Makefile
blob: da1df4b37611b1700aa4564c3db7face18cc24a4 (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
# Created by: Pawel Pekala <pawel@FreeBSD.org>
# $FreeBSD$

PORTNAME=   wcd
PORTVERSION=    5.3.3
CATEGORIES= shells
MASTER_SITES=   SF

MAINTAINER= pawel@FreeBSD.org
COMMENT=    Command-line program to change directory fast

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/doc/copying.txt

USES=       gmake ncurses
MAKE_ARGS=  EXT= PREFIX=${PREFIX} docsubdir=${PORTNAME} \
        mandir=${PREFIX}/man

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB=    yes

NLS_USES=   gettext
NLS_MAKE_ARGS_OFF=  ENABLE_NLS=

post-patch:
    @${REINPLACE_CMD} -e '/manfile/ s|datarootdir|prefix|' \
        -e 's|/usr/local|${LOCALBASE}|' \
        ${WRKSRC}/src/Makefile

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wcd

.include <bsd.port.mk>