diff --git a/base/configure b/base/configure
index 3b081e3..f4e8126 100755
a
|
b
|
prefix=$oldprefix |
11689 | 11689 | |
11690 | 11690 | |
11691 | 11691 | # Output |
11692 | | ac_config_files="$ac_config_files Makefile Mk/macports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/macports.conf src/Makefile src/macports1.0/macports_autoconf.tcl src/tclobjc1.0/Makefile src/port1.0/port_autoconf.tcl src/registry1.0/registry_autoconf.tcl src/programs/Makefile src/macports1.0/macports_fastload.tcl" |
| 11692 | ac_config_files="$ac_config_files Makefile Mk/macports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/macports.conf scripts/autovars.sed src/Makefile src/macports1.0/macports_autoconf.tcl src/tclobjc1.0/Makefile src/port1.0/port_autoconf.tcl src/registry1.0/registry_autoconf.tcl src/programs/Makefile src/macports1.0/macports_fastload.tcl" |
11693 | 11693 | |
11694 | 11694 | |
11695 | 11695 | cat >confcache <<\_ACEOF |
… |
… |
do |
12252 | 12252 | "doc/prefix.mtree") CONFIG_FILES="$CONFIG_FILES doc/prefix.mtree" ;; |
12253 | 12253 | "doc/macosx.mtree") CONFIG_FILES="$CONFIG_FILES doc/macosx.mtree" ;; |
12254 | 12254 | "doc/macports.conf") CONFIG_FILES="$CONFIG_FILES doc/macports.conf" ;; |
| 12255 | "scripts/autovars.sed") CONFIG_FILES="$CONFIG_FILES scripts/autovars.sed" ;; |
12255 | 12256 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12256 | 12257 | "src/macports1.0/macports_autoconf.tcl") CONFIG_FILES="$CONFIG_FILES src/macports1.0/macports_autoconf.tcl" ;; |
12257 | 12258 | "src/tclobjc1.0/Makefile") CONFIG_FILES="$CONFIG_FILES src/tclobjc1.0/Makefile" ;; |
diff --git a/base/configure.ac b/base/configure.ac
index 4249844..3c55691 100644
a
|
b
|
AC_CONFIG_FILES([ |
274 | 274 | doc/prefix.mtree |
275 | 275 | doc/macosx.mtree |
276 | 276 | doc/macports.conf |
| 277 | scripts/autovars.sed |
277 | 278 | src/Makefile |
278 | 279 | src/macports1.0/macports_autoconf.tcl |
279 | 280 | src/tclobjc1.0/Makefile |
diff --git a/base/doc/Makefile b/base/doc/Makefile
index 6547e4c..991d06f 100644
a
|
b
|
|
| 1 | MAN1= port.1 |
1 | 2 | MAN5= macports.conf.5 |
2 | 3 | MAN7= portfile.7 portstyle.7 porthier.7 portgroup.7 |
| 4 | SUBST_MAN= port.1 macports.conf.5 porthier.7 |
3 | 5 | INSTALLDIR= ${DESTDIR}${prefix} |
4 | 6 | TOPSRCDIR= .. |
5 | 7 | |
| 8 | edit = sed -f ${TOPSRCDIR}/scripts/autovars.sed |
| 9 | |
6 | 10 | ifneq ($(MAKECMDGOALS),distclean) |
7 | 11 | include ../Mk/macports.autoconf.mk |
8 | 12 | endif |
9 | 13 | |
10 | | all: |
| 14 | all: ${SUBST_MAN} |
| 15 | |
| 16 | port.1: port.1.in |
| 17 | ${edit} port.1.in > $@ |
| 18 | |
| 19 | macports.conf.5: macports.conf.5.in |
| 20 | ${edit} macports.conf.5.in > $@ |
| 21 | |
| 22 | porthier.7: porthier.7.in |
| 23 | ${edit} porthier.7.in > $@ |
11 | 24 | |
12 | 25 | clean: |
| 26 | rm -f ${SUBST_MAN} |
13 | 27 | |
14 | 28 | test: |
15 | 29 | |
diff --git a/base/doc/macports.conf.5 b/base/doc/macports.conf.5.in
similarity index 96%
rename from base/doc/macports.conf.5
rename to base/doc/macports.conf.5.in
index dcefa3b..0f400ad 100644
a
|
b
|
Sets the directory where ports are installed. Any path may be used but those wit |
54 | 54 | characters should be avoided, as this can broke some ports. This key is often referred to as '${prefix}'. |
55 | 55 | .br |
56 | 56 | .Ic Default: |
57 | | /opt/local |
| 57 | @prefix_expanded@ |
58 | 58 | .It Va x11prefix |
59 | 59 | Path containing an X11 installation on your system. |
60 | 60 | .br |
… |
… |
Directory where MacPorts keeps working data as downloaded sources, installed por |
65 | 65 | and the main registry. Same path restrictions apply as for '${prefix}'. |
66 | 66 | .br |
67 | 67 | .Ic Default: |
68 | | ${prefix}/var/macports |
| 68 | @localstatedir_expanded@/macports |
69 | 69 | .It Va portdbformat |
70 | 70 | Storage type to use for the MacPorts registry. Currently the only supportted format is "flat". |
71 | 71 | .br |
… |
… |
MacPorts rsync server (through the "sync" target of the |
94 | 94 | commnand) and any other local tree(s) you might have. |
95 | 95 | .br |
96 | 96 | .Ic Default: |
97 | | ${prefix}/etc/macports/sources.conf |
| 97 | @MPCONFIGDIR_EXPANDED@/sources.conf |
98 | 98 | .It Va variants_conf |
99 | 99 | Location of the optional global variants definition file, listing those that should be used in all installed |
100 | 100 | ports if available. |
101 | 101 | .br |
102 | 102 | .Ic Default: |
103 | | ${prefix}/etc/macports/variants.conf |
| 103 | @MPCONFIGDIR_EXPANDED@/variants.conf |
104 | 104 | .It Va portarchivemode |
105 | 105 | Key governing the creation of binary archives of installed ports for installation/reinstallation ease. |
106 | 106 | .br |
… |
… |
yes |
129 | 129 | .It Va startupitem_type |
130 | 130 | Set the default type of startupitems to be generated, overridable by Portfiles that explicitly state a |
131 | 131 | startupitem.type key. If set to "default", then a type will be selected that's appropriate to the OS. |
132 | | Supported types are: SystemStarter, launchd, default, rcNG. |
| 132 | Supported types are: SystemStarter, launchd, default, rcng. |
133 | 133 | .br |
134 | 134 | .Ic Default: |
135 | 135 | default |
… |
… |
List of extra environment variables MacPorts should keep in the user's environme |
167 | 167 | .El |
168 | 168 | .Sh FILES |
169 | 169 | .Bl -tag -width |
170 | | .It Va ${prefix}/etc/macports/macports.conf |
| 170 | .It Va @MPCONFIGDIR_EXPANDED@/macports.conf |
171 | 171 | Standard system-wide MacPorts configuration file. |
172 | 172 | .It Va ~/.macports/macports.conf |
173 | 173 | User-specific configuration override. This file, if found, will be used instead of the default file at |
174 | | ${prefix}/etc/macports/macports.conf. |
| 174 | @MPCONFIGDIR_EXPANDED@/macports.conf. |
175 | 175 | .El |
176 | 176 | .Sh SEE ALSO |
177 | 177 | .Xr port 1 , |
diff --git a/base/doc/port.1 b/base/doc/port.1.in
similarity index 99%
rename from base/doc/port.1
rename to base/doc/port.1.in
index c3aca31..c647543 100644
a
|
b
|
target on |
516 | 516 | .Pp |
517 | 517 | .Sh FILES |
518 | 518 | .Bl -tag -width |
519 | | .It Va ${prefix}/etc/macports/macports.conf |
| 519 | .It Va @MPCONFIGDIR_EXPANDED@/macports.conf |
520 | 520 | Global configuration file for the MacPorts system. |
521 | | .It Va ${prefix}/etc/macports/sources.conf |
| 521 | .It Va @MPCONFIGDIR_EXPANDED@/sources.conf |
522 | 522 | Global listing of the ports trees used by MacPorts. This file also enables rsync synchronization. |
523 | | .It Va ${prefix}/etc/macports/variants.conf |
| 523 | .It Va @MPCONFIGDIR_EXPANDED@/variants.conf |
524 | 524 | Global variants used when a port is installed. |
525 | 525 | .It Va ~/.macports/macports.conf |
526 | 526 | User configuration file for the MacPorts system. It overrides the global |
diff --git a/base/doc/porthier.7 b/base/doc/porthier.7.in
similarity index 95%
rename from base/doc/porthier.7
rename to base/doc/porthier.7.in
index 5d142e3..2eb918e 100644
a
|
b
|
|
39 | 39 | .Sh DESCRIPTION |
40 | 40 | A sketch of the filesystem hierarchy as it is applied on ports being distributed by MacPorts. |
41 | 41 | .Bl -tag -width "/Applications/" |
42 | | .It Pa ${prefix}/ |
43 | | The base of the MacPorts filesystem hierarchy. By default set to "/opt/local/" |
| 42 | .It Pa @prefix@/ |
| 43 | The base of the MacPorts filesystem hierarchy. Often referred to as ${prefix} |
44 | 44 | .Pp |
45 | 45 | .Bl -tag -width "include/" |
46 | 46 | .It Pa bin/ |
… |
… |
applications based on Java |
71 | 71 | localization files |
72 | 72 | .It Pa man/ |
73 | 73 | manual pages |
| 74 | .It Pa macports/ |
| 75 | various MacPorts scripts |
74 | 76 | .It Pa misc/ |
75 | 77 | misc system-wide ASCII text files |
76 | 78 | .El |
… |
… |
Contains archives (packages) of installed ports |
94 | 96 | Holds the registry information and receipts for the installed ports |
95 | 97 | .It Pa software/ |
96 | 98 | In Image-mode (which is default) Holds the installed files. These |
97 | | are linked to ${prefix}. |
| 99 | are hard-linked into ${prefix}. |
98 | 100 | .It Pa sources/ |
99 | 101 | Holds the sources of both the porttree (the Portfiles) and the |
100 | 102 | sources for the base system |
… |
… |
directory for cgi executables |
119 | 121 | .El |
120 | 122 | .It Pa /Applications/MacPorts/ |
121 | 123 | Native Mac OS X applications |
| 124 | .It Pa @TCL_PACKAGE_DIR@/macports1.0/ |
| 125 | macports Tcl package |
122 | 126 | .It Pa /Library/Frameworks/ |
123 | 127 | Native Mac OS X Library Frameworks |
124 | 128 | .Pp |
diff --git a/base/scripts/autovars.sed.in b/base/scripts/autovars.sed.in
new file mode 100644
index 0000000..11ab4f2
-
|
+
|
|
| 1 | s,@prefix\@,@prefix@,g |
| 2 | s,@prefix_expanded\@,@prefix_expanded@,g |
| 3 | s,@MPCONFIGDIR_EXPANDED\@,@MPCONFIGDIR_EXPANDED@,g |
| 4 | s,@localstatedir_expanded\@,@localstatedir_expanded@,g |
| 5 | s,@TCL_PACKAGE_DIR\@,@TCL_PACKAGE_DIR@,g |