3 ;; TM-CFG: installation setting about tm-oomori.
7 (defvar default-load-path load-path)
8 (setq load-path (append
11 (expand-file-name path default-directory)
13 '("." "../apel" "../tl" "../bitmap-mule"
15 "../tm-mh-e" "../gnus-mime" "../tm-gnus"
16 "../tm-mail" "../tm-vm")
24 ;;; @ Please specify optional package directory if you use them.
27 ;; It is only necessary to use `add-path' if these packages are not
28 ;; already on the standard load-path of Emacs.
30 ;; Function `get-latest-path' detect latest version of such package
31 ;; under load-path directories. If you want to use a version of a
32 ;; package instead of latest version, please specify by argument of
33 ;; function `add-path'.
35 ;; Function `add-path' finds path under load-path directories. If a
36 ;; package does not exist in load-path, please specify by absolutely
37 ;; (`~/' is available), for example
38 ;; (add-path "~/lib/elisp/mailcrypt-3.4")
40 ;; (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
42 ;;; @@ Please specify VM path.
45 ;; Use latest version installed in load-path.
47 (let ((path (get-latest-path "vm" 'all-paths)))
52 ;; Or please specify path.
53 ;; (add-path "vm-5.95beta" 'all-paths)
56 ;;; @@ Please specify Mailcrypt path.
59 ;; Use latest version installed in load-path.
61 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
66 ;; Or please specify path.
67 ;; (add-path "mailcrypt-3.4" 'all-paths)
70 ;;; @@ Please specify BBDB path.
73 (let ((path (get-latest-path "bbdb" 'all-paths)))
78 ;; Or please specify path.
79 ;; (add-path "bbdb-1.50" 'all-paths)
85 ;; Please specify shell command path.
87 (find-if (function file-exists-p)
88 '("/bin/sh" "/usr/bin/sh")
91 ;; Please specify shell command option.
92 (setq SHELLOPTION "-c")
95 ;;; @ Please specify prefix of install directory.
98 ;; Please specify install path prefix.
99 ;; If it is omitted, shared directory (maybe /usr/local is used).
100 (defvar PREFIX install-prefix)
103 ;; Please specify install path prefix for binaries.
105 (if (or running-emacs-18 running-xemacs)
106 (expand-file-name "../../.." exec-directory)
107 (expand-file-name "../../../.." exec-directory)
110 ;; Please specify emu prefix [optional]
112 (if (string-match "XEmacs" emacs-version)
116 ;; Please specify emu prefix [optional]
118 (if (string-match "XEmacs" emacs-version)
122 ;; Please specify tl prefix [optional]
123 ;;(setq TL_PREFIX "tl")
125 (if (string-match "XEmacs" emacs-version)
129 ;; Please specify prefix for ``bitmap-mule'' [optional]
130 (setq BITMAP_PREFIX "bitmap")
132 ;; Please specify MU prefix [optional]
133 (setq MU_PREFIX "mu")
135 ;; Please specify FLIM prefix [optional]
136 (setq FLIM_PREFIX "flim")
138 ;; Please specify tm prefix [optional]
139 (setq TM_PREFIX "tm")
141 ;; lisp files of tm are installed into following directory tree:
143 ;; <LISPDIR> = <PREFIX>/DATA_PREFIX/<install-elisp-prefix>/
144 ;; <LISPDIR>/mime-setup.{el|elc}
145 ;; <LISPDIR>/<TL_PREFIX>/ --- tl lisp files
146 ;; <LISPDIR>/<BITMAP_PREFIX>/ --- bitmap lisp files
147 ;; <LISPDIR>/<MU_PREFIX>/ --- MU lisp files
148 ;; <LISPDIR>/<MEL_PREFIX>/ --- MEL lisp files
149 ;; <LISPDIR>/<TM_PREFIX>/ --- tm lisp files
151 ;; For example, if <PREFIX> = "/usr/local" and you use Emacs 19.34,
153 ;; <LISPDIR> = /usr/local/share/emacs/site-lisp/
154 ;; /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
155 ;; /usr/local/share/emacs/site-lisp/ --- tl lisp files
156 ;; /usr/local/share/emacs/site-lisp/mu/ --- MU lisp files
157 ;; /usr/local/share/emacs/site-lisp/mel/ --- MEL lisp files
158 ;; /usr/local/share/emacs/site-lisp/tm/ --- tm lisp files
160 ;; For example, if <PREFIX> = "~/" and you use XEmacs,
162 ;; <LISPDIR> = ~/share/xemacs/site-lisp/
163 ;; ~/lib/xemacs/site-lisp/mime-setup.{el|elc}
164 ;; ~/lib/xemacs/site-lisp/tl/ --- tl lisp files
165 ;; ~/lib/xemacs/site-lisp/mu/ --- MU lisp files
166 ;; ~/lib/xemacs/site-lisp/mel/ --- MEL lisp files
167 ;; ~/lib/xemacs/site-lisp/tm/ --- tm lisp files
173 ;; Please specify binary path.
174 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
176 ;; Please specify binary path. (for external method scripts)
177 (setq METHOD_DIR (expand-file-name "share/tm" PREFIX))
182 ;;; @ optional settings
185 ;; It is generated by automatically. Please set variable `PREFIX'.
186 ;; If you don't like default directory tree, please set it.
187 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
188 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
193 (install-detect-elisp-directory PREFIX nil 'version-specific)))
195 ;; Please specify mime-setup.{el|elc} install path.
196 (setq SETUP_FILE_DIR LISPDIR)
198 (setq APEL_DIR (expand-file-name APEL_PREFIX LISPDIR))
199 (setq TL_DIR (expand-file-name TL_PREFIX LISPDIR))
200 (setq BITMAP_DIR (expand-file-name BITMAP_PREFIX LISPDIR))
201 (setq MU_DIR (expand-file-name MU_PREFIX LISPDIR))
202 (setq FLIM_DIR (expand-file-name FLIM_PREFIX LISPDIR))
203 (setq TM_KERNEL_DIR (expand-file-name TM_PREFIX LISPDIR))
204 (setq TM_MHE_DIR TM_KERNEL_DIR)
205 (setq TM_GNUS_DIR TM_KERNEL_DIR)
206 (setq Gnus_MIME_DIR TM_KERNEL_DIR)
207 (setq TM_MAIL_DIR TM_KERNEL_DIR)
208 (setq TM_VM_DIR TM_KERNEL_DIR)
210 (cond ((member LISPDIR default-load-path)
211 (setq APEL_RELATIVE_DIR APEL_PREFIX)
212 (setq TL_RELATIVE_DIR TL_PREFIX)
213 (setq BITMAP_RELATIVE_DIR BITMAP_PREFIX)
214 (setq MU_RELATIVE_DIR MU_PREFIX)
215 (setq FLIM_RELATIVE_DIR FLIM_PREFIX)
216 (setq TM_KERNEL_RELATIVE_DIR TM_PREFIX)
218 ((string-match (concat "^" (regexp-quote (expand-file-name "~/")))
220 (setq APEL_RELATIVE_DIR
221 (concat "~/" (file-relative-name APEL_DIR "~/"))
223 (setq TL_RELATIVE_DIR
224 (concat "~/" (file-relative-name TL_DIR "~/"))
226 (setq BITMAP_RELATIVE_DIR
227 (concat "~/" (file-relative-name BITMAP_DIR "~/"))
229 (setq MU_RELATIVE_DIR
230 (concat "~/" (file-relative-name MU_DIR "~/"))
232 (setq FLIM_RELATIVE_DIR
233 (concat "~/" (file-relative-name FLIM_DIR "~/"))
235 (setq TM_KERNEL_RELATIVE_DIR
236 (concat "~/" (file-relative-name TM_KERNEL_DIR "~/"))
240 (setq APEL_RELATIVE_DIR APEL_DIR)
241 (setq TL_RELATIVE_DIR TL_DIR)
242 (setq BITMAP_RELATIVE_DIR BITMAP_DIR)
243 (setq MU_RELATIVE_DIR MU_DIR)
244 (setq FLIM_RELATIVE_DIR FLIM_DIR)
245 (setq TM_KERNEL_RELATIVE_DIR TM_KERNEL_DIR)
247 (setq TM_MHE_RELATIVE_DIR TM_KERNEL_RELATIVE_DIR)
248 (setq TM_GNUS_RELATIVE_DIR TM_KERNEL_RELATIVE_DIR)
250 (setq TM_GNUS_INSTALL_FORMAT
251 "cd gnus; make install-19 EMACS=%s TMDIR19=%s")
252 (setq TM_GNUS_COMPILE ".gnus-compile")
256 (setq BIN_SRC_DIR "src")
257 (setq BINS '("ol2" "decode-b"))
258 (setq METHOD_SRC_DIR "methods")
260 '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"