head	1.6;
access;
symbols
	RELEASE_8_3_0:1.5
	RELEASE_9_0_0:1.5
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.5
	RELEASE_7_3_0:1.5
	RELEASE_8_0_0:1.5
	RELEASE_7_2_0:1.5
	RELEASE_7_1_0:1.5
	RELEASE_6_4_0:1.5
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.5
	RELEASE_6_3_0:1.5
	PRE_XORG_7:1.5
	RELEASE_4_EOL:1.5
	RELEASE_6_2_0:1.5
	RELEASE_6_1_0:1.5
	RELEASE_5_5_0:1.5
	RELEASE_6_0_0:1.5
	RELEASE_5_4_0:1.5
	RELEASE_4_11_0:1.5
	RELEASE_5_3_0:1.5
	RELEASE_4_10_0:1.5
	RELEASE_5_2_1:1.5
	RELEASE_5_2_0:1.5
	RELEASE_4_9_0:1.5
	RELEASE_5_1_0:1.5
	RELEASE_4_8_0:1.5
	RELEASE_5_0_0:1.5
	RELEASE_4_7_0:1.5
	RELEASE_4_6_2:1.5
	RELEASE_4_6_1:1.5
	RELEASE_4_6_0:1.5
	RELEASE_5_0_DP1:1.5
	RELEASE_4_5_0:1.4
	RELEASE_4_4_0:1.4
	RELEASE_4_3_0:1.4
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.2
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2
	RELEASE_4_0_0:1.2
	RELEASE_3_4_0:1.1.1.1
	RELEASE_3_3_0:1.1.1.1
	RELEASE_3_2_0:1.1.1.1
	RELEASE_3_1_0:1.1.1.1
	RELEASE_2_2_8:1.1.1.1
	RELEASE_3_0_0:1.1.1.1
	RELEASE_2_2_7:1.1.1.1
	bg5ps_1_1_b:1.1.1.1
	KEITH:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2012.11.17.05.54.55;	author svnexp;	state Exp;
branches;
next	1.5;

1.5
date	2002.03.14.11.16.37;	author sobomax;	state Exp;
branches;
next	1.4;

1.4
date	2001.01.30.14.18.07;	author keith;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.03.12.26.53;	author kevlo;	state Exp;
branches;
next	1.2;

1.2
date	99.12.24.04.10.21;	author steve;	state Exp;
branches;
next	1.1;

1.1
date	98.06.26.14.19.47;	author vanilla;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.06.26.14.19.47;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Switch exporter over
@
text
@
$FreeBSD: head/chinese/bg5ps/files/patch-aa 300895 2012-07-14 12:56:14Z beat $

--- Makefile.orig	Mon Feb 14 22:41:27 2000
+++ Makefile	Thu Mar 14 09:33:24 2002
@@@@ -19,21 +19,22 @@@@
 
 CC = gcc
 INSTALL = install
-CFLAGS =
+CFLAGS += -I${LOCALBASE}/include/freetype1 -I${LOCALBASE}/include
 LIBS = -lttf -lm
-INCLUDEDIR = 
+LIBSDIR = -L${LOCALBASE}/lib
 
-prefix = /usr
-BINDIR = $(prefix)/bin
-ETCDIR = /etc/chinese/
+
+PREFIX?= /usr/local
+BINDIR = $(PREFIX)/bin
+ETCDIR = $(PREFIX)/etc
 
 all: ttf2psm
 
 %.o : %.c
-	$(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@@
+	$(CC) -c $(CFLAGS) $< -o $@@
 
 ttf2psm: $(OBJS)
-	$(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS)
+	$(CC) $(CFLAGS) $(LIBSDIR) $(LIBS) -o ttf2psm $(OBJS)
 
 install: all bg5ps bg5ps.conf
 	mkdir -p $(ETCDIR)
@


1.5
log
@Adjust in accordance with the new location of freetype1 includes
(${PREFIX}/include/freetype1/freetype, not ${PREFIX}/include/freetype).
@
text
@d2 1
a2 1
$FreeBSD$
@


1.4
log
@Drop gmake dependency during build.

Submitted by:	kevlo, modified by me to respect CFLAGS.
@
text
@d1 5
a5 2
--- Makefile.orig	Tue Feb 15 04:41:27 2000
+++ Makefile	Tue Jan 30 22:01:34 2001
d11 1
a11 1
+CFLAGS += -I${LOCALBASE}/include
@


1.3
log
@Update chinese/bg5ps to 1.3.0p3.  This version has two new features:

- Support both GB2312 and Big5 encodings.
- It can now use TTC and TTF fonts.

It's also the final version of bg5ps.

PR: 22549
Submitted by: MAINTAINER
@
text
@d1 5
a5 3
--- Makefile.orig	Thu Nov  2 22:44:32 2000
+++ Makefile	Thu Nov  2 22:47:11 2000
@@@@ -21,11 +21,13 @@@@
d7 2
a8 1
 CFLAGS =
d11 1
a11 2
+LIBSDIR = -L/usr/local/lib
+INCLUDEDIR = -I/usr/local/include
d14 2
d17 3
a19 4
+prefix = /usr/local
 BINDIR = $(prefix)/bin
-ETCDIR = /etc/chinese/
+ETCDIR = /usr/local/etc/etc
d23 3
a25 2
@@@@ -33,12 +35,12 @@@@
 	$(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@@
d29 1
a29 1
+	$(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBSDIR) $(LIBS) -o ttf2psm $(OBJS)
a32 6
 	mkdir -p $(BINDIR)
-	$(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf
+	$(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf.sample
 	$(INSTALL) -m755 bg5ps $(BINDIR)
 	$(INSTALL) -m755 ttf2psm $(BINDIR)
 
@


1.2
log
@Update to version 1.1b2.

PR:		15653
Submitted by:	maintainer
@
text
@d1 34
a34 56
--- bg5ps.orig	Fri Oct  2 08:35:41 1998
+++ bg5ps	Fri Dec 17 17:01:21 1999
@@@@ -1,4 +1,4 @@@@
-#!/usr/bin/python
+#!/usr/local/bin/python
 ################################################################################
 # bg5ps.py which use the ttf2ps program to convert the Big5 Coding chinese     #
 # text into printable postscript file.  Since it uses true type font, the      #
@@@@ -418,10 +418,10 @@@@
                 exec l
             cf.close()
         else:
-            sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/bg5ps.conf.")
-            if os.path.isfile("/etc/bg5ps.conf"):
-                sys.stderr.write("\n /etc/bg5ps.conf found. Use configuration file /etc/bg5ps.conf")
-                cf=open("/etc/bg5ps.conf","r")
+            sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /usr/local/etc/chinese/bg5ps.conf.")
+            if os.path.isfile("/usr/local/etc/chinese/bg5ps.conf"):
+                sys.stderr.write("\n /usr/local/etc/chinese/bg5ps.conf found. Use configuration file /usr/local/etc/chinese/bg5ps.conf")
+                cf=open("/usr/local/etc/chinese/bg5ps.conf","r")
                 for l in cf.readlines():
                     exec l
                 cf.close()
--- bg5ps.conf.orig	Fri Dec 17 16:58:30 1999
+++ bg5ps.conf	Fri Dec 17 17:07:48 1999
@@@@ -1,9 +1,9 @@@@
 #chineseFontPath: wr|(w]: P bg5ps P) 
-chineseFontPath=""
+chineseFontPath="/usr/X11R6/lib/X11/fonts/TrueType"
 #modify the above line
 
 #fontName: wrɮצW(w]: ntu_kai) 
-fontName="ntu_kai"
+fontName="moe_kai"
 
 #oddPages: 0 X_ƭA1 X_ƭ(w]: 1) 
 #true=1, false=0 
--- ttf2psm.c.orig	Wed Aug 26 21:50:26 1998
+++ ttf2psm.c	Fri Dec 17 17:03:31 1999
@@@@ -10,7 +10,6 @@@@
 #include <math.h>
 #include <stdlib.h>
 #include <string.h>
-#include <malloc.h>
 #include <memory.h>
 #include <time.h>
 
@@@@ -96,7 +95,7 @@@@
 void Beg();
 void End();
 
-void main(int argc, char *argv[]){
+int main(int argc, char *argv[]){
   FILE *fn;
   short cidx, i;
   time_t t1, t2;
@


1.1
log
@Initial revision
@
text
@d1 2
a2 10
--- Makefile.orig	Fri Jun 26 22:05:28 1998
+++ Makefile	Fri Jun 26 22:06:00 1998
@@@@ -0,0 +1,5 @@@@
+all:
+	$(CC) $(CFLAGS) -o ttf2psm ttf2psm.c
+
+clean:
+	-@@rm ttf2psm
--- bg5ps.orig	Mon Dec  8 15:28:30 1997
+++ bg5ps	Wed Jun 17 13:08:09 1998
d9 32
a40 3
--- ttf2psm.c.orig	Mon Dec  8 03:57:58 1997
+++ ttf2psm.c	Wed Jun 17 13:35:48 1998
@@@@ -6,7 +6,6 @@@@
d48 9
@


1.1.1.1
log
@bg5ps is a python script that generates Postscript from BIG5 encoded file.
PR:		ports/6973
Submitted by:	J. T. Jang <keith.email.gcn.net.tw>
@
text
@@
