7d26b3ee33
"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
768 B
Makefile
46 lines
768 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.if ${MK_GNU_SORT} != "yes"
|
|
PROG= sort
|
|
.else
|
|
PROG= bsdsort
|
|
CLEANFILES+= bsdsort.1
|
|
|
|
bsdsort.1: sort.1
|
|
cp ${.ALLSRC} ${.TARGET}
|
|
.endif
|
|
|
|
SRCS= bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c
|
|
|
|
WARNS= 6
|
|
|
|
sort.1: sort.1.in
|
|
/usr/bin/sed ${MAN_SUB} ${.ALLSRC} >${.TARGET}
|
|
|
|
CLEANFILES+= sort.1
|
|
|
|
.if defined(WITH_THREADS)
|
|
CFLAGS+= -DSORT_THREADS
|
|
LDFLAGS+= -lpthread -lmd
|
|
MAN_SUB+= -e 's|%%THREADS%%||g'
|
|
.else
|
|
LDFLAGS+= -lmd
|
|
MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g'
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
NLS+= hu_HU.ISO8859-2
|
|
NLSSRCFILES= ${NLS:S@$@.msg@}
|
|
MAN_SUB+= -e 's|%%NLS%%||g'
|
|
.for lang in ${NLS}
|
|
NLSSRCDIR_${lang}= ${.CURDIR}/nls
|
|
.endfor
|
|
.else
|
|
CFLAGS+= -DWITHOUT_NLS
|
|
MAN_SUB+= -e 's|%%NLS%%|\.\\"|g'
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|