aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-06-01 15:23:55 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-06-01 15:23:55 +0000
commit10c836bd56d9f3ccf7750fc377ce4581cbd22f00 (patch)
tree1fee7bb4c096b34bf7f33b106040af5f8c1097f6 /chinese
parentd29e038c8624695e2d97aabacfb3bc2eaba2836b (diff)
downloadports-10c836bd56d9f3ccf7750fc377ce4581cbd22f00.tar.gz
ports-10c836bd56d9f3ccf7750fc377ce4581cbd22f00.zip
Notes
Diffstat (limited to 'chinese')
-rw-r--r--chinese/jis2gb/Makefile9
-rw-r--r--chinese/jis2gb/files/patch-Makefile (renamed from chinese/jis2gb/files/patch-aa)30
2 files changed, 20 insertions, 19 deletions
diff --git a/chinese/jis2gb/Makefile b/chinese/jis2gb/Makefile
index da8e16d62cae..9d38a6407176 100644
--- a/chinese/jis2gb/Makefile
+++ b/chinese/jis2gb/Makefile
@@ -14,14 +14,9 @@ DISTFILES= jis2gb.tar.Z
MAINTAINER= ports@FreeBSD.org
COMMENT= Convert JIS Kanji to GuoBiao Hanzi
-WRKSRC= ${WRKDIR}/jis2gb
+WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET=
-MAN1= jis2gb.1
-MANCOMPRESSED= yes
-
-post-install:
-# install manual
- @${GZIP_CMD} ${PREFIX}/man/man1/jis2gb.1
+MAN1= ${PORTNAME}.1
.include <bsd.port.mk>
diff --git a/chinese/jis2gb/files/patch-aa b/chinese/jis2gb/files/patch-Makefile
index 32aed525f20a..7c5009930ff0 100644
--- a/chinese/jis2gb/files/patch-aa
+++ b/chinese/jis2gb/files/patch-Makefile
@@ -1,16 +1,19 @@
---- Makefile.orig Thu Oct 5 01:21:32 1995
-+++ Makefile Sun Oct 19 01:25:55 2003
-@@ -1,6 +1,8 @@
+--- ./Makefile.orig 1995-10-05 10:21:32.000000000 +0200
++++ ./Makefile 2009-06-01 18:14:43.123328777 +0300
+@@ -1,6 +1,11 @@
SHELL = /bin/sh
-CFLAGS = -O -DUNDEFCHAR=0xa1f5
-+CC ?= cc
-+CFLAGS ?= -O -pipe
-+CFLAGS += -DUNDEFCHAR=0xa1f5
++CC?= cc
++CFLAGS?= -O -pipe
++CFLAGS+= -DUNDEFCHAR=0xa1f5
++PREFIX?= /usr/local
++MANPREFIX?= ${PREFIX}
++MAN1PREFIX?= ${MANPREFIX}
TABLEC = JX0208GB2312.c JX0208GB8565.c JX0212GB2312.c JX0212GB8565.c \
MSSJISGB2312.c MSSJISJX0208.c MSSJISJX0212.c
-@@ -13,19 +15,20 @@
+@@ -13,19 +18,20 @@
./t2c $< $@
.c.o:
@@ -24,17 +27,20 @@
jis2gb: $(TABLEO) jis2gb.o
- cc jis2gb.o $(TABLEO) -o jis2gb
+- strip jis2gb
+ $(CC) jis2gb.o $(TABLEO) -o jis2gb
- strip jis2gb
++# strip jis2gb
install: jis2gb jis2gb.1
- cp jis2gb /usr/local/bin/jis2gb
- cp jis2gb.1 /usr/local/man/man1/jis2gb.1
-+ cp jis2gb.el /usr/local/share/emacs/site-lisp/jis2gb.el
+- cp jis2gb /usr/local/bin/jis2gb
+- cp jis2gb.1 /usr/local/man/man1/jis2gb.1
++ ${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
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
t2c: t2c.c