aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/gbscript
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-02-08 08:29:27 +0800
committerobrien <obrien@FreeBSD.org>1997-02-08 08:29:27 +0800
commitc6dfe1e34e94b58b8cb59b36f06c9902e4499d6f (patch)
tree4cdfd0aeac461f64c7ee17c4e1269e11cf39fa6c /chinese/gbscript
parent68813d64b74ff46983259343dbf1dd074c6f90b7 (diff)
downloadfreebsd-ports-gnome-c6dfe1e34e94b58b8cb59b36f06c9902e4499d6f.tar.gz
freebsd-ports-gnome-c6dfe1e34e94b58b8cb59b36f06c9902e4499d6f.tar.zst
freebsd-ports-gnome-c6dfe1e34e94b58b8cb59b36f06c9902e4499d6f.zip
gbcript converts GB simplified Chinese text to PostScript.
Diffstat (limited to 'chinese/gbscript')
-rw-r--r--chinese/gbscript/Makefile34
-rw-r--r--chinese/gbscript/distinfo2
-rw-r--r--chinese/gbscript/files/patch-0121
-rw-r--r--chinese/gbscript/files/patch-0231
-rw-r--r--chinese/gbscript/pkg-comment1
-rw-r--r--chinese/gbscript/pkg-descr29
-rw-r--r--chinese/gbscript/pkg-plist3
7 files changed, 121 insertions, 0 deletions
diff --git a/chinese/gbscript/Makefile b/chinese/gbscript/Makefile
new file mode 100644
index 000000000000..af5515d4049d
--- /dev/null
+++ b/chinese/gbscript/Makefile
@@ -0,0 +1,34 @@
+# ex:ts=8
+# Ports collection makefile for: gbscript
+# Version required: 1.11
+# Date created: Mon Feb 03, 1997
+# Whom: David O'Brien (obrien@FreeBSD.org)
+#
+# $Id: Makefile,v 1.2 1997/01/25 18:08:40 obrien Exp $
+#
+
+DISTNAME= gbscript-1.11
+PKGTNAME= cn-gbscript-1.11
+CATEGORIES= chinese
+MASTER_SITES= ftp://ftp.ifcss.org/pub/software/unix/print/ \
+ ftp://ftp.ifcss.org/pub/software/fonts/gb/misc/ \
+ ftp://ftp.edu.tw/Chinese/ifcss/software/unix/print/ \
+ ftp://ftp.edu.tw/Chinese/ifcss/software/fonts/gb/misc/ \
+ ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/print/ \
+ ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/fonts/gb/misc/
+DISTFILES= gbscript-1.11.tar.gz cclib.24
+
+MAINTAINER= obrien@NUXI.com
+
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+MAKEFILE= makefile
+CFLAG+= -DPROLOGUE_PATH=\"${PREFIX}/share/chinese/gb\"
+
+do-install:
+ @${MKDIR} ${PREFIX}/share/chinese/gb
+ ${INSTALL_PROGRAM} ${WRKSRC}/gbscript ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/gbscript.pro ${PREFIX}/share/chinese/gb
+ ${INSTALL_DATA} ${DISTDIR}/cclib.24 ${PREFIX}/share/chinese/gb
+
+
+.include <bsd.port.mk>
diff --git a/chinese/gbscript/distinfo b/chinese/gbscript/distinfo
new file mode 100644
index 000000000000..27b0bd4ca3a3
--- /dev/null
+++ b/chinese/gbscript/distinfo
@@ -0,0 +1,2 @@
+MD5 (gbscript-1.11.tar.gz) = 23804291f441f598cd2bca830601c158
+MD5 (cclib.24) = abb1c003d80fac25bb580dc4bd76f44a
diff --git a/chinese/gbscript/files/patch-01 b/chinese/gbscript/files/patch-01
new file mode 100644
index 000000000000..063cc52cfcde
--- /dev/null
+++ b/chinese/gbscript/files/patch-01
@@ -0,0 +1,21 @@
+--- makefile.orig Thu Apr 22 03:14:08 1993
++++ makefile Tue Feb 4 23:51:25 1997
+@@ -7,7 +7,8 @@
+
+ # for gcc
+ CC = gcc
+-CFLAGS = -g -O
++#CFLAGS = -g -O
++DEFS = -DPROLOGUE_PATH=\"${PREFIX}/share/chinese/gb\"
+
+ # for other compilers, add -DNO_FUNCPROTO if your C compiler cannot
+ # the understand ANSI function prototype feature.
+@@ -15,7 +16,7 @@
+ # CFLAGS = -g # -DNO_FUNCPROTO
+
+ .c.o:
+- $(CC) $(CFLAGS) -c $*.c
++ $(CC) $(CFLAGS) $(DEFS) -c $*.c
+
+ all: gbscript
+
diff --git a/chinese/gbscript/files/patch-02 b/chinese/gbscript/files/patch-02
new file mode 100644
index 000000000000..36b5ee7966c6
--- /dev/null
+++ b/chinese/gbscript/files/patch-02
@@ -0,0 +1,31 @@
+--- gbscript.c.orig Mon May 10 19:56:59 1993
++++ gbscript.c Tue Feb 4 23:10:58 1997
+@@ -47,10 +47,19 @@
+ # endif
+ #endif
+
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
++#include <sys/param.h>
++#define stricmp strcasecmp
++#endif
++
+ #ifndef SEEK_SET
+ # define SEEK_SET 0
+ #endif
+
++#ifndef PROLOGUE_PATH
++#define PROLOGUE_PATH "."
++#endif
++
+ #define FALSE 0
+ #define TRUE (!FALSE)
+ #define GBBEGIN 0x00A1
+@@ -150,7 +159,7 @@
+ 12.0,
+ 0.5, 0.0, 0.0};
+
+-char homedir[256] = ".";
++char homedir[256] = PROLOGUE_PATH;
+ char pfilename[64]= "gbscript.pro";
+ char tfilename[64];
+ char ifilename[256] = "";
diff --git a/chinese/gbscript/pkg-comment b/chinese/gbscript/pkg-comment
new file mode 100644
index 000000000000..600db76eb381
--- /dev/null
+++ b/chinese/gbscript/pkg-comment
@@ -0,0 +1 @@
+converts GB simplified Chinese text to PostScript
diff --git a/chinese/gbscript/pkg-descr b/chinese/gbscript/pkg-descr
new file mode 100644
index 000000000000..e1f35cde85ea
--- /dev/null
+++ b/chinese/gbscript/pkg-descr
@@ -0,0 +1,29 @@
+gbscript converts GB simplified Chinese text to PostScript.
+
+Chinese bitmap fonts, which are:
+ o without 'zone gap', and
+ o 16x16 or 24x24 sized
+
+ Some usable fonts are:
+ Name Description File Size
+ [24x24]
+ cclib.24 (Simplified SONG) 588,816
+ cclibf.24 (Traditional SONG) 588,816
+ cclibb.24 (Simplified FANGSONG) 588,816
+ cclibk.24 (Simplified KAI) 588,816
+ cclibh.24 (Simplified HEI) 588,816
+
+ [16x16]
+ ncclib.16 (Simplified) 267,712
+
+ NOTE:
+ o cclib.j24, cclib.f24, cclib.k24, cclib.h24 and cclib.n24
+ are a different set of font files (although derived from
+ same origins), they cannot be used with GBscript.
+ o some fonts do not include those zones for special symbols
+ (in order to save some disk space), thus they are not
+ continuous in zone and there exist 'zone gaps', GBscript
+ currently cannot handle this type of fonts.
+
+ Location: Chinese bitmap fonts can be found in
+ /ftp@ifcss.org:/software/fonts/
diff --git a/chinese/gbscript/pkg-plist b/chinese/gbscript/pkg-plist
new file mode 100644
index 000000000000..4ce512008521
--- /dev/null
+++ b/chinese/gbscript/pkg-plist
@@ -0,0 +1,3 @@
+bin/gbscript
+share/chinese/gb/gbscript.pro
+share/chinese/gb/cclib.24