2012-05-11 12:37:16 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2012-05-11 12:37:16 +00:00
|
|
|
|
|
|
|
PROG= sort
|
|
|
|
|
|
|
|
SRCS= bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c
|
|
|
|
|
|
|
|
sort.1: sort.1.in
|
|
|
|
/usr/bin/sed ${MAN_SUB} ${.ALLSRC} >${.TARGET}
|
|
|
|
|
|
|
|
CLEANFILES+= sort.1
|
|
|
|
|
2014-04-05 18:01:49 +00:00
|
|
|
.if ${MK_SORT_THREADS} != "no"
|
2012-05-11 12:37:16 +00:00
|
|
|
CFLAGS+= -DSORT_THREADS
|
|
|
|
LDFLAGS+= -lpthread -lmd
|
|
|
|
MAN_SUB+= -e 's|%%THREADS%%||g'
|
|
|
|
.else
|
|
|
|
LDFLAGS+= -lmd
|
|
|
|
MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g'
|
|
|
|
.endif
|
|
|
|
|
2014-04-05 18:01:49 +00:00
|
|
|
.if ${MK_NLS} != "no"
|
2012-05-11 12:37:16 +00:00
|
|
|
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
|
2012-06-27 05:50:15 +00:00
|
|
|
MAN_SUB+= -e 's|%%NLS%%|\.\\"|g'
|
2012-05-11 12:37:16 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|