mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
96bbf588b8
Submitted by: Yasuhiro Fukuma <yasuf@big.or.jp> in ports-jp ML #7987
24 lines
667 B
Makefile
24 lines
667 B
Makefile
PREFIX?= /usr/local
|
|
MANDIR= ${PREFIX}/man/ja/man
|
|
MROFF_CMD= /usr/local/bin/groff -Tnippon -man
|
|
|
|
NOMLINKS= yes
|
|
|
|
afterinstall:
|
|
.if defined(MLINKS) && !empty(MLINKS)
|
|
@set `echo ${MLINKS} " " | sed 's/\.\([^.]\)\([^.]*\) /.\1\2 \1 /g'`; \
|
|
while : ; do \
|
|
case $$# in \
|
|
0) break;; \
|
|
[123]) echo "warn: empty MLINK: $$1 $$2 $$3"; break;; \
|
|
esac; \
|
|
name=$$1; shift; sect=$$1; shift; \
|
|
l=${DESTDIR}${MANDIR}$${sect}${MANSUBDIR}/$$name; \
|
|
name=$$1; shift; sect=$$1; shift; \
|
|
t=${DESTDIR}${MANDIR}$${sect}${MANSUBDIR}/$$name; \
|
|
${ECHO} $${t}${ZEXT} -\> $${l}${ZEXT}; \
|
|
rm -f $${t} $${t}${MCOMPRESS_EXT}; \
|
|
ln $${l}${ZEXT} $${t}${ZEXT}; \
|
|
done
|
|
.endif
|