1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
--- configure.orig Sat Jan 14 18:08:41 2006
+++ configure Sat Jan 14 18:12:44 2006
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
if [ "$1" = "-h" -o "$1" = "--help" -o "$1" = "-help" ]; then
echo "** valid options:"
@@ -9,12 +9,12 @@
fi
MAKE=make
-which gmake >& /dev/null
+which gmake > /dev/null
if [ $? = 0 ]; then
MAKE=gmake
fi
-uname | grep FreeBSD >& /dev/null
+uname | grep FreeBSD > /dev/null
if [ $? = 0 ]; then
FREEBSD=1
else
@@ -70,7 +70,7 @@
QT_IM='N'
for i in qt3 qt4
do
- QT_IM_DIR=/usr/lib/$i/plugins/lib/inputmethods
+ QT_IM_DIR=$prefix/lib/$i/plugins/lib/inputmethods
echo "testing if you have QT_IM_MODULE dir:$QT_IM_DIR support"
if [ -d $QT_IM_DIR ]; then
QT_IM='Y'
@@ -88,7 +88,7 @@
bindir=$prefix/bin
datadir=$prefix/share
-mandir=$datadir/man
+mandir=$prefix/man
libdir=$prefix/lib
includedir=$prefix/include
optdir=/opt
@@ -101,8 +101,8 @@
GCIN_SETUP_DESKTOP=/opt/gnome/share/control-center-2.0/capplets
GCIN_SETUP_DESKTOP_rpm='$(optdir)/gnome/share/control-center-2.0/capplets'
else
- GCIN_SETUP_DESKTOP=/usr/share/control-center-2.0/capplets
- GCIN_SETUP_DESKTOP_rpm='$(datadir)/control-center-2.0/capplets'
+ GCIN_SETUP_DESKTOP=$prefix/share/gnome/control-center-2.0/capplets
+ GCIN_SETUP_DESKTOP_rpm='$(datadir)/gnome/control-center-2.0/capplets'
fi
@@ -111,21 +111,13 @@
grep -v qt3/plugins/inputmethods gcin.spec.tmp > gcin.spec
fi
-grep Cooker /etc/mandriva-release 2>&1 | grep 2006 >& /dev/null
-if [ $? = 0 ]; then
- new_gtk_im='Y'
- echo "!!!! new gtk-im(im-gcin.so) will be enabled because you are using Cooker 2006."
- echo "!!!! You have to install the latest libwidget_gtk2.so"
- echo "http://www.csie.nctu.edu.tw/~cp76/linux/mozilla/mdk-firefox-thunderbird-1.0.6/cooker-new-gtkim-libwidget_gtk2.so.gz"
-fi
-
OPTFLAGS="-g"
if [ $prefix = /usr ]; then
OPTFLAGS="-O"
fi
-echo "CC=gcc" > config.mak
+echo "CC=$CC" > config.mak
echo "MAKE=$MAKE" >> config.mak
echo "GTKINC=$GTKINC" >> config.mak
echo "prefix=$prefix" >> config.mak
@@ -145,8 +137,8 @@
echo "GCIN_SCRIPT_DIR=\$(datadir_r)/gcin/script" >> config.mak
echo "GCIN_SCRIPT_DIR_i=\$(datadir)/gcin/script" >> config.mak
echo "OPTFLAGS=$OPTFLAGS" >> config.mak
-echo "DOC_DIR=\$(datadir_r)/doc/gcin-$GCIN_VERSION" >> config.mak
-echo "DOC_DIR_i=\$(datadir)/doc/gcin-$GCIN_VERSION" >> config.mak
+echo "DOC_DIR=\$(datadir_r)/doc/gcin" >> config.mak
+echo "DOC_DIR_i=\$(datadir)/doc/gcin" >> config.mak
echo "GCIN_ICON_DIR=\$(datadir_r)/icons/gcin" >> config.mak
echo "SYS_ICON_DIR=\$(datadir_r)/icons" >> config.mak
echo "GCIN_ICON_DIR_i=\$(datadir)/icons/gcin" >> config.mak
|