1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= sort 6 7SRCS= bwstring.c coll.c file.c mem.c radixsort.c sort.c vsort.c 8 9sort.1: sort.1.in 10 /usr/bin/sed ${MAN_SUB} ${.ALLSRC} >${.TARGET} 11 12CLEANFILES+= sort.1 13 14.if ${MK_SORT_THREADS} != "no" 15CFLAGS+= -DSORT_THREADS 16LDADD= -lpthread -lmd 17DPADD= ${LIBPTHREAD} ${LIBMD} 18MAN_SUB+= -e 's|%%THREADS%%||g' 19.else 20LDADD= -lmd 21DPADD= ${LIBMD} 22MAN_SUB+= -e 's|%%THREADS%%|\.\\"|g' 23.endif 24 25.if ${MK_NLS} != "no" 26NLS+= hu_HU.ISO8859-2 27NLSSRCFILES= ${NLS:S@$@.msg@} 28MAN_SUB+= -e 's|%%NLS%%||g' 29.for lang in ${NLS} 30NLSSRCDIR_${lang}= ${.CURDIR}/nls 31.endfor 32.else 33CFLAGS+= -DWITHOUT_NLS 34MAN_SUB+= -e 's|%%NLS%%|\.\\"|g' 35.endif 36 37.include <bsd.prog.mk> 38