aboutsummaryrefslogtreecommitdiff
path: root/graphics/tgif/files
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2007-06-09 11:59:41 +0000
committerHiroki Sato <hrs@FreeBSD.org>2007-06-09 11:59:41 +0000
commit572f5ae6c54b91e298ce94b7ce31a402891abcca (patch)
tree960062a17d6a12153ce8023639b75d8a08a9e632 /graphics/tgif/files
parent10a62574e8f05b0ff0acfd164ffd61e39b06fc6f (diff)
downloadports-572f5ae6c54b91e298ce94b7ce31a402891abcca.tar.gz
ports-572f5ae6c54b91e298ce94b7ce31a402891abcca.zip
Notes
Diffstat (limited to 'graphics/tgif/files')
-rw-r--r--graphics/tgif/files/Tgif.tmpl-freebsdports16
-rw-r--r--graphics/tgif/files/patch-Tgif.tmpl8
-rw-r--r--graphics/tgif/files/patch-font.c41
-rw-r--r--graphics/tgif/files/patch-po-Po.tmpl9
-rw-r--r--graphics/tgif/files/patch-tgif.man11
5 files changed, 85 insertions, 0 deletions
diff --git a/graphics/tgif/files/Tgif.tmpl-freebsdports b/graphics/tgif/files/Tgif.tmpl-freebsdports
new file mode 100644
index 000000000000..912e07e72c65
--- /dev/null
+++ b/graphics/tgif/files/Tgif.tmpl-freebsdports
@@ -0,0 +1,16 @@
+XCOMM $FreeBSD$
+#ifdef WITH_NLS
+#define IHaveSubdirs
+SUBDIRS= po
+
+LOCALEDIR= $(PREFIX)/share/locale
+MOREDEFINES= -DUSE_XT_INITIALIZE -DENABLE_NLS
+
+LOCAL_LIBRARIES= $(XLIB) $(XTOOLLIB)
+EXTRA_INCLUDES+= -I$(LOCALBASE)/include
+EXTRA_LIBRARIES+= -L$(LOCALBASE)/lib -lintl
+#endif /* WITH_NLS */
+
+#ifdef WITH_A4SIZE
+MOREDEFINES+= -DA4PAPER
+#endif /* WITH_A4SIZE */
diff --git a/graphics/tgif/files/patch-Tgif.tmpl b/graphics/tgif/files/patch-Tgif.tmpl
new file mode 100644
index 000000000000..4c15ff814036
--- /dev/null
+++ b/graphics/tgif/files/patch-Tgif.tmpl
@@ -0,0 +1,8 @@
+--- Tgif.tmpl.orig Tue May 22 17:10:16 2007
++++ Tgif.tmpl Tue May 22 17:13:48 2007
+@@ -59,3 +59,5 @@
+ XCOMM LOCAL_LIBRARIES = $(XMULIB) $(XTOOLLIB) $(XLIB)
+ XCOMM SYS_LIBRARIES = -ldl -lm
+ SYS_LIBRARIES = -lm
++
++#include "Tgif.tmpl-freebsdports"
diff --git a/graphics/tgif/files/patch-font.c b/graphics/tgif/files/patch-font.c
new file mode 100644
index 000000000000..8ada18a9de58
--- /dev/null
+++ b/graphics/tgif/files/patch-font.c
@@ -0,0 +1,41 @@
+--- font.c.orig Sat Jun 9 20:34:29 2007
++++ font.c Sat Jun 9 20:36:15 2007
+@@ -869,10 +869,10 @@
+ (nOdd || ((*psz)&0x80) == nDoubleByte);
+ psz++, nSubStrIndex++) {
+ if (nOdd) {
+- gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz);
++ gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz) & 0x7f;
+ nDoubleByteIndex++;
+ } else {
+- gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz);
++ gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz) & 0x7f;
+ }
+ nOdd = !nOdd;
+ }
+@@ -932,10 +932,10 @@
+ (nOdd || ((*psz)&0x80) == nDoubleByte);
+ psz++, nSubStrIndex++) {
+ if (nOdd) {
+- gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz);
++ gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz) & 0x7f;
+ nDoubleByteIndex++;
+ } else {
+- gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz);
++ gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz) & 0x7f;
+ }
+ nOdd = !nOdd;
+ }
+@@ -981,10 +981,10 @@
+ (nOdd || ((*psz)&0x80) == nDoubleByte);
+ psz++, nSubStrIndex++) {
+ if (nOdd) {
+- gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz);
++ gpszTmpStr16[nDoubleByteIndex].byte2 = (unsigned char)(*psz) & 0x7f;
+ nDoubleByteIndex++;
+ } else {
+- gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz);
++ gpszTmpStr16[nDoubleByteIndex].byte1 = (unsigned char)(*psz) & 0x7f;
+ }
+ nOdd = !nOdd;
+ }
diff --git a/graphics/tgif/files/patch-po-Po.tmpl b/graphics/tgif/files/patch-po-Po.tmpl
new file mode 100644
index 000000000000..01fd642f23a7
--- /dev/null
+++ b/graphics/tgif/files/patch-po-Po.tmpl
@@ -0,0 +1,9 @@
+--- po/Po.tmpl.orig Sat Jun 17 02:35:00 2000
++++ po/Po.tmpl Sat Jun 17 02:35:26 2000
+@@ -8,5 +8,5 @@
+ MKINSTALLDIRS = install -d
+
+ DESTDIR =
+-SYSNLSDIR = /usr/share/locale
++SYSNLSDIR = $(PREFIX)/share/locale
+ NLSDIR = $(DESTDIR)$(SYSNLSDIR)
diff --git a/graphics/tgif/files/patch-tgif.man b/graphics/tgif/files/patch-tgif.man
new file mode 100644
index 000000000000..6376be445bc6
--- /dev/null
+++ b/graphics/tgif/files/patch-tgif.man
@@ -0,0 +1,11 @@
+--- tgif.man.orig Wed Jun 14 07:30:00 2006
++++ tgif.man Tue May 22 17:05:48 2007
+@@ -8,7 +8,7 @@
+ .\"
+ .\"
+ .\"
+-.TH tgif n "Version 4.1 Patchlevel 45 and Above" "Tgif"
++.TH tgif 1L "Version 4.1 Patchlevel 45 and Above" "Tgif"
+ .\"
+ .SH NAME
+ .\"