pkgsrc/misc/gnuls/Makefile
2012-06-02 08:51:37 +00:00

33 lines
959 B
Makefile

# $NetBSD: Makefile,v 1.25 2012/06/02 08:51:37 cheusov Exp $
#
.include "../../sysutils/coreutils/Makefile.common"
PKGNAME= ${DISTNAME:S/coreutils/gnuls/}
PKGREVISION= 2
CATEGORIES= misc
COMMENT= GNU ls utility with color support
CONFLICTS= coreutils-[0-9]* linuxls-[0-9]*
do-build:
${RUN} cd ${WRKSRC}/lib && ${BUILD_MAKE_CMD} all
${RUN} cd ${WRKSRC}/src && ${BUILD_MAKE_CMD} version.h
${RUN} cd ${WRKSRC}/src && ${BUILD_MAKE_CMD} dircolors ls
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"