aboutsummaryrefslogtreecommitdiffstats
path: root/misc/iselect/Makefile
blob: 1c5bf41c0faf3d86ff6871835dcaff44924fbd85 (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
# Created by: Ralf S. Engelschall <rse@engelschall.com>
# $FreeBSD$

PORTNAME=   iselect
PORTVERSION=    1.4.0
PORTREVISION=   1
CATEGORIES= misc
MASTER_SITES=   OSSP/tool/iselect

MAINTAINER= ports@FreeBSD.org
COMMENT=    Interactive Selection Tool

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       shebangfix
SHEBANG_FILES=  example/gotourl/gotourl \
        example/ilogin/ilogin \
        example/melm/melm \
        example/mtin/mtin \
        example/scvs/scvs
perl_OLD_CMD=   /sw/bin/perl
GNU_CONFIGURE=  yes

PLIST_FILES=    bin/iselect man/man1/iselect.1.gz
PORTEXAMPLES=   *

OPTIONS_DEFINE= SLANG EXAMPLES
SLANG_DESC= Link with slang
SLANG_LIB_DEPENDS=  libslang.so:${PORTSDIR}/devel/libslang2
SLANG_CONFIGURE_ON= --with-incdir=${LOCALBASE}/include \
            --with-libdir=${LOCALBASE}/lib

post-patch:
    @${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/iselect ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/iselect.1 ${STAGEDIR}${MANPREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    cd ${WRKSRC}/example && ${FIND} . | \
        ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>