mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
Patch Makefile to respect PREFIX and use our INSTALL macros.
Repoerted by: QATty
This commit is contained in:
parent
d29e038c86
commit
10c836bd56
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234973
@ -14,14 +14,9 @@ DISTFILES= jis2gb.tar.Z
|
|||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= Convert JIS Kanji to GuoBiao Hanzi
|
COMMENT= Convert JIS Kanji to GuoBiao Hanzi
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/jis2gb
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||||
ALL_TARGET=
|
ALL_TARGET=
|
||||||
|
|
||||||
MAN1= jis2gb.1
|
MAN1= ${PORTNAME}.1
|
||||||
MANCOMPRESSED= yes
|
|
||||||
|
|
||||||
post-install:
|
|
||||||
# install manual
|
|
||||||
@${GZIP_CMD} ${PREFIX}/man/man1/jis2gb.1
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,16 +1,19 @@
|
|||||||
--- Makefile.orig Thu Oct 5 01:21:32 1995
|
--- ./Makefile.orig 1995-10-05 10:21:32.000000000 +0200
|
||||||
+++ Makefile Sun Oct 19 01:25:55 2003
|
+++ ./Makefile 2009-06-01 18:14:43.123328777 +0300
|
||||||
@@ -1,6 +1,8 @@
|
@@ -1,6 +1,11 @@
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
||||||
-CFLAGS = -O -DUNDEFCHAR=0xa1f5
|
-CFLAGS = -O -DUNDEFCHAR=0xa1f5
|
||||||
+CC ?= cc
|
+CC?= cc
|
||||||
+CFLAGS ?= -O -pipe
|
+CFLAGS?= -O -pipe
|
||||||
+CFLAGS += -DUNDEFCHAR=0xa1f5
|
+CFLAGS+= -DUNDEFCHAR=0xa1f5
|
||||||
|
+PREFIX?= /usr/local
|
||||||
|
+MANPREFIX?= ${PREFIX}
|
||||||
|
+MAN1PREFIX?= ${MANPREFIX}
|
||||||
|
|
||||||
TABLEC = JX0208GB2312.c JX0208GB8565.c JX0212GB2312.c JX0212GB8565.c \
|
TABLEC = JX0208GB2312.c JX0208GB8565.c JX0212GB2312.c JX0212GB8565.c \
|
||||||
MSSJISGB2312.c MSSJISJX0208.c MSSJISJX0212.c
|
MSSJISGB2312.c MSSJISJX0208.c MSSJISJX0212.c
|
||||||
@@ -13,19 +15,20 @@
|
@@ -13,19 +18,20 @@
|
||||||
./t2c $< $@
|
./t2c $< $@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
@ -24,17 +27,20 @@
|
|||||||
|
|
||||||
jis2gb: $(TABLEO) jis2gb.o
|
jis2gb: $(TABLEO) jis2gb.o
|
||||||
- cc jis2gb.o $(TABLEO) -o jis2gb
|
- cc jis2gb.o $(TABLEO) -o jis2gb
|
||||||
|
- strip jis2gb
|
||||||
+ $(CC) jis2gb.o $(TABLEO) -o jis2gb
|
+ $(CC) jis2gb.o $(TABLEO) -o jis2gb
|
||||||
strip jis2gb
|
+# strip jis2gb
|
||||||
|
|
||||||
install: jis2gb jis2gb.1
|
install: jis2gb jis2gb.1
|
||||||
cp jis2gb /usr/local/bin/jis2gb
|
- cp jis2gb /usr/local/bin/jis2gb
|
||||||
cp jis2gb.1 /usr/local/man/man1/jis2gb.1
|
- cp jis2gb.1 /usr/local/man/man1/jis2gb.1
|
||||||
+ cp jis2gb.el /usr/local/share/emacs/site-lisp/jis2gb.el
|
+ ${BSD_INSTALL_PROGRAM} jis2gb ${PREFIX}/bin/jis2gb
|
||||||
|
+ ${BSD_INSTALL_MAN} jis2gb.1 ${MAN1PREFIX}/man/man1/jis2gb.1
|
||||||
|
+ ${BSD_INSTALL_DATA} jis2gb.el ${PREFIX}/share/emacs/site-lisp/jis2gb.el
|
||||||
# nroff -man jis2gb.1 > /usr/local/catman/C/u_man/cat1/jis2gb.1
|
# nroff -man jis2gb.1 > /usr/local/catman/C/u_man/cat1/jis2gb.1
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@@ -36,7 +39,7 @@
|
@@ -36,7 +42,7 @@
|
||||||
-egrep '0x([2-9]|a[1-b]|f[0-9]|..[2-9])' JX0208GB8565.c JX0212GB8565.c
|
-egrep '0x([2-9]|a[1-b]|f[0-9]|..[2-9])' JX0208GB8565.c JX0212GB8565.c
|
||||||
|
|
||||||
t2c: t2c.c
|
t2c: t2c.c
|
Loading…
Reference in New Issue
Block a user