aboutsummaryrefslogtreecommitdiffstats
path: root/misc/gnuls/Makefile
blob: 0b3a4b24a14133d059c5135cc1f8aba2e4e7a620 (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
45
46
47
48
49
50
# Created by: bmc@WillsCreek.COM
# $FreeBSD$

PORTNAME=   gnuls
PORTVERSION=    8.22
PORTREVISION=   1
CATEGORIES= misc
MASTER_SITES=   GNU/coreutils
DISTNAME=   coreutils-${PORTVERSION}

MAINTAINER= bmc@clapper.org
COMMENT=    GNU colorized 'ls'

OPTIONS_DEFINE=     NLS
NLS_CONFIGURE_ENABLE=   nls
NLS_USES=       gettext

GNU_CONFIGURE=  yes
CONFIGURE_ENV=  FORCE_UNSAFE_CONFIGURE=1
.ifdef QEMU_EMULATING
# XXX bug 224740: configure hangs
CONFIGURE_ENV+= gl_cv_func_printf_enomem=no
.endif
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib

USES=       gmake perl5 tar:xz
USE_LDCONFIG=   yes
USE_PERL5=  build

PLIST_FILES=    bin/dir \
        bin/dircolors \
        bin/gnuls \
        bin/vdir \
        man/man1/dir.1.gz \
        man/man1/dircolors.1.gz \
        man/man1/gnuls.1.gz \
        man/man1/vdir.1.gz

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/dir ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/src/dircolors ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/src/ls ${STAGEDIR}${PREFIX}/bin/gnuls
    ${INSTALL_PROGRAM} ${WRKSRC}/src/vdir ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/man/dir.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/man/dircolors.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/man/ls.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/gnuls.1
    ${INSTALL_MAN} ${WRKSRC}/man/vdir.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

.include <bsd.port.mk>