openbsd-ports/chinese/hc/patches/patch-Makefile
kevlo 1522e709da Initial import of hc-3.0
The program converts a GB file to a BIG-5 file, or a BIG-5 file to a GB file.
GB (GuoBiao) refers to the standard implementation of "GB2312-80" of
Mainland China, in which the two bytes representing a GB code have their
most significant bit set to 1.  BIG-5 refers to the Big Five standard
published in 1984 by Taiwan's Institute for Information Industry.
2002-01-24 01:43:57 +00:00

18 lines
469 B
Plaintext

--- Makefile.orig Thu Jan 24 09:08:23 2002
+++ Makefile Thu Jan 24 09:10:05 2002
@@ -5,12 +5,12 @@
b2g:
echo "#! /bin/csh" > b2g
- echo $(PWD)/hc "-m b2g -t" $(PWD)/hc.tab "$$*" >> b2g
+ echo $(PREFIX)/bin/hc "-m b2g -t" $(PREFIX)/share/hc/hc.tab "$$*" >> b2g
chmod a+x b2g
g2b:
echo "#! /bin/csh" > g2b
- echo $(PWD)/hc -m g2b -t $(PWD)/hc.tab "$$*" >> g2b
+ echo $(PREFIX)/bin/hc -m g2b -t $(PREFIX)/share/hc/hc.tab "$$*" >> g2b
chmod a+x g2b
clean: