aboutsummaryrefslogtreecommitdiffstats
path: root/misc/clex/Makefile
blob: 021f086792e2e21cfe92c330536277f08fa0eb56 (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
# Created by: Michael L. Hostbaek <mich@freebsdcluster.org>
# $FreeBSD$

PORTNAME=   clex
PORTVERSION=    4.6.4
CATEGORIES= misc
MASTER_SITES=   http://www.clex.sk/download/

MAINTAINER= mich@FreeBSD.org
COMMENT=    A command line file manager

LICENSE=    GPLv2

GNU_CONFIGURE=  yes
USES=       ncurses
USE_GMAKE=  yes

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

PLIST_FILES=    bin/clex bin/cfg-clex bin/kbd-test
PORTDOCS=   AUTHORS ChangeLog README
MAN1=       clex.1 cfg-clex.1 kbd-test.1

post-patch:
    @${REINPLACE_CMD} -e '18s,^,#include <stdio.h>,' \
        ${WRKSRC}/src/preview.c

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
post-install:
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

.include <bsd.port.mk>