View | Details | Raw Unified | Return to bug 138283
Collapse All | Expand All

(-)book.sgml (-35 / +138 lines)
Lines 5427-5468 Link Here
5427
5427
5428
    </sect1>
5428
    </sect1>
5429
5429
5430
    <sect1 id="using-kde">
5430
    <sect1 id="using-qt">
5431
      <title>Using KDE</title>
5431
      <title>Using Qt</title>
5432
5433
      <sect2 id="kde-variables">
5434
	<title>Variable definitions</title>
5435
5436
	<table frame="none">
5437
	  <title>Variables for ports that use KDE</title>
5438
5439
	  <tgroup cols="2">
5440
	    <tbody>
5441
	      <row>
5442
		<entry><makevar>USE_KDELIBS_VER</makevar></entry>
5443
5444
		<entry>The port uses KDE libraries.  It specifies the
5445
		  major version of KDE to use and implies
5446
		  <makevar>USE_QT_VER</makevar> of the appropriate
5447
		  version.  The only possible value is
5448
		  <literal>3</literal>.</entry>
5449
	      </row>
5450
5451
	      <row>
5452
		<entry><makevar>USE_KDEBASE_VER</makevar></entry>
5453
5454
		<entry>The port uses KDE base.  It specifies the major
5455
		  version of KDE to use and implies
5456
		  <makevar>USE_QT_VER</makevar> of the appropriate version.
5457
		  The only possible value is <literal>3</literal>.</entry>
5458
	      </row>
5459
	    </tbody>
5460
	  </tgroup>
5461
	</table>
5462
5463
      </sect2>
5464
5432
5465
      <sect2 id="kde-qt">
5433
      <sect2 id="qt-common">
5466
	<title>Ports that require Qt</title>
5434
	<title>Ports that require Qt</title>
5467
5435
5468
	<table frame="none">
5436
	<table frame="none">
Lines 5809-5814 Link Here
5809
5777
5810
    </sect1>
5778
    </sect1>
5811
5779
5780
    <sect1 id="using-kde">
5781
      <title>Using KDE</title>
5782
5783
      <sect2 id="kde-variables">
5784
	<title>Variable definitions (KDE 3.x only)</title>
5785
5786
	<table frame="none">
5787
	  <title>Variables for ports that use KDE 3.x</title>
5788
5789
	  <tgroup cols="2">
5790
	    <tbody>
5791
	      <row>
5792
		<entry><makevar>USE_KDELIBS_VER</makevar></entry>
5793
5794
		<entry>The port uses KDE libraries.  It specifies the
5795
		  major version of KDE to use and implies
5796
		  <makevar>USE_QT_VER</makevar> of the appropriate
5797
		  version.  The only possible value is
5798
		  <literal>3</literal>.</entry>
5799
	      </row>
5800
5801
	      <row>
5802
		<entry><makevar>USE_KDEBASE_VER</makevar></entry>
5803
5804
		<entry>The port uses KDE base.  It specifies the major
5805
		  version of KDE to use and implies
5806
		  <makevar>USE_QT_VER</makevar> of the appropriate version.
5807
		  The only possible value is <literal>3</literal>.</entry>
5808
	      </row>
5809
	    </tbody>
5810
	  </tgroup>
5811
	</table>
5812
5813
      </sect2>
5814
5815
      <sect2 id="kde4-components">
5816
	<title>KDE 4 components</title>
5817
5818
	<para>If your application depends on KDE 4.x, set <makevar>USE_KDE4</makevar>
5819
	  to the list of required components. The most commonly used components are listed below
5820
	  (up-to-date components are listed in <makevar>_USE_KDE4_ALL</makevar> in
5821
	  <filename>/usr/ports/Mk/bsd.kde4.mk</filename>):</para>
5822
5823
	<table frame="none">
5824
	  <title>Available KDE4 components</title>
5825
5826
	  <tgroup cols="2">
5827
	    <thead>
5828
	      <row>
5829
		<entry>Name</entry>
5830
		<entry>Description</entry>
5831
	      </row>
5832
	    </thead>
5833
5834
	    <tbody>
5835
	      <row>
5836
		<entry><literal>akonadi</literal></entry>
5837
		<entry>Personal information management (PIM) storage service</entry>
5838
	      </row>
5839
5840
	      <row>
5841
		<entry><literal>automoc4</literal></entry>
5842
		<entry>automoc4 build tool</entry>
5843
	      </row>
5844
5845
	      <row>
5846
		<entry><literal>kdebase</literal></entry>
5847
		<entry>Basic KDE applications (Konqueror, Dolphin, Konsole)</entry>
5848
	      </row>
5849
5850
	      <row>
5851
		<entry><literal>kdeexp</literal></entry>
5852
		<entry>Experimental KDE libraries (with non-stable API)</entry>
5853
	      </row>
5854
5855
	      <row>
5856
		<entry><literal>kdehier</literal></entry>
5857
		<entry>Provides common KDE directories</entry>
5858
	      </row>
5859
5860
	      <row>
5861
		<entry><literal>kdelibs</literal></entry>
5862
		<entry>The base set of KDE libraries</entry>
5863
	      </row>
5864
5865
	      <row>
5866
		<entry><literal>kdeprefix</literal></entry>
5867
		<entry>If set, port will be installed into
5868
		  <literal>&dollar;{KDE4_PREFIX}</literal>
5869
		  instead of <literal>&dollar;{LOCALBASE}</literal></entry>
5870
	      </row>
5871
5872
	      <row>
5873
		<entry><literal>pimlibs</literal></entry>
5874
		<entry>PIM libraries</entry>
5875
	      </row>
5876
5877
	      <row>
5878
		<entry><literal>workspace</literal></entry>
5879
		<entry>Applications and libraries which form desktop (Plasma, KWin)</entry>
5880
	      </row>
5881
5882
	    </tbody>
5883
	  </tgroup>
5884
	</table>
5885
5886
	<para>KDE 4.x ports are installed into <literal>&dollar;{KDE4_PREFIX}</literal>,
5887
	  which is <filename>/usr/local/kde4</filename> currently, to avoid conflicts
5888
	  with KDE 3.x ports. This is achieved by specifying <literal>kdeprefix</literal>
5889
	  component, which overrides default <makevar>PREFIX</makevar>. The ports however
5890
	  respect <makevar>PREFIX</makevar> set via <envar>MAKEFLAGS</envar> environment
5891
	  variable and/or <application>make</application> arguments.</para>
5892
5893
	<example id="kde4-components-example">
5894
	  <title><makevar>USE_KDE4</makevar> example</title>
5895
5896
	  <para>This is a simple example for KDE 4 port. <makevar>USE_CMAKE</makevar>
5897
	  instructs port to utilize <application>CMake</application> &mdash;
5898
	  configuration tool widely spread among KDE 4 projects.
5899
	  <makevar>USE_KDE4</makevar> brings dependency on KDE libraries and makes port using
5900
	  <application>automoc4</application> at build stage. Required KDE components
5901
	  and other dependencies can be determined through configure log.
5902
	  <makevar>USE_KDE4</makevar> does not imply <makevar>USE_QT_VER</makevar>.
5903
	  If port requires some of Qt4 components, <makevar>USE_QT_VER</makevar> should be set
5904
	  and then needed components can be specified.</para>
5905
5906
	  <programlisting>USE_CMAKE=     yes
5907
USE_KDE4=      automoc4 kdelibs kdeprefix
5908
USE_QT_VER=    4
5909
QT_COMPONENTS= qmake_build moc_build rcc_build uic_build</programlisting>
5910
	</example>
5911
      </sect2>
5912
5913
    </sect1>
5914
5812
    <sect1 id="using-java">
5915
    <sect1 id="using-java">
5813
      <title>Using Java</title>
5916
      <title>Using Java</title>

Return to bug 138283