summaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2005-03-04 13:04:06 +0000
committerdaichi <daichi@FreeBSD.org>2005-03-04 13:04:06 +0000
commit58145886da78e6c5ac10b6698677cc94b3f95779 (patch)
treeb21dc2365610dbae45e3f85c098a5383c18de89f /textproc
parent38e9496fe41c6f7ce0b612f4574cc3ebec1db44f (diff)
downloadFreeBSD-ports-58145886da78e6c5ac10b6698677cc94b3f95779.zip
FreeBSD-ports-58145886da78e6c5ac10b6698677cc94b3f95779.tar.gz
IIIMF-related ports: I have forgotten to add two patches
Submitted by: Masanori OZAWA <ozawa@ongs.co.jp>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am34
-rw-r--r--textproc/iiimf-protocol-lib/files/patch-acfiles_check_sys.m438
2 files changed, 72 insertions, 0 deletions
diff --git a/textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am b/textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am
new file mode 100644
index 0000000..59e9f0c
--- /dev/null
+++ b/textproc/iiimf-le-unit/files/patch-leif_unit_phonetic_mapfile_Makefile.am
@@ -0,0 +1,34 @@
+--- leif/unit/phonetic_im/mapfile/Makefile.am.orig Sat Apr 3 11:50:21 2004
++++ leif/unit/phonetic_im/mapfile/Makefile.am Wed Mar 2 20:35:05 2005
+@@ -1,5 +1,6 @@
+ SUBDIRS = mapfile2c
+ LEX = /usr/bin/lex
++SED = /usr/bin/sed
+
+ MAPFILES = bengali.mapfile gurmukhi.mapfile hindi.mapfile kannada.mapfile malayalam.mapfile tamil.mapfile telugu.mapfile gujarati.mapfile
+
+@@ -12,7 +13,7 @@
+ .l.c:
+ $(LEX) $(LFLAGS) $*.l
+ mv lex.yy.c $*.tc
+- sed \
++ $(SED) \
+ -e "/^# line/d" \
+ -e "s/parse_small_token/parse_$*/g" \
+ -e "s/^void yyunput/static void yyunput/g" \
+@@ -57,10 +58,11 @@
+ -e "s/^# define unput(c).*/# define unput(c) (\*--global_ptr=c)/g" \
+ -e "s/^#define unput(c).*/#define unput(c) (\*--global_ptr=c)/g" \
+ -e "/^#line/d" \
+- -e "/^static char \*global_ptr\;/i\
+-#define YY_NO_INPUT" -e "/^static char \*global_ptr\;/i\
+-#define YY_NO_UNPUT" -e "/^static char \*global_ptr\;/i\
+-#define input() (\*global_ptr++)" $*.tc > $*.c
++ -e "/^static char \*global_ptr\;/{" \
++ -e "p" -e "s/.*/#define YY_NO_INPUT/" \
++ -e "p" -e "s/.*/#define YY_NO_UNPUT/" \
++ -e "p" -e "s/.*/#define input\(\) \(*global_ptr++\)/" \
++ -e "}" $*.tc > $*.c
+ rm -f $*.tc
+
+ noinst_LTLIBRARIES = libphonetic_temp.la
diff --git a/textproc/iiimf-protocol-lib/files/patch-acfiles_check_sys.m4 b/textproc/iiimf-protocol-lib/files/patch-acfiles_check_sys.m4
new file mode 100644
index 0000000..8626eea
--- /dev/null
+++ b/textproc/iiimf-protocol-lib/files/patch-acfiles_check_sys.m4
@@ -0,0 +1,38 @@
+--- acfiles/check_sys.m4.orig Tue Sep 14 13:31:27 2004
++++ acfiles/check_sys.m4 Wed Mar 2 08:39:25 2005
+@@ -203,6 +203,11 @@
+ CXX=${CC}
+ fi
+ ;;
++ cc*:*)
++ COMMON_CFLAGS="${COMMON_CFLAGS} -Wall"
++ SHLIBCFLAGS='-fpic'
++ SHLIBLDFLAGS='-shared'
++ ;;
+ *)
+ DEBUG_CXX_CFLAGS="${DEBUG_CXX_CFLAGS} -g"
+ ;;
+@@ -249,8 +254,8 @@
+ COMMON_CXX_CFLAGS="${COMMON_CXX_CFLAGS} -DLinux"
+ ;;
+ *freebsd*)
+- THREAD_LDFLAGS="-pthread"
+- PTHREAD_LIBS=""
++ THREAD_LDFLAGS=""
++ PTHREAD_LIBS="${PTHREAD_LIBS}"
+ ;;
+ esac
+
+@@ -288,9 +293,9 @@
+ THREAD_CXX_CFLAGS="-mt"
+ HAVE_THREAD="uithread"
+ ;;
+- *freebsd*@gcc:*)
+- THREAD_LDFLAGS="-pthread"
+- THREAD_LIBS=""
++ *freebsd*@cc:*|*freebsd*@gcc:*)
++ THREAD_LDFLAGS=""
++ THREAD_LIBS="${PTHREAD_LIBS}"
+ HAVE_THREAD="freebsd-pthread"
+ ;;
+ *linux*)
OpenPOWER on IntegriCloud