mirror of
https://github.com/opnsense/src.git
synced 2026-02-15 16:48:36 -05:00
"gnusort". Most of the BSD sort development work was done by Oleg Moskalenko <oleg.moskalenko@citrix.com>. - GNU grep can be set to default by setting WITH_GNU_GREP. It will cause BSD sort to be installed as "bsdsort". Portbuild tested by: linimon
46 lines
738 B
Makefile
46 lines
738 B
Makefile
# $FreeBSD$
|
|
|
|
SORTDIR= ${.CURDIR}/../../../contrib/gnu-sort
|
|
.PATH: ${SORTDIR}/lib ${SORTDIR}/src ${SORTDIR}/man
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.if ${MK_GNU_SORT} == "yes"
|
|
PROG= sort
|
|
.else
|
|
PROG= gnusort
|
|
|
|
CLEANFILES+= gnusort.1
|
|
gnusort.1: sort.1
|
|
cp ${.ALLSRC} ${.TARGET}
|
|
.endif
|
|
|
|
SRCS= sort.c \
|
|
__fpending.c \
|
|
argmatch.c \
|
|
closeout.c \
|
|
dup-safer.c \
|
|
error.c \
|
|
exitfail.c \
|
|
fopen-safer.c \
|
|
hard-locale.c \
|
|
human.c \
|
|
long-options.c \
|
|
memcoll.c \
|
|
physmem.c \
|
|
posixver.c \
|
|
quote.c \
|
|
quotearg.c \
|
|
strnlen.c \
|
|
umaxtostr.c \
|
|
version-etc.c \
|
|
xalloc-die.c \
|
|
xmalloc.c \
|
|
xmemcoll.c \
|
|
xstrtoul.c \
|
|
xstrtoumax.c
|
|
|
|
CFLAGS+=-DHAVE_CONFIG_H -DHAVE_LANGINFO_H=1 -DHAVE_NL_LANGINFO=1 \
|
|
-I${.CURDIR} -I${SORTDIR}/lib
|
|
|
|
.include <bsd.prog.mk>
|