aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/nkf/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/nkf/files/patch-Makefile')
-rw-r--r--japanese/nkf/files/patch-Makefile54
1 files changed, 29 insertions, 25 deletions
diff --git a/japanese/nkf/files/patch-Makefile b/japanese/nkf/files/patch-Makefile
index 79e9e20fb514..ba6e271f1dff 100644
--- a/japanese/nkf/files/patch-Makefile
+++ b/japanese/nkf/files/patch-Makefile
@@ -1,38 +1,45 @@
---- Makefile.orig 2009-11-17 09:33:04.000000000 +0900
-+++ Makefile 2010-02-15 23:02:44.471546444 +0900
-@@ -1,18 +1,22 @@
+--- Makefile.orig 2013-11-22 14:17:36.000000000 +0900
++++ Makefile 2013-12-26 10:08:41.000000000 +0900
+@@ -1,21 +1,31 @@
-CC = cc
-CFLAGS = -g -O2 -Wall -pedantic
-+CC?= cc
-+CFLAGS?= -g -O2 -Wall -pedantic
++CC? = cc
++CFLAGS? = -g -O2 -Wall -pedantic
# CFLAGS = -O3
SHAR = shar
# SHAR = shar -T
--PERL = perl
--RM = rm -rf
-+PERL?= perl
-+RM?= rm -rf
- VERSION = 2.1.2
- MKDIR = mkdir
+ PERL = perl
+ RM = rm -rf
+ VERSION = 2.1.3
+-MKDIR = mkdir
-prefix = /usr/local
-+PREFIX?= /usr/local
-+INSTALL?= /usr/bin/install
++MKDIR? = mkdir
++prefix = $(DESTDIR)$(PREFIX)
++manprefix = $(DESTDIR)$(MANPREFIX)
+ PYTHON2 = python
+ PYTHON3 = python
+BSD_INSTALL_PROGRAM?= ${INSTALL} -s -o root -g wheel -m 555
+BSD_INSTALL_MAN?= ${INSTALL} -o root -g wheel -m 444
.PHONY: clean install test tar shar
++all: nkf man
++
nkf : nkf.o utf8tbl.o
$(CC) $(CFLAGS) -o nkf nkf.o utf8tbl.o
-+ ./nkf -e nkf.1j > nkf.1j.euc
++man: nkf.1j nkf.1j.euc
++
++nkf.1j.euc: nkf nkf.1j
++ ./nkf -e nkf.1j > nkf.1j.euc
++
nkf.o : nkf.c nkf.h utf8tbl.h config.h
$(CC) $(CFLAGS) -c nkf.c
-@@ -34,14 +38,14 @@
- make test )
+
+@@ -45,13 +55,11 @@
install:
-- -$(MKDIR) $(prefix)/bin
+ -$(MKDIR) $(prefix)/bin
- -$(MKDIR) $(prefix)/man
- -$(MKDIR) $(prefix)/man/man1
- -$(MKDIR) $(prefix)/man/ja
@@ -40,14 +47,11 @@
- cp -f nkf $(prefix)/bin/
- cp -f nkf.1 $(prefix)/man/man1/
- cp -f nkf.1j $(prefix)/man/ja/man1/nkf.1
-+ -$(MKDIR) -p $(PREFIX)/bin
-+ -$(MKDIR) -p $(PREFIX)/man
-+ -$(MKDIR) -p $(PREFIX)/man/man1
-+ -$(MKDIR) -p $(PREFIX)/man/ja
-+ -$(MKDIR) -p $(PREFIX)/man/ja/man1
-+ ${BSD_INSTALL_PROGRAM} nkf ${PREFIX}/bin/
-+ ${BSD_INSTALL_MAN} nkf.1 ${PREFIX}/man/man1/
-+ ${BSD_INSTALL_MAN} nkf.1j.euc ${PREFIX}/man/ja/man1/nkf.1
++ -$(MKDIR) $(manprefix)/man/man1
++ -$(MKDIR) $(manprefix)/man/ja/man1
++ ${BSD_INSTALL_PROGRAM} nkf $(prefix)/bin/
++ ${BSD_INSTALL_MAN} nkf.1 $(manprefix)/man/man1/
++ ${BSD_INSTALL_MAN} nkf.1j.euc $(manprefix)/man/ja/man1/nkf.1
shar:
-mkdir nkf-$(VERSION)