freebsd-ports/misc/gnuls/Makefile
Antoine Brodin 1301d18baf Skip ENOMEM check for printf when building with qemu, this makes
configure hang

PR:		224740
Reported by:	pkg-fallout
MFH:		2018Q1
2018-03-17 09:14:09 +00:00

50 lines
1.3 KiB
Makefile

# 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>