Lines 1-302
Link Here
|
1 |
# $FreeBSD$ |
|
|
2 |
|
3 |
.if !defined(_POSTMKINCLUDED) && !defined(Kde_Pre_Include) |
4 |
|
5 |
# Please make sure all changes to this file are past through the maintainer. |
6 |
# Do not commit them yourself (unless of course you're the Port's Wraith ;). |
7 |
Kde_Include_MAINTAINER= kde@FreeBSD.org |
8 |
Kde_Pre_Include= bsd.kde4.mk |
9 |
|
10 |
# |
11 |
# This file contains some variable definitions that are supposed to make your |
12 |
# life easier when dealing with ports related to the KDE Software Compilation 4. |
13 |
# It's automatically included when ${USE_KDE4} is defined in a port's Makefile. |
14 |
# |
15 |
# KDE4 related ports can use this as follows: |
16 |
# |
17 |
# USE_KDE4= kdelibs |
18 |
# USE_QT4= corelib # Set Qt 4 components here. |
19 |
# |
20 |
# .include <bsd.port.mk> |
21 |
# |
22 |
# Additionally, '_build' and '_run' suffixes can be used to force components |
23 |
# dependency type (e.g., 'marble_run'). If no suffix is set, a default |
24 |
# dependency type will be used. If you want to force both types, add the |
25 |
# component twice with both suffixes (e.g., 'pykde4_build pykde4_run'). |
26 |
# |
27 |
# Available KDE4 components are: |
28 |
# |
29 |
# baloo - Baloo core libraries |
30 |
# baloo-widgets - Baloo widgets library |
31 |
# baseapps - Basic applications for KDE Desktop |
32 |
# kactivities - KDE activities library |
33 |
# kate - KDE text editor framework |
34 |
# kdelibs - KDE Developer Platform |
35 |
# kfilemetadata - KDE library for extracting file metadata |
36 |
# korundum - KDE Ruby bindings |
37 |
# libkcddb - KDE CDDB library |
38 |
# libkcompactdisc - KDE library for interfacing with audio CDs |
39 |
# libkdcraw - KDE LibRaw library |
40 |
# libkdeedu - Libraries used by KDE educational applications |
41 |
# libkdegames - Libraries used by KDE games |
42 |
# libkexiv2 - KDE Exiv2 library |
43 |
# libkipi - KDE Image Plugin Interface |
44 |
# libkonq - Konqueror core library |
45 |
# libksane - KDE SANE library |
46 |
# marble - KDE virtual globe |
47 |
# okular - KDE universal document viewer |
48 |
# nepomuk-core - Nepomuk core libraries |
49 |
# nepomuk-widgets - Nepomuk widgets library |
50 |
# oxygen - KDE icon theme |
51 |
# perlkde - KDE Perl bindings |
52 |
# perlqt - Qt 4 Perl bindings |
53 |
# pimlibs - KDE-Pim libraries |
54 |
# pykde4 - KDE Python bindings |
55 |
# pykdeuic4 - PyKDE user interface compiler |
56 |
# qtruby - Qt 4 Ruby bindings |
57 |
# runtime - Components required by many KDE Applications |
58 |
# smokegen - SMOKE base libraries |
59 |
# smokekde - KDE SMOKE libraries |
60 |
# smokeqt - Qt 4 SMOKE libraries |
61 |
# workspace - KDE user environments |
62 |
# akonadi - Storage server for KDE-Pim |
63 |
# attica - Qt library implementing Open Collaboration Services API |
64 |
# automoc4 - Automatic moc for Qt 4 packages |
65 |
# ontologies - Shared ontologies for semantic searching |
66 |
# qimageblitz - KDE graphical effects and filters library |
67 |
# soprano - Qt 4 RDF framework |
68 |
# strigi - Desktop search daemon |
69 |
# |
70 |
# These read-only variables can be used in a port's Makefile: |
71 |
# |
72 |
# KDE4_PREFIX - The place where KDE4 ports live. Currently it is |
73 |
# ${LOCALBASE}/kde4, but this could change in the future. |
74 |
# |
75 |
|
76 |
KDE4_VERSION?= 4.14.3 |
77 |
KDE4_KDELIBS_VERSION= 4.14.10 |
78 |
KDE4_ACTIVITES_VERSION= 4.13.3 |
79 |
KDE4_WORKSPACE_VERSION= 4.11.21 |
80 |
KDE4_APPLICATIONS_VERSION?= 15.04.3 |
81 |
KDE4_APPLICATIONS_BRANCH?= Attic |
82 |
KDE4_BRANCH?= stable |
83 |
KTP_VERSION?= 0.9.0 |
84 |
KTP_BRANCH?= stable |
85 |
CALLIGRA_VERSION?= 2.9.11 |
86 |
CALLIGRA_BRANCH?= stable |
87 |
KDEVELOP_VERSION?= 4.7.3 |
88 |
KDEVELOP_BRANCH?= stable |
89 |
|
90 |
KDE4_PREFIX?= ${LOCALBASE} |
91 |
|
92 |
# Help cmake to find files when testing ports with non-default PREFIX |
93 |
CMAKE_ARGS+= -DCMAKE_PREFIX_PATH="${LOCALBASE};${KDE4_PREFIX}" \ |
94 |
-DKDE4_BUILD_TESTS:BOOL=OFF |
95 |
|
96 |
PLIST_SUB+= KDE4_PREFIX="${KDE4_PREFIX}" \ |
97 |
KDE4_VERSION="${KDE4_VERSION}" \ |
98 |
KDE4_GENERIC_LIB_VERSION=${KDE4_KDELIBS_VERSION} \ |
99 |
KDE4_NON_GENERIC_LIB_VERSION=${KDE4_KDELIBS_VERSION:S,^4,5,} \ |
100 |
KDE4_KDELIBS_VERSION=${KDE4_KDELIBS_VERSION} \ |
101 |
KDE4_NG_KDELIBS_VERSION=${KDE4_KDELIBS_VERSION:S,^4,5,} |
102 |
|
103 |
|
104 |
# Keep in sync with cmake/modules/PythonMacros.cmake |
105 |
_PYTHON_SHORT_VER= ${PYTHON_VERSION:S/^python//:S/.//} |
106 |
.if ${_PYTHON_SHORT_VER} > 31 |
107 |
PLIST_SUB+= PYCACHE="__pycache__/" \ |
108 |
PYC_SUFFIX=cpython-${_PYTHON_SHORT_VER}.pyc \ |
109 |
PYO_SUFFIX=cpython-${_PYTHON_SHORT_VER}.pyo |
110 |
.else |
111 |
PLIST_SUB+= PYCACHE="" \ |
112 |
PYC_SUFFIX=pyc \ |
113 |
PYO_SUFFIX=pyo |
114 |
.endif |
115 |
|
116 |
.endif # !defined(_POSTMKINCLUDED) && !defined(Kde_Pre_Include) |
117 |
|
118 |
.if defined(_POSTMKINCLUDED) && !defined(Kde_Post_Include) |
119 |
|
120 |
Kde_Post_Include= bsd.kde4.mk |
121 |
|
122 |
# |
123 |
# KDE4 components. |
124 |
# Set ${component}_TYPE to 'build' or 'run' to specify default dependency type |
125 |
# for ${component}; otherwise, it will default to 'build run'. |
126 |
# |
127 |
|
128 |
_USE_KDE4_ALL= baloo baloo-widgets \ |
129 |
baseapps kactivities kate kdelibs kfilemetadata \ |
130 |
korundum libkcddb libkcompactdisc libkdcraw libkdeedu \ |
131 |
libkexiv2 libkdegames libkipi libkonq libksane marble \ |
132 |
nepomuk-core nepomuk-widgets \ |
133 |
okular oxygen perlkde perlqt pimlibs pykde4 pykdeuic4 \ |
134 |
qtruby runtime smokegen smokekde smokeqt \ |
135 |
workspace |
136 |
# These components are not part of the Software Compilation. |
137 |
_USE_KDE4_ALL+= akonadi attica automoc4 ontologies qimageblitz soprano \ |
138 |
strigi |
139 |
|
140 |
baloo_PORT= sysutils/baloo |
141 |
baloo_PATH= ${KDE4_PREFIX}/lib/libbaloocore.so |
142 |
|
143 |
baloo-widgets_PORT= sysutils/baloo-widgets |
144 |
baloo-widgets_PATH= ${KDE4_PREFIX}/lib/libbaloowidgets.so |
145 |
|
146 |
baseapps_PORT= x11/kde4-baseapps |
147 |
baseapps_PATH= ${KDE4_PREFIX}/bin/kfmclient |
148 |
baseapps_TYPE= run |
149 |
|
150 |
kactivities_PORT= x11/kactivities |
151 |
kactivities_PATH= ${KDE4_PREFIX}/lib/libkactivities.so |
152 |
|
153 |
kate_PORT= editors/kate |
154 |
kate_PATH= ${KDE4_PREFIX}/lib/libkateinterfaces.so |
155 |
|
156 |
kdelibs_PORT= x11/kdelibs4 |
157 |
kdelibs_PATH= ${KDE4_PREFIX}/lib/libkdecore.so |
158 |
|
159 |
kfilemetadata_PORT= sysutils/kfilemetadata |
160 |
kfilemetadata_PATH= ${KDE4_PREFIX}/lib/libkfilemetadata.so |
161 |
|
162 |
korundum_PORT= devel/ruby-korundum |
163 |
korundum_PATH= ${KDE4_PREFIX}/lib/kde4/krubypluginfactory.so |
164 |
korundum_TYPE= run |
165 |
|
166 |
libkcddb_PORT= audio/libkcddb |
167 |
libkcddb_PATH= ${KDE4_PREFIX}/lib/libkcddb.so |
168 |
|
169 |
libkcompactdisc_PORT= audio/libkcompactdisc |
170 |
libkcompactdisc_PATH= ${KDE4_PREFIX}/lib/libkcompactdisc.so |
171 |
|
172 |
libkdcraw_PORT= graphics/libkdcraw-kde4 |
173 |
libkdcraw_PATH= ${KDE4_PREFIX}/lib/libkdcraw.so |
174 |
|
175 |
libkdeedu_PORT= misc/libkdeedu |
176 |
libkdeedu_PATH= ${KDE4_PREFIX}/lib/libkeduvocdocument.so |
177 |
|
178 |
libkdegames_PORT= games/libkdegames |
179 |
libkdegames_PATH= ${KDE4_PREFIX}/lib/libkdegames.so |
180 |
|
181 |
libkexiv2_PORT= graphics/libkexiv2-kde4 |
182 |
libkexiv2_PATH= ${KDE4_PREFIX}/lib/libkexiv2.so |
183 |
|
184 |
libkipi_PORT= graphics/libkipi-kde4 |
185 |
libkipi_PATH= ${KDE4_PREFIX}/lib/libkipi.so |
186 |
|
187 |
libkonq_PORT= x11/libkonq |
188 |
libkonq_PATH= ${KDE4_PREFIX}/lib/libkonq.so |
189 |
|
190 |
libksane_PORT= graphics/libksane |
191 |
libksane_PATH= ${KDE4_PREFIX}/lib/libksane.so |
192 |
|
193 |
marble_PORT= astro/marble |
194 |
marble_PATH= ${KDE4_PREFIX}/lib/libmarblewidget.so |
195 |
|
196 |
nepomuk-core_PORT= sysutils/nepomuk-core |
197 |
nepomuk-core_PATH= ${KDE4_PREFIX}/lib/libnepomukcore.so |
198 |
|
199 |
nepomuk-widgets_PORT= sysutils/nepomuk-widgets |
200 |
nepomuk-widgets_PATH= ${KDE4_PREFIX}/lib/libnepomukwidgets.so |
201 |
|
202 |
okular_PORT= graphics/okular |
203 |
okular_PATH= ${KDE4_PREFIX}/lib/libokularcore.so |
204 |
|
205 |
oxygen_PORT= x11-themes/kde4-icons-oxygen |
206 |
oxygen_PATH= ${KDE4_PREFIX}/share/icons/oxygen/index.theme |
207 |
oxygen_TYPE= run |
208 |
|
209 |
perlkde_PORT= devel/p5-perlkde |
210 |
perlkde_PATH= ${KDE4_PREFIX}/lib/kde4/kperlpluginfactory.so |
211 |
perlkde_TYPE= run |
212 |
|
213 |
perlqt_PORT= devel/p5-perlqt |
214 |
perlqt_PATH= ${KDE4_PREFIX}/bin/puic4 |
215 |
|
216 |
pimlibs_PORT= deskutils/kdepimlibs4 |
217 |
pimlibs_PATH= ${KDE4_PREFIX}/lib/libkpimutils.so |
218 |
|
219 |
pykde4_PORT= devel/py-pykde4 |
220 |
pykde4_PATH= ${KDE4_PREFIX}/lib/kde4/kpythonpluginfactory.so |
221 |
pykde4_TYPE= run |
222 |
|
223 |
pykdeuic4_PORT= devel/py-pykdeuic4 |
224 |
pykdeuic4_PATH= ${LOCALBASE}/bin/pykdeuic4 |
225 |
pykdeuic4_TYPE= run |
226 |
|
227 |
qtruby_PORT= devel/ruby-qtruby |
228 |
qtruby_PATH= ${KDE4_PREFIX}/lib/libqtruby4shared.so |
229 |
|
230 |
runtime_PORT= x11/kde4-runtime |
231 |
runtime_PATH= ${KDE4_PREFIX}/bin/knotify4 |
232 |
runtime_TYPE= run |
233 |
|
234 |
smokegen_PORT= devel/smokegen |
235 |
smokegen_PATH= ${KDE4_PREFIX}/lib/libsmokebase.so |
236 |
|
237 |
smokekde_PORT= devel/smokekde |
238 |
smokekde_PATH= ${KDE4_PREFIX}/lib/libsmokekdecore.so |
239 |
|
240 |
smokeqt_PORT= devel/smokeqt |
241 |
smokeqt_PATH= ${KDE4_PREFIX}/lib/libsmokeqtcore.so |
242 |
|
243 |
workspace_PORT= x11/kde4-workspace |
244 |
workspace_PATH= ${KDE4_PREFIX}/lib/libkworkspace.so |
245 |
|
246 |
akonadi_PORT= databases/akonadi |
247 |
akonadi_PATH= ${KDE4_PREFIX}/lib/libakonadiprotocolinternals.so |
248 |
|
249 |
attica_PORT= x11-toolkits/attica |
250 |
attica_PATH= ${LOCALBASE}/lib/libattica.so |
251 |
|
252 |
automoc4_PORT= devel/automoc4 |
253 |
automoc4_PATH= ${LOCALBASE}/bin/automoc4 |
254 |
automoc4_TYPE= build |
255 |
|
256 |
ontologies_PORT= x11-toolkits/shared-desktop-ontologies |
257 |
ontologies_PATH= ${LOCALBASE}/share/ontology/core/rdf.ontology |
258 |
|
259 |
qimageblitz_PORT= x11/qimageblitz |
260 |
qimageblitz_PATH= ${LOCALBASE}/lib/libqimageblitz.so |
261 |
|
262 |
soprano_PORT= textproc/soprano |
263 |
soprano_PATH= ${LOCALBASE}/lib/libsoprano.so |
264 |
|
265 |
strigi_PORT= deskutils/libstreamanalyzer |
266 |
strigi_PATH= ${LOCALBASE}/lib/libstreamanalyzer.so.0 |
267 |
|
268 |
# Iterate through components deprived of suffix. |
269 |
.for component in ${USE_KDE4:O:u:C/_.+//} |
270 |
# Check that the component is valid. |
271 |
. if ${_USE_KDE4_ALL:M${component}} != "" |
272 |
# Skip meta-components |
273 |
. if defined(${component}_PORT) && defined(${component}_PATH) |
274 |
${component}_DEPENDS= ${${component}_PATH}:${${component}_PORT} |
275 |
# Check if a dependency type is explicitly requested. |
276 |
. if ${USE_KDE4:M${component}_*} != "" && ${USE_KDE4:M${component}} == "" |
277 |
${component}_TYPE= # empty |
278 |
. if ${USE_KDE4:M${component}_build} != "" |
279 |
${component}_TYPE+= build |
280 |
. endif |
281 |
. if ${USE_KDE4:M${component}_run} != "" |
282 |
${component}_TYPE+= run |
283 |
. endif |
284 |
. endif # ${USE_KDE4:M${component}_*} != "" && ${USE_KDE4:M${component}} == "" |
285 |
# If no dependency type is set, default to full dependency. |
286 |
. if !defined(${component}_TYPE) |
287 |
${component}_TYPE= build run |
288 |
. endif |
289 |
# Set real dependencies. |
290 |
. if ${${component}_TYPE:Mbuild} != "" |
291 |
BUILD_DEPENDS+= ${${component}_DEPENDS} |
292 |
. endif |
293 |
. if ${${component}_TYPE:Mrun} != "" |
294 |
RUN_DEPENDS+= ${${component}_DEPENDS} |
295 |
. endif |
296 |
. endif # defined(${component}_PORT) && defined(${component}_PATH) |
297 |
. else # ! ${_USE_KDE4_ALL:M${component}} != "" |
298 |
IGNORE= can't be installed: unknown USE_KDE4 component '${component}' |
299 |
. endif # ${_USE_KDE4_ALL:M${component}} != "" |
300 |
.endfor |
301 |
|
302 |
.endif # defined(_POSTMKINCLUDED) && !defined(Kde_Post_Include) |