Change the code examples to use components of the GNOME 2 environment.

This commit is contained in:
Adam Weinberger 2003-09-20 18:56:25 +00:00
parent a7c3b3d996
commit cfa7bc2bbd
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=18196

View file

@ -1,6 +1,6 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
<!ENTITY base CDATA "../..">
<!ENTITY date "$FreeBSD: www/en/gnome/docs/porting.sgml,v 1.31 2003/08/26 07:47:30 marcus Exp $">
<!ENTITY date "$FreeBSD: www/en/gnome/docs/porting.sgml,v 1.32 2003/09/20 18:51:15 adamw Exp $">
<!ENTITY title "FreeBSD GNOME Project: How To Make a Port">
<!ENTITY % gnomeincludes SYSTEM "../includes.sgml"> %gnomeincludes;
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
@ -126,8 +126,8 @@ WANT_GNOME= yes
.include &lt;bsd.port.pre.mk&gt;
.if ${HAVE_GNOME:Mlibpanel}!=""
USE_GNOME+= gnomeprefix libpanel
.if ${HAVE_GNOME:Mgnomepanel}!=""
USE_GNOME+= gnomeprefix gnomepanel
CONFIGURE_ARGS+= --with-gnome
PKGNAMESUFFIX= -gnome
PLIST_SUB= DATADIR="share/gnome"
@ -142,12 +142,12 @@ WANT_GNOME= yes
<p>Here, <tt>WANT_GNOME</tt> tells the ports system
to check for the existence of the various GNOME components
listed above. For each component found, its name is appended
to <tt>HAVE_GNOME</tt>. Since this port can use <tt>libpanel</tt>,
to <tt>HAVE_GNOME</tt>. Since this port can use <tt>gnomepanel</tt>,
we check <tt>HAVE_GNOME</tt> to see if it contains
<tt>libpanel</tt> (for more on the :M<tt>pattern</tt> make syntax,
<tt>gnomepanel</tt> (for more on the :M<tt>pattern</tt> make syntax,
please refer to the
<a href="http://www.freebsd.org/cgi/man.cgi?query=make&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+4.6-stable&amp;format=html">make(1)</a> manpage).
If <tt>libpanel</tt> is found, then it is added the list of
If <tt>gnomepanel</tt> is found, then it is added the list of
<tt>USE_GNOME</tt> dependencies, and the port-specific
<tt>--with-gnome</tt> <tt>CONFIGURE_ARG</tt> is passed.
In an old GNOME infrastructure, <tt>PKGNAMESUFFIX</tt> was
@ -171,7 +171,7 @@ WANT_GNOME= yes
.include &lt;bsd.port.pre.mk&gt;
.if ${HAVE_GNOME:Mgnomelibs}!=""
USE_GNOME+= gnomelibs
USE_GNOME+= libgnome
.else
USE_GNOME+= gtk12 # WRONG!
.endif