summaryrefslogtreecommitdiffstats
path: root/share/termcap
diff options
context:
space:
mode:
Diffstat (limited to 'share/termcap')
-rw-r--r--share/termcap/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/share/termcap/Makefile b/share/termcap/Makefile
index 2d9b9ff..c44a17e 100644
--- a/share/termcap/Makefile
+++ b/share/termcap/Makefile
@@ -14,8 +14,17 @@ CLEANFILES+= termcap termcap.db
termcap: reorder termcap.src
TERM=dumb TERMCAP=dumb: ex - ${.CURDIR}/termcap.src < ${.CURDIR}/reorder
+.include <bsd.endian.mk>
+.if ${TARGET_ENDIANNESS} == "1234"
+CAP_MKDB_ENDIAN= -l
+.elif ${TARGET_ENDIANNESS} == "4321"
+CAP_MKDB_ENDIAN= -b
+.else
+CAP_MKDB_ENDIAN=
+.endif
+
termcap.db: termcap
- cap_mkdb termcap
+ cap_mkdb ${CAP_MKDB_ENDIAN} termcap
etc-termcap:
ln -fs ${BINDIR}/misc/termcap ${DESTDIR}/etc/termcap
OpenPOWER on IntegriCloud