Remove instructions for differentiating between the GNOME 1 and GNOME 2
desktops.
This commit is contained in:
parent
3f14adb3bc
commit
5e8d8f18cc
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=18194
1 changed files with 20 additions and 34 deletions
|
@ -1,6 +1,6 @@
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
|
||||||
<!ENTITY base CDATA "../..">
|
<!ENTITY base CDATA "../..">
|
||||||
<!ENTITY date "$FreeBSD: www/en/gnome/docs/porting.sgml,v 1.30 2003/06/03 17:55:11 marcus Exp $">
|
<!ENTITY date "$FreeBSD: www/en/gnome/docs/porting.sgml,v 1.31 2003/08/26 07:47:30 marcus Exp $">
|
||||||
<!ENTITY title "FreeBSD GNOME Project: How To Make a Port">
|
<!ENTITY title "FreeBSD GNOME Project: How To Make a Port">
|
||||||
<!ENTITY % gnomeincludes SYSTEM "../includes.sgml"> %gnomeincludes;
|
<!ENTITY % gnomeincludes SYSTEM "../includes.sgml"> %gnomeincludes;
|
||||||
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
|
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
|
||||||
|
@ -92,40 +92,26 @@ USE_GNOME= gnomehack gnomeprefix libgnomeui atspi libwnck
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<h2>GNOME 1 Desktop vs. GNOME 2 Desktop</h2>
|
<h2>GNOME 1 Desktop vs. GNOME 2 Desktop</h2>
|
||||||
<p>Certain aspects of the <tt>GNOME 1</tt> desktop environment are
|
<p>In the beginning, there was only <tt>GNOME 1</tt>. When the
|
||||||
incompatible with certain aspects of the <tt>GNOME 2</tt> desktop
|
<tt>GNOME 2</tt> desktop came around, maximum backwards compatability
|
||||||
environment. To ensure that a user does not compile a <tt>GNOME 2</tt>
|
was ensured, within reason. <tt>GNOME 1</tt> applications can run
|
||||||
component against their <tt>GNOME 1</tt> environment (or vice versa),
|
fine under the <tt>GNOME 2</tt> desktop, provided that the applications
|
||||||
the user may set <b>GNOME_DESKTOP_VERSION</b> in their
|
do not utilize functionality specific to the <tt>GNOME 1</tt> desktop
|
||||||
<tt>/etc/make.conf</tt>. Even if a user has not explicitly set
|
environment.</p>
|
||||||
<b>GNOME_DESKTOP_VERSION</b>, the FreeBSD GNOME architecture will
|
|
||||||
attempt to automatically deduce the desktop currently installed by
|
|
||||||
examining which components are already installed.</p>
|
|
||||||
|
|
||||||
<p>If compilation of a <tt>GNOME 2</tt> port is attempted on a
|
<p>The <tt>GNOME 1</tt> desktop, and all applications that will not run
|
||||||
<tt>GNOME_DESKTOP_VERSION=1</tt> system, the compilation will
|
under the <tt>GNOME 2</tt> desktop, have been removed from the ports
|
||||||
immediately abort and the user will be informed of the incompatability.</p>
|
tree.</p>
|
||||||
|
|
||||||
<p>If your application can handle both <tt>GNOME 1</tt> and <tt>GNOME 2</tt>
|
<p>What this means for you, as an application porter, is simply that
|
||||||
compilation, you may check the value of <b>GNOME_DESKTOP_VERSION</b> to
|
you should not add <tt>GNOME 1</tt>-specific applications to the
|
||||||
determine for which desktop your port is compiling. For example:</p>
|
ports tree.</p>
|
||||||
|
|
||||||
<pre>
|
<p>If you wish to determine which version of the GNOME desktop
|
||||||
USE_X_PREFIX= yes
|
environment is present on a user's machine, you can check the value
|
||||||
USE_GNOME= gnomeprefix gnomehack
|
of <b>GNOME_DESKTOP_VERSION</b>. This variable is set to either
|
||||||
|
<tt>"1"</tt> or <tt>"2"</tt> depending upon whether the
|
||||||
.if (${GNOME_DESKTOP_VERSION} == "1")
|
<tt>GNOME 1</tt> or <tt>GNOME 2</tt> desktop is installed.</p>
|
||||||
CONFIGURE_ARGS+= --with-gnome
|
|
||||||
USE_GNOME+= gtk12 libpanel
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+= --with-gnome2
|
|
||||||
USE_GNOME+= gtk20 gnomepanel
|
|
||||||
.endif
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p>In this example, specific <tt>CONFIGURE_ARGS</tt> and <b>USE_GNOME</b>
|
|
||||||
components are set depending upon which <b>GNOME_DESKTOP_VERSION</b> is
|
|
||||||
installed or preferred by the user.</p>
|
|
||||||
|
|
||||||
<h2>Optional GNOME Dependencies</h2>
|
<h2>Optional GNOME Dependencies</h2>
|
||||||
<p>If your port can optionally use GNOME, you must set
|
<p>If your port can optionally use GNOME, you must set
|
||||||
|
|
Loading…
Reference in a new issue