aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/kcfonts
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2011-09-05 11:43:01 +0800
committervanilla <vanilla@FreeBSD.org>2011-09-05 11:43:01 +0800
commitd4f9c3a7d244173296d2ebbe39866e6ca5f7689e (patch)
tree422ff19280faa560defd27e240cdf5bcb7ae8765 /chinese/kcfonts
parent34a9b0f81f058c7f62f7978eb08554e89ffac659 (diff)
downloadfreebsd-ports-gnome-d4f9c3a7d244173296d2ebbe39866e6ca5f7689e.tar.gz
freebsd-ports-gnome-d4f9c3a7d244173296d2ebbe39866e6ca5f7689e.tar.zst
freebsd-ports-gnome-d4f9c3a7d244173296d2ebbe39866e6ca5f7689e.zip
Fix build error with clang.
Diffstat (limited to 'chinese/kcfonts')
-rw-r--r--chinese/kcfonts/files/patch-aa15
-rw-r--r--chinese/kcfonts/files/patch-kca2et.c11
2 files changed, 21 insertions, 5 deletions
diff --git a/chinese/kcfonts/files/patch-aa b/chinese/kcfonts/files/patch-aa
index 10d03999558c..4b93815e31ea 100644
--- a/chinese/kcfonts/files/patch-aa
+++ b/chinese/kcfonts/files/patch-aa
@@ -1,6 +1,6 @@
---- Makefile.orig Sun Dec 17 04:00:46 1995
-+++ Makefile Sun Apr 30 10:58:22 2000
-@@ -2,13 +2,13 @@
+--- Makefile.orig 1995-12-17 04:00:46.000000000 +0800
++++ Makefile 2011-09-05 11:35:47.000000000 +0800
+@@ -2,17 +2,17 @@
# Kau Chauo Chinese Fanti Ming Fonts Version 1.05 For FreeBSD
#
# All fonts source is contributed by Kau Chauo Business CO.
@@ -18,7 +18,12 @@
FONTS =kc24f.pcf.gz kc15f.pcf.gz kc8x15.pcf.gz kc12x24.pcf.gz
PROGS =kc24f kc15f kc8x15 kc12x24 kca2et
OBJS =tran.o kc24f.o kc15f.o kc8x15.o kc12x24.o kca2et.o
-@@ -22,10 +22,14 @@
+-CC =gcc
++#CC =gcc
+
+ all: $(FONTS)
+
+@@ -22,10 +22,14 @@ kc15f.pcf.gz: kc15f
./kc15f | bdftopcf | gzip - > kc15f.pcf.gz
kc8x15.pcf.gz: kca2et kc8x15
./kca2et kctext16.f00 ascfont.15 256 16 15
@@ -35,7 +40,7 @@
kc24f: tran.o kc24f.o
$(CC) $(CFLAGS) tran.o kc24f.o -o $@
-@@ -42,7 +46,9 @@
+@@ -42,7 +46,9 @@ install:
if [ ! -d $(CFONTDIR) ]; then mkdir $(CFONTDIR); fi
cp kc*f.pcf.gz $(CFONTDIR)
cp kc*x*.pcf.gz $(EFONTDIR)
diff --git a/chinese/kcfonts/files/patch-kca2et.c b/chinese/kcfonts/files/patch-kca2et.c
new file mode 100644
index 000000000000..495b0368c8a3
--- /dev/null
+++ b/chinese/kcfonts/files/patch-kca2et.c
@@ -0,0 +1,11 @@
+--- kca2et.c.orig 2011-09-05 11:37:39.000000000 +0800
++++ kca2et.c 2011-09-05 11:37:51.000000000 +0800
+@@ -10,7 +10,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+ int i;
+ unsigned char tmp[60];