Trinity Desktop Environment Packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.v3.5.13-sru 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. SHELL := /bin/bash
  2. PACKAGING_DIR := $(shell cd ..; pwd)
  3. PATH := $(PATH):$(shell pwd)/build
  4. TDE_VERSION = 3.5.13.2
  5. buildpkg = \
  6. @echo "Now processing '$(1)' [from $(PACKAGING_DIR)]."; \
  7. export PACKAGING_DIR=$(PACKAGING_DIR); \
  8. if [ "${REBUILD}" = "$(1)" ] || ! is_latest_package_installed.sh "$(1)" ${TDE_VERSION}; then \
  9. echo " Package '${1}' is not yet installed."; \
  10. if [ "${REBUILD}" = "$(1)" ] || ! is_latest_package_built.sh "$(1)" ${TDE_VERSION}; then \
  11. echo " Building package."; \
  12. build_rpm_package.sh "$(1)" ${TDE_VERSION} || exit 1; \
  13. echo " Updating repository."; \
  14. update_repository.sh ${TDE_VERSION}; \
  15. fi; \
  16. echo "Now installing package '$(1)'"; \
  17. install_rpm_package.sh "$(1)" || exit 2; \
  18. fi; \
  19. echo
  20. all: dependencies main libraries applications i18n meta extras
  21. dependencies: qt3 tqtinterface arts libcaldav libcarddav tqca tqca-tls avahi-tqt dbus-tqt dbus-1-tqt akode hal
  22. main: tdelibs tdebase tdeaccessibility tdeadmin tdegames tdemultimedia tdepim tdetoys tdevelop tdeaddons tdeartwork tdebindings tdeedu tdegraphics tdenetwork tdesdk tdeutils tdewebdev
  23. libraries: libkdcraw libkexiv2 libkipi libksquirrel pytdeextensions python-trinity
  24. applications: abakus amarok basket bibletime digikam dolphin filelight gtk-qt-engine gwenview k3b k9copy kaffeine kaffeine-mozilla katapult kbarcode kbfx kbookreader kchmviewer kcmautostart kcpuload kdbusnotification kdiff3 kdirstat kgtk-qt3 keep kile kima kiosktool kmplayer kmyfirewall kmymoney knemo knetload knetstats knights knowit knutclient koffice konversation kopete-otr kpicosim kpilot kpowersave krename krusader ksplash-engine-moodin ksquirrel kstreamripper ksystemlog ktechlab ktorrent kuickshow kvirc kvkbd piklab potracegui rosegarden smartcardauth smb4k soundkonverter tde-guidance tdeio-apt tdeio-locate tdeio-umountwrapper tderadio tde-style-lipstik tde-style-qtcurve tdesudo tdesvn tde-systemsettings tdmtheme tellico twin-style-crystal wlassistant yakuake
  25. i18n: gwenview-i18n k3b-i18n koffice-i18n tde-i18n
  26. ### Trinity Dependencies
  27. arts: tqtinterface trinity-filesystem esound cmake
  28. $(call buildpkg,dependencies/arts)
  29. avahi-tqt: tqtinterface autoconf automake libtool
  30. $(call buildpkg,dependencies/avahi-tqt)
  31. dbus-1-tqt: tqtinterface cmake
  32. $(call buildpkg,dependencies/dbus-1-tqt)
  33. dbus-tqt: tqtinterface cmake
  34. $(call buildpkg,dependencies/dbus-tqt)
  35. libcaldav: tqtinterface autoconf libcurl
  36. $(call buildpkg,dependencies/libcaldav)
  37. libcarddav: tqtinterface autoconf libcurl
  38. $(call buildpkg,dependencies/libcarddav)
  39. tqca: tqtinterface
  40. $(call buildpkg,dependencies/tqca)
  41. tqca-tls: tqtinterface tqca
  42. $(call buildpkg,dependencies/tqca-tls)
  43. qt3: esound
  44. $(call buildpkg,dependencies/qt3)
  45. tqtinterface: qt3 cmake
  46. $(call buildpkg,dependencies/tqtinterface)
  47. # Main packages
  48. tdeaccessibility: tdebase tdemultimedia
  49. $(call buildpkg,main/tdeaccessibility)
  50. tdeaddons: tdebase tdegames tdemultimedia tdenetwork tdepim
  51. $(call buildpkg,main/tdeaddons)
  52. tdeadmin: tdebase
  53. $(call buildpkg,main/tdeadmin)
  54. tdeartwork: tdebase
  55. $(call buildpkg,main/tdeartwork)
  56. tdebase: tdelibs cmake htdig fileshareset hal
  57. $(call buildpkg,main/tdebase)
  58. tdebindings: tdebase
  59. $(call buildpkg,main/tdebindings)
  60. tdeedu: tdebase
  61. $(call buildpkg,main/tdeedu)
  62. tdegames: tdebase tdemultimedia
  63. $(call buildpkg,main/tdegames)
  64. tdegraphics: tdebase poppler cmake
  65. $(call buildpkg,main/tdegraphics)
  66. tdelibs: qt3 tqtinterface arts dbus-tqt dbus-1-tqt cmake avahi-tqt fileshareset trinity-filesystem
  67. $(call buildpkg,main/tdelibs)
  68. tdemultimedia: tdebase akode
  69. $(call buildpkg,main/tdemultimedia)
  70. tdenetwork: tdebase
  71. $(call buildpkg,main/tdenetwork)
  72. tdepim: tdebase libcaldav libcarddav cmake
  73. $(call buildpkg,main/tdepim)
  74. tdesdk: tdebase tdebindings cmake
  75. $(call buildpkg,main/tdesdk)
  76. tdetoys: tdebase
  77. $(call buildpkg,main/tdetoys)
  78. tdeutils: tdebase
  79. $(call buildpkg,main/tdeutils)
  80. tdevelop: tdebase tdesdk cmake
  81. $(call buildpkg,main/tdevelop)
  82. tdewebdev: tdebase tdesdk
  83. $(call buildpkg,main/tdewebdev)
  84. ### 3rd party libraries and tools
  85. autoconf: m4
  86. # Build on CentOS 5 only
  87. ifneq ($(wildcard /boot/vmlinuz*.el5*),)
  88. $(call buildpkg,3rdparty/autoconf)
  89. endif
  90. automake:
  91. # Build on CentOS 5 only
  92. ifneq ($(wildcard /boot/vmlinuz*.el5*),)
  93. $(call buildpkg,3rdparty/automake)
  94. endif
  95. cmake:
  96. # Build on CentOS 5/6 only
  97. ifneq ($(wildcard /boot/vmlinuz*.el5* /boot/vmlinuz*.el6*),)
  98. $(call buildpkg,3rdparty/cmake)
  99. endif
  100. esound:
  101. # Build on Mageia and CentOS >= 7
  102. ifneq ($(wildcard /etc/mageia-release /boot/vmlinuz*.el7*),)
  103. $(call buildpkg,3rdparty/esound)
  104. endif
  105. gnuchess:
  106. # Build on CentOS 5, CentOS 7
  107. ifneq ($(wildcard /boot/vmlinuz*.el5* /boot/vmlinuz*.el7*),)
  108. $(call buildpkg,3rdparty/gnuchess)
  109. endif
  110. hal: hal-info
  111. # Do NOT build on CentOS 5, CentOS 6
  112. ifeq ($(wildcard /boot/vmlinuz*.el5* /boot/vmlinuz*.el6*),)
  113. $(call buildpkg,3rdparty/hal)
  114. endif
  115. hal-info:
  116. # Do NOT build on CentOS 5, CentOS 6
  117. ifeq ($(wildcard /boot/vmlinuz*.el5* /boot/vmlinuz*.el6*),)
  118. $(call buildpkg,3rdparty/hal-info)
  119. endif
  120. htdig:
  121. # build on Mageia, and CentOS >= 7
  122. ifneq ($(wildcard /etc/mageia-release /boot/vmlinuz*.el7*),)
  123. $(call buildpkg,extras/htdig)
  124. endif
  125. imlib1:
  126. # Do NOT build on Fedora, nor CentOS
  127. ifeq ($(wildcard /etc/fedora-release),)
  128. ifeq ($(wildcard /etc/centos-release),)
  129. ifeq ($(wildcard /boot/vmlinuz*.el5*),)
  130. $(call buildpkg,3rdparty/imlib1)
  131. endif
  132. endif
  133. endif
  134. libcurl: automake libtool
  135. # Build on CentOS 5 only
  136. ifneq ($(wildcard /boot/vmlinuz*.el5*),)
  137. $(call buildpkg,3rdparty/curl)
  138. endif
  139. libotr3:
  140. # Build on Mageia, CentOS >= 7
  141. ifneq ($(wildcard /etc/mageia-release /boot/vmlinuz*.el7*),)
  142. $(call buildpkg,3rdparty/libotr3)
  143. endif
  144. libtool: autoconf automake
  145. # Build on CentOS 5 only
  146. ifneq ($(wildcard /boot/vmlinuz*.el5*),)
  147. $(call buildpkg,3rdparty/libtool)
  148. endif
  149. lilypond: mftrace
  150. # Build on CentOS 6 only
  151. ifneq ($(wildcard /boot/vmlinuz*.el6*),)
  152. $(call buildpkg,3rdparty/lilypond)
  153. endif
  154. m4:
  155. # Build on CentOS 5 only (vendor-provided m4 is too old)
  156. ifneq ($(wildcard /boot/vmlinuz*.el5*),)
  157. $(call buildpkg,3rdparty/m4)
  158. endif
  159. mftrace:
  160. # Build on CentOS 6 only
  161. ifneq ($(wildcard /boot/vmlinuz*.el6*),)
  162. $(call buildpkg,3rdparty/mftrace)
  163. endif
  164. pcsc-perl:
  165. # Build on CentOS and openSUSE only
  166. ifneq ($(wildcard /etc/centos-release /etc/SuSE-release /boot/vmlinuz*.el5*),)
  167. $(call buildpkg,3rdparty/pcsc-perl)
  168. endif
  169. poppler:
  170. # Build on CentOS 5 only (vendor-provided Poppler is too old)
  171. ifneq ($(wildcard /boot/vmlinuz*.el5*),)
  172. $(call buildpkg,3rdparty/poppler)
  173. endif
  174. python-qt3: tdelibs sip
  175. $(call buildpkg,3rdparty/python-qt3)
  176. sip:
  177. # Build on CentOS 5 only (vendor-provided SIP is too old)
  178. ifneq ($(wildcard /boot/vmlinuz*.el5*),)
  179. $(call buildpkg,3rdparty/sip)
  180. endif
  181. sword:
  182. # Build on Fedora >= 20, PCLinuxOS, CentOS >= 7
  183. ifneq ($(wildcard /boot/vmlinuz*.fc20* /etc/pclinuxos-release /boot/vmlinuz*.el7*),)
  184. $(call buildpkg,3rdparty/sword)
  185. endif
  186. wv2:
  187. # Do NOT build on Mageia or openSUSE or PCLINUXOS
  188. ifeq ($(wildcard /etc/mageia-release /etc/SuSE-release /etc/pclinuxos-release),)
  189. $(call buildpkg,3rdparty/wv2)
  190. endif
  191. ### Extra packages
  192. akode: tqtinterface
  193. $(call buildpkg,extras/akode)
  194. cmake-macros: cmake
  195. ifneq ($(wildcard /etc/SuSE-release),)
  196. $(call buildpkg,extras/trinity-cmake-macros)
  197. endif
  198. ### Trinity Libraries
  199. kipi-plugins: tqtinterface libkipi
  200. $(call buildpkg,libraries/kipi-plugins)
  201. libkdcraw: tqtinterface
  202. $(call buildpkg,libraries/libkdcraw)
  203. libkexiv2: tqtinterface
  204. $(call buildpkg,libraries/libkexiv2)
  205. libkipi: tqtinterface
  206. $(call buildpkg,libraries/libkipi)
  207. libksquirrel: tqtinterface
  208. $(call buildpkg,libraries/libksquirrel)
  209. mlt: tqtinterface
  210. $(call buildpkg,libraries/mlt)
  211. pytdeextensions: tqtinterface python-trinity
  212. $(call buildpkg,libraries/pytdeextensions)
  213. python-trinity: tqtinterface python-qt3
  214. $(call buildpkg,libraries/python-trinity)
  215. ### Trinity Applications
  216. abakus: tdebase
  217. $(call buildpkg,applications/abakus)
  218. adept: tdebase
  219. $(call buildpkg,applications/adept)
  220. amarok: tdebase cmake
  221. $(call buildpkg,applications/amarok)
  222. basket: tdebase
  223. $(call buildpkg,applications/basket)
  224. bibletime: tdebase sword
  225. $(call buildpkg,applications/bibletime)
  226. compizconfig-backend-kconfig: tdebase
  227. $(call buildpkg,applications/compizconfig-backend-kconfig)
  228. desktop-effects-tde: tdebase
  229. $(call buildpkg,applications/desktop-effects-tde)
  230. digikam: tdebase libkdcraw libkexiv2 libkipi libksquirrel
  231. $(call buildpkg,applications/digikam)
  232. dolphin: tdebase
  233. $(call buildpkg,applications/dolphin)
  234. filelight: tdebase
  235. $(call buildpkg,applications/filelight)
  236. filelight-l10n: tdebase
  237. $(call buildpkg,applications/filelight-l10n)
  238. fusion-icon: tdebase
  239. $(call buildpkg,applications/fusion-icon)
  240. gtk-qt-engine: tdebase
  241. # Do NOT build on CentOS 5 (GTK2 is too old)
  242. ifeq ($(wildcard /boot/vmlinuz*.el5*),)
  243. $(call buildpkg,applications/gtk-qt-engine)
  244. endif
  245. gwenview: tdebase
  246. $(call buildpkg,applications/gwenview)
  247. k3b: tdebase
  248. $(call buildpkg,applications/k3b)
  249. k9copy: tdebase k3b
  250. $(call buildpkg,applications/k9copy)
  251. kaffeine: tdebase
  252. $(call buildpkg,applications/kaffeine)
  253. kaffeine-mozilla: tdebase kaffeine
  254. $(call buildpkg,applications/kaffeine-mozilla)
  255. katapult: tdebase
  256. $(call buildpkg,applications/katapult)
  257. kbarcode: tdebase
  258. $(call buildpkg,applications/kbarcode)
  259. kbfx: tdebase
  260. $(call buildpkg,applications/kbfx)
  261. kbookreader: tdebase
  262. $(call buildpkg,applications/kbookreader)
  263. kchmviewer: tdebase
  264. $(call buildpkg,applications/kchmviewer)
  265. kcmautostart: tdebase
  266. $(call buildpkg,applications/kcmautostart)
  267. kcpuload: tdebase
  268. $(call buildpkg,applications/kcpuload)
  269. kdbusnotification: tdebase
  270. $(call buildpkg,applications/kdbusnotification)
  271. kdiff3: tdebase
  272. $(call buildpkg,applications/kdiff3)
  273. kdirstat: tdebase
  274. $(call buildpkg,applications/kdirstat)
  275. kdpkg: tdebase
  276. $(call buildpkg,applications/kdpkg)
  277. keep: tdebase
  278. $(call buildpkg,applications/keep)
  279. kerry: tdebase
  280. $(call buildpkg,applications/kerry)
  281. kgtk-qt3: tdebase
  282. # Do NOT build on CentOS 5 (GTK2 is too old)
  283. # Do NOT build on CentOS >=7 (GTK2 is too new)
  284. # Do NOT build on Fedora >= 20 (GTK2 is too new)
  285. # Do NOT build on Mageia >= 4 (GTK2 is too new)
  286. ifeq ($(wildcard /boot/vmlinuz*.el5* /boot/vmlinuz*.el7* /boot/vmlinuz*.fc20* /boot/vmlinuz*.mga4*),)
  287. $(call buildpkg,applications/kgtk-qt3)
  288. endif
  289. kile: tdebase
  290. $(call buildpkg,applications/kile)
  291. kima: tdebase
  292. $(call buildpkg,applications/kima)
  293. kiosktool: tdebase
  294. $(call buildpkg,applications/kiosktool)
  295. kmplayer: tdebase
  296. $(call buildpkg,applications/kmplayer)
  297. kmyfirewall: tdebase
  298. $(call buildpkg,applications/kmyfirewall)
  299. kmymoney: tdebase
  300. $(call buildpkg,applications/kmymoney)
  301. knemo: tdebase
  302. $(call buildpkg,applications/knemo)
  303. knetload: tdebase
  304. $(call buildpkg,applications/knetload)
  305. knetstats: tdebase
  306. $(call buildpkg,applications/knetstats)
  307. knetworkmanager8: tdebase
  308. $(call buildpkg,applications/knetworkmanager8)
  309. knights: tdebase gnuchess
  310. $(call buildpkg,applications/knights)
  311. knowit: tdebase
  312. $(call buildpkg,applications/knowit)
  313. knutclient: tdebase
  314. $(call buildpkg,applications/knutclient)
  315. koffice: tdebase wv2
  316. $(call buildpkg,applications/koffice)
  317. konversation: tdebase
  318. $(call buildpkg,applications/konversation)
  319. kopete-otr: tdebase libotr3
  320. $(call buildpkg,applications/kopete-otr)
  321. kpicosim: tdebase
  322. $(call buildpkg,applications/kpicosim)
  323. kpilot: tdebase
  324. # Do NOT build on CentOS 5 (pilot-link library is too old)
  325. ifeq ($(wildcard /boot/vmlinuz*.el5*),)
  326. $(call buildpkg,applications/kpilot)
  327. endif
  328. kpowersave: tdebase
  329. $(call buildpkg,applications/kpowersave)
  330. krename: tdebase
  331. $(call buildpkg,applications/krename)
  332. krusader: tdebase
  333. $(call buildpkg,applications/krusader)
  334. ksplash-engine-moodin: tdebase
  335. $(call buildpkg,applications/ksplash-engine-moodin)
  336. ksquirrel: tdebase libksquirrel
  337. $(call buildpkg,applications/ksquirrel)
  338. kstreamripper: tdebase
  339. $(call buildpkg,applications/kstreamripper)
  340. ksystemlog: tdebase
  341. $(call buildpkg,applications/ksystemlog)
  342. ktechlab: tdebase
  343. $(call buildpkg,applications/ktechlab)
  344. ktorrent: tdebase
  345. $(call buildpkg,applications/ktorrent)
  346. kuickshow: tdebase imlib1
  347. $(call buildpkg,applications/kuickshow)
  348. kvirc: tdebase
  349. $(call buildpkg,applications/kvirc)
  350. kvkbd: tdebase
  351. $(call buildpkg,applications/kvkbd)
  352. piklab: tdebase
  353. $(call buildpkg,applications/piklab)
  354. potracegui: tdebase
  355. $(call buildpkg,applications/potracegui)
  356. rosegarden: tdebase lilypond
  357. # Do NOT build on CentOS 5, CentOS 7
  358. ifeq ($(wildcard /boot/vmlinuz*.el5* /boot/vmlinuz*.el7*),)
  359. $(call buildpkg,applications/rosegarden)
  360. endif
  361. smartcardauth: tdebase pcsc-perl
  362. $(call buildpkg,applications/smartcardauth)
  363. smb4k: tdebase
  364. $(call buildpkg,applications/smb4k)
  365. soundkonverter: tdebase
  366. $(call buildpkg,applications/soundkonverter)
  367. tde-guidance: tdebase pytdeextensions
  368. $(call buildpkg,applications/tde-guidance)
  369. tdeio-apt: tdebase
  370. $(call buildpkg,applications/tdeio-apt)
  371. tdeio-locate: tdebase
  372. $(call buildpkg,applications/tdeio-locate)
  373. tdeio-umountwrapper: tdebase
  374. $(call buildpkg,applications/tdeio-umountwrapper)
  375. tderadio: tdebase
  376. # Do NOT build on CentOS 7
  377. ifeq ($(wildcard /boot/vmlinuz*.el7*),)
  378. $(call buildpkg,applications/tderadio)
  379. endif
  380. tde-style-lipstik: tdebase
  381. $(call buildpkg,applications/tde-style-lipstik)
  382. tde-style-qtcurve: tdebase
  383. $(call buildpkg,applications/tde-style-qtcurve)
  384. tdesudo: tdebase
  385. $(call buildpkg,applications/tdesudo)
  386. tdesvn: tdebase
  387. $(call buildpkg,applications/tdesvn)
  388. tde-systemsettings: tdebase
  389. $(call buildpkg,applications/tde-systemsettings)
  390. tdmtheme: tdebase
  391. $(call buildpkg,applications/tdmtheme)
  392. tellico: tdebase
  393. $(call buildpkg,applications/tellico)
  394. twin-style-crystal: tdebase
  395. $(call buildpkg,applications/twin-style-crystal)
  396. wlassistant: tdebase
  397. $(call buildpkg,applications/wlassistant)
  398. yakuake: tdebase
  399. $(call buildpkg,applications/yakuake)
  400. ### Trinity Translations
  401. gwenview-i18n: tdebase
  402. $(call buildpkg,applications/gwenview-i18n)
  403. k3b-i18n: tdebase
  404. $(call buildpkg,applications/k3b-i18n)
  405. koffice-i18n: tdebase
  406. $(call buildpkg,applications/koffice-i18n)
  407. tde-i18n: tdebase cmake
  408. $(call buildpkg,tde-i18n)
  409. ### Meta packages
  410. meta:
  411. $(call buildpkg,extras/trinity-desktop)
  412. ### Extra packages
  413. fileshareset:
  414. $(call buildpkg,extras/fileshareset)
  415. trinity-filesystem:
  416. $(call buildpkg,extras/trinity-filesystem)
  417. ksensors:
  418. $(call buildpkg,applications/ksensors)