1 # $NetBSD: Makefile,v 1.24 2012/05/29 18:19:28 cheusov Exp $
4 .
include "../../sysutils/coreutils/Makefile.common"
6 PKGNAME
= ${DISTNAME
:S
/coreutils
/gnuls
/}
10 COMMENT
= GNU ls utility with color support
12 CONFLICTS
= coreutils-
[0-9]* linuxls-
[0-9]*
15 ${RUN} cd
${WRKSRC}/lib
&& ${BUILD_MAKE_CMD} all
16 ${RUN} cd
${WRKSRC}/src
&& ${BUILD_MAKE_CMD} version.h
17 ${RUN} cd
${WRKSRC}/src
&& ${BUILD_MAKE_CMD} dircolors ls
22 .for f in ls dircolors
23 ${INSTALL_PROGRAM} ${WRKSRC}/src
/${f} \
24 ${DESTDIR}${PREFIX}/bin
/g
${f}
25 ${INSTALL_DATA} ${WRKSRC}/man
/${f}.1 \
26 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
/g
${f}.1
27 ${LN} -sf
${PREFIX}/bin
/g
${f} ${DESTDIR}${PREFIX}/gnu
/bin
/${f}
28 ${LN} -sf
${PREFIX}/${PKGMANDIR}/man1
/g
${f}.1 ${DESTDIR}${PREFIX}/gnu
/man
/man1
/${f}.1
31 .
include "../../converters/libiconv/buildlink3.mk"
32 .
include "../../devel/gettext-lib/buildlink3.mk"
33 .
include "../../mk/bsd.pkg.mk"