1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-27 21:29:02 +00:00
freebsd-ports/japanese/nkf/files/patch-aa
Masafumi Max NAKANE 1c079a6644 Convert the Japanese man page to EUC before installing it.
Submitted by:	FUJISHIMA Satsuki <k5@cheerful.com>
2000-03-08 11:19:17 +00:00

30 lines
686 B
Plaintext

--- Makefile.orig Mon Nov 16 19:21:45 1998
+++ Makefile Sun Mar 5 05:33:25 2000
@@ -1,14 +1,22 @@
-CC = cc
-CFLAGS = -O
+PREFIX?=/usr/local
+CC?= cc
+CFLAGS?= -O
SHAR = shar -T
# SHAR = shar
-PERL = perl5
+PERL?= perl5
+INSTALL?=/usr/bin/install
nkf : nkf.c
$(CC) $(CFLAGS) -o nkf nkf.c
+ ./nkf -e nkf.1j > nkf.1j.euc
+
+install:
+ ${INSTALL} -c -o root -g wheel -m 555 nkf ${PREFIX}/bin
+ ${INSTALL} -c -o root -g wheel -m 444 nkf.1 ${PREFIX}/man/man1/nkf.1
+ ${INSTALL} -c -o root -g wheel -m 444 nkf.1j.euc ${PREFIX}/man/ja/man1/nkf.1
clean:
- rm -fr nkf.o nkf nkf.in nkf.out nkf17 *~
+ rm -fr nkf.o nkf nkf.in nkf.out nkf17 nkf.1j.euc *~
test: nkf
perl nkf_test.pl