7104bb9e16bc556bb8bca1a2534dfb59b65a10f4
[elisp/tm.git] / TM-CFG
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: TM-CFG,v 7.15 1996/09/04 15:32:36 morioka Exp morioka $
4 ;;;
5
6 (defvar default-load-path load-path)
7 (setq load-path (append
8                  (mapcar (function
9                           (lambda (path)
10                             (expand-file-name path (getenv "PWD"))
11                             ))
12                          '("." "../tl" "../mu" "../mel"
13                            "../tm-mh-e" "../gnus-mime" "../tm-gnus")
14                          )
15                  load-path))
16
17 (require 'tl-misc)
18 (require 'install)
19
20
21 ;;; @ Please specify optional package directory if you use them.
22 ;;;
23
24 ;; Please specify VM path.
25 (add-path "vm-5.95beta" 'all-paths)
26
27 ;; Please specify Mailcrypt path.
28 (add-path "mailcrypt-3.4" 'all-paths)
29
30 ;; Please specify BBDB path.
31 (add-path "bbdb-1.50" 'all-paths)
32
33
34 ;;; @ shell
35 ;;;
36
37 ;; Please specify shell command path.
38 (setq SHELL "/bin/sh")
39
40 ;; Please specify shell command option.
41 (setq SHELLOPTION "-c")
42
43
44 ;;; @ Please specify prefix of install directory.
45 ;;;
46
47 ;; Please specify install path prefix.
48 ;; If it is omitted, shared directory (maybe /usr/local is used).
49 (setq PREFIX install-prefix)
50 ;;(setq PREFIX "~/")
51
52 ;; Please specify install path prefix for binaries.
53 (setq EXEC_PREFIX
54       (if (or running-emacs-18 running-xemacs)
55           (expand-file-name "../../.." exec-directory)
56         (expand-file-name "../../../.." exec-directory)
57         ))
58
59 ;; Please specify tm package prefix [optional]
60 (setq TM_PACKAGE_PREFIX "")
61
62 ;; Please specify tl prefix [optional]
63 ;;(setq TL_PREFIX "tl")
64 (setq TL_PREFIX
65       (if (string-match "XEmacs" emacs-version)
66           "tl"
67         ""))
68
69 ;; Please specify MU prefix [optional]
70 (setq MU_PREFIX "mu")
71
72 ;; Please specify MEL prefix [optional]
73 (setq MEL_PREFIX "mel")
74
75 ;; Please specify tm prefix [optional]
76 (setq TM_PREFIX "tm")
77
78 ;; lisp files of tm are installed into following directory tree:
79 ;;
80 ;;      <LISPDIR> = <PREFIX>/DATA_PREFIX/<install-elisp-prefix>/
81 ;;      <LISPDIR>/mime-setup.{el|elc}
82 ;;      <LISPDIR>/<TM_PACKAGE_PREFIX>/<TL_PREFIX>/  --- tl  lisp files
83 ;;      <LISPDIR>/<TM_PACKAGE_PREFIX>/<MU_PREFIX>/  --- MU lisp files
84 ;;      <LISPDIR>/<TM_PACKAGE_PREFIX>/<MEL_PREFIX>/ --- MEL lisp files
85 ;;      <LISPDIR>/<TM_PACKAGE_PREFIX>/<TM_PREFIX>/  --- tm  lisp files
86 ;;
87 ;; For example, if <PREFIX> = "/usr/local" and you use Emacs 19.34,
88 ;;
89 ;;      <LISPDIR> = /usr/local/share/emacs/site-lisp/
90 ;;      /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
91 ;;      /usr/local/share/emacs/site-lisp/     --- tl  lisp files
92 ;;      /usr/local/share/emacs/site-lisp/mu/  --- MU lisp files
93 ;;      /usr/local/share/emacs/site-lisp/mel/ --- MEL lisp files
94 ;;      /usr/local/share/emacs/site-lisp/tm/  --- tm  lisp files
95 ;;
96 ;; For example, if <PREFIX> = "~/" and you use XEmacs,
97 ;;
98 ;;      <LISPDIR> = ~/share/xemacs/site-lisp/
99 ;;      ~/share/xemacs/site-lisp/mime-setup.{el|elc}
100 ;;      ~/share/xemacs/site-lisp/tl/  --- tl  lisp files
101 ;;      ~/share/xemacs/site-lisp/mu/  --- MU  lisp files
102 ;;      ~/share/xemacs/site-lisp/mel/ --- MEL lisp files
103 ;;      ~/share/xemacs/site-lisp/tm/  --- tm  lisp files
104
105
106 ;;; @ executables
107 ;;;
108
109 ;; Please specify binary path.
110 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
111
112 ;; Please specify binary path. (for external method scripts)
113 (setq METHOD_DIR (expand-file-name "share/tm" PREFIX))
114
115
116 \f
117
118 ;;; @ optional settings
119 ;;;
120
121 ;; It is generated by automatically. Please set variable `PREFIX'.
122 ;; If you don't like default directory tree, please set it.
123 (setq LISPDIR (install-detect-elisp-directory PREFIX))
124 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
125
126 ;; Please specify mime-setup.{el|elc} install path.
127 (setq SETUP_FILE_DIR LISPDIR)
128
129 (setq TM_LISPDIR (expand-file-name TM_PACKAGE_PREFIX LISPDIR))
130
131 (setq TL_DIR (expand-file-name TL_PREFIX TM_LISPDIR))
132 (setq MU_DIR (expand-file-name MU_PREFIX TM_LISPDIR))
133 (setq MEL_DIR (expand-file-name MEL_PREFIX TM_LISPDIR))
134 (setq TM_KERNEL_DIR (expand-file-name TM_PREFIX TM_LISPDIR))
135 (setq TM_MHE_DIR TM_KERNEL_DIR)
136 (setq TM_GNUS_DIR TM_KERNEL_DIR)
137 (setq Gnus_MIME_DIR TM_KERNEL_DIR)
138
139 (cond ((member LISPDIR default-load-path)
140        (if (string-equal TM_PACKAGE_PREFIX "")
141            (setq TL_RELATIVE_DIR TL_PREFIX
142                  MU_RELATIVE_DIR MU_PREFIX
143                  MEL_RELATIVE_DIR MEL_PREFIX
144                  TM_KERNEL_RELATIVE_DIR TM_PREFIX
145                  )
146          (setq TL_RELATIVE_DIR
147                (concat (file-name-as-directory TM_PACKAGE_PREFIX) TL_PREFIX))
148          (setq MU_RELATIVE_DIR
149                (concat (file-name-as-directory TM_PACKAGE_PREFIX) MU_PREFIX))
150          (setq MEL_RELATIVE_DIR
151                (concat (file-name-as-directory TM_PACKAGE_PREFIX) MEL_PREFIX))
152          (setq TM_KERNEL_RELATIVE_DIR
153                (concat (file-name-as-directory TM_PACKAGE_PREFIX) TM_PREFIX))
154          ))
155       ((string-match (concat "^" (regexp-quote (expand-file-name "~/")))
156                      LISPDIR)
157        (setq TL_RELATIVE_DIR (concat "~/" (file-relative-name TL_DIR "~/")))
158        (setq MU_RELATIVE_DIR (concat "~/" (file-relative-name MU_DIR "~/")))
159        (setq MEL_RELATIVE_DIR (concat "~/" (file-relative-name MEL_DIR "~/")))
160        (setq TM_KERNEL_RELATIVE_DIR
161              (concat "~/" (file-relative-name TM_KERNEL_DIR "~/")))
162        )
163       (t
164        (setq TL_RELATIVE_DIR TL_DIR)
165        (setq MU_RELATIVE_DIR MU_DIR)
166        (setq MEL_RELATIVE_DIR MEL_DIR)
167        (setq TM_KERNEL_RELATIVE_DIR TM_KERNEL_DIR)
168        ))
169 (setq TM_MHE_RELATIVE_DIR TM_KERNEL_RELATIVE_DIR)
170 (setq TM_GNUS_RELATIVE_DIR TM_KERNEL_RELATIVE_DIR)
171
172 (setq TM_GNUS_INSTALL_FORMAT
173       "cd gnus; PWD=`pwd` make install-19 EMACS=%s TMDIR19=%s")
174 (setq TM_GNUS_COMPILE ".gnus-compile")
175 (setq MAKE "make")
176
177
178 (setq BIN_SRC_DIR "src")
179 (setq BINS '("ol2" "decode-b"))
180 (setq METHOD_SRC_DIR "methods")
181 (setq METHODS
182       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg" "tm-plain"
183         "tmdecode"))
184
185 ;;; TM-CFG ends here