1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/japanese/nkf/files/patch-aa
Ruslan Makhmatkhanov 9ab89cf893 - update to 2.1.2 [1]
- silence mkdir calls (it complains that directory already exists)

PR:		160560 [1]
Submitted by:	Tsurutani Naoki <turutani at scphys.kyoto-u.ac dot jp>
Approved by:	maintainer (timeout; 4 months+)
2012-01-17 19:57:40 +00:00

54 lines
1.3 KiB
Plaintext

--- Makefile.orig 2009-11-17 09:33:04.000000000 +0900
+++ Makefile 2010-02-15 23:02:44.471546444 +0900
@@ -1,18 +1,22 @@
-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
-prefix = /usr/local
+PREFIX?= /usr/local
+INSTALL?= /usr/bin/install
+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
nkf : nkf.o utf8tbl.o
$(CC) $(CFLAGS) -o nkf nkf.o utf8tbl.o
+ ./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 )
install:
- -$(MKDIR) $(prefix)/bin
- -$(MKDIR) $(prefix)/man
- -$(MKDIR) $(prefix)/man/man1
- -$(MKDIR) $(prefix)/man/ja
- -$(MKDIR) $(prefix)/man/ja/man1
- 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
shar:
-mkdir nkf-$(VERSION)