summaryrefslogtreecommitdiff
path: root/misc/gnuls/Makefile
blob: 789c68d08337b7d439e947980e2b12602cff2612 (plain)
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
# $NetBSD: Makefile,v 1.26 2014/02/04 14:33:54 richard Exp $
#

.include "../../sysutils/coreutils/Makefile.common"

PKGNAME=	${DISTNAME:S/coreutils/gnuls/}
CATEGORIES=	misc

COMMENT=	GNU ls utility with color support

CONFLICTS=	coreutils-[0-9]* linuxls-[0-9]*

BUILD_TARGET=	gnuls

AUTO_MKDIRS=	yes

do-install:
.for f in ls dircolors
	${INSTALL_PROGRAM} ${WRKSRC}/src/${f} \
		${DESTDIR}${PREFIX}/bin/g${f}
	${INSTALL_DATA} ${WRKSRC}/man/${f}.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/g${f}.1
	${LN} -sf ${PREFIX}/bin/g${f} ${DESTDIR}${PREFIX}/gnu/bin/${f}
	${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/g${f}.1 ${DESTDIR}${PREFIX}/gnu/man/man1/${f}.1
.endfor

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"