xref: /haiku/build/jam/OptionalPackages (revision 072d3935c2497638e9c2502f574c133caeba9d3d)
1# This file defines the optional packages that can be added to the Haiku image.
2# It is directly included from HaikuImage -- all variables defined there can
3# be used.
4
5# Available Optional Packages:
6#	BeOSCompatibility		- creates links within the system to support old apps
7#	Development				- more complete dev environment (including autotools)
8#	DevelopmentBase			- basic development environment (gcc, headers, libs,...)
9#	DevelopmentMin			- development headers, libs, tools, from sources only
10#	Git						- the distributed version control system
11#	WebPositive				- native, WebKit-based web browser
12#	Welcome					- introductory documentation to Haiku
13
14
15# dependencies between optional packages
16OptionalPackageDependencies Development : DevelopmentBase ;
17OptionalPackageDependencies DevelopmentBase : DevelopmentMin ;
18OptionalPackageDependencies DevelopmentPowerPC : DevelopmentMin ;
19OptionalPackageDependencies NetFS : UserlandFS ;
20
21
22# Haiku sources
23if $(HAIKU_INCLUDE_SOURCES) = 1 {
24	AddPackageFilesToHaikuImage _sources_
25		:
26		haiku_source.hpkg
27		:
28		nameFromMetaInfo
29		;
30}
31
32
33# BeBook
34if [ IsOptionalHaikuImagePackageAdded BeBook ] {
35	AddHaikuImageSystemPackages be_book ;
36	AddSymlinkToHaikuImage home Desktop
37		: /boot/system/documentation/BeBook/index.html
38		: BeBook ;
39}
40
41
42# BeOSCompatibility
43if [ IsOptionalHaikuImagePackageAdded BeOSCompatibility ] {
44	if $(TARGET_ARCH) != x86
45			|| $(TARGET_CC_IS_LEGACY_GCC_$(TARGET_PACKAGING_ARCH)) != 1 {
46		Echo "No optional package BeOSCompatibility available for"
47			"$(TARGET_ARCH)" ;
48	} else {
49		Echo "Warning: Adding BeOS compatibility symlinks. This will go away."
50			"Please fix your apps!" ;
51		AddSymlinkToHaikuImage beos : ../system/apps ;
52		AddSymlinkToHaikuImage beos : ../system/bin ;
53		AddSymlinkToHaikuImage beos
54			: ../system/documentation ;
55		AddSymlinkToHaikuImage beos : ../system/settings/etc ;
56		AddSymlinkToHaikuImage beos : ../system/preferences ;
57		AddSymlinkToHaikuImage beos : ../system ;
58		AddDirectoryToHaikuImage var ;
59		AddSymlinkToHaikuImage var : /boot/system/var/log ;
60		AddSymlinkToHaikuImage var : /boot/system/cache/tmp ;
61	}
62}
63
64
65# Development
66if [ IsOptionalHaikuImagePackageAdded Development ] {
67	# autotools
68	AddHaikuImageDisabledPackages autoconf automake texinfo ;
69	AddHaikuImageSourcePackages autoconf automake texinfo ;
70
71	# some other build tools
72	AddHaikuImageDisabledPackages pkgconfig ;
73	AddHaikuImageSourcePackages pkgconfig ;
74
75	# devel packages for some of the base set
76	local architectureObject ;
77	for architectureObject in [ MultiArchSubDirSetup ] {
78		on $(architectureObject) {
79			AddHaikuImageDisabledPackages curl_devel openssl_devel nghttp2_devel
80				libjpeg_turbo_devel libpng16_devel zlib_devel ;
81		}
82	}
83}
84
85
86# DevelopmentBase
87if [ IsOptionalHaikuImagePackageAdded DevelopmentBase ] {
88	# gcc and binutils (for all target architectures)
89	local architectureObject ;
90	for architectureObject in [ MultiArchSubDirSetup ] {
91		on $(architectureObject) {
92			AddHaikuImageDisabledPackages binutils gcc mpc gmp mpfr ;
93			AddHaikuImageSourcePackages binutils gcc mpc gmp mpfr ;
94		}
95	}
96
97	# other commonly used tools
98	AddHaikuImageDisabledPackages bison cdrtools flex jam m4 make mkdepend nasm patch ;
99	AddHaikuImageSourcePackages bison cdrtools m4 make patch ;
100}
101
102
103# DevelopmentMin
104if [ IsOptionalHaikuImagePackageAdded DevelopmentMin ]
105		&& ( $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 ) {
106	AddPackageFilesToHaikuImage _packages_
107		:
108		haiku_devel.hpkg
109		haiku_$(TARGET_PACKAGING_ARCHS[2-])_devel.hpkg
110		:
111		nameFromMetaInfo
112		;
113
114	if $(HAIKU_IS_BOOTSTRAP) != 1 {
115		AddPackageFilesToHaikuImage _packages_
116			:
117			makefile_engine.hpkg
118			:
119			nameFromMetaInfo
120			;
121		AddHaikuImageDisabledPackages make mkdepend ;
122		AddHaikuImageSourcePackages make ;
123	}
124}
125
126
127# Git
128if [ IsOptionalHaikuImagePackageAdded Git ] {
129	AddHaikuImageSystemPackages git git_daemon perl ;
130	AddHaikuImageSourcePackages git ;
131}
132
133
134# WebPositive
135if [ IsOptionalHaikuImagePackageAdded WebPositive ] {
136	local architectureObject ;
137	for architectureObject in [ MultiArchSubDirSetup ] {
138		on $(architectureObject) {
139			if [ FIsBuildFeatureEnabled webpositive ] {
140				AddPackageFilesToHaikuImage system packages : webpositive.hpkg
141					: nameFromMetaInfo ;
142				break ;
143			}
144		}
145	}
146}
147
148
149# Welcome
150if [ IsOptionalHaikuImagePackageAdded Welcome ] {
151	AddPackageFilesToHaikuImage system packages :
152		haiku_userguide_ca.hpkg
153		haiku_userguide_de.hpkg
154		haiku_userguide_en.hpkg
155		haiku_userguide_es.hpkg
156		haiku_userguide_fi.hpkg
157		haiku_userguide_fur.hpkg
158		haiku_userguide_fr.hpkg
159		haiku_userguide_hu.hpkg
160		haiku_userguide_id.hpkg
161		haiku_userguide_it.hpkg
162		haiku_userguide_jp.hpkg
163		haiku_userguide_pl.hpkg
164		haiku_userguide_pt_BR.hpkg
165		haiku_userguide_pt_PT.hpkg
166		haiku_userguide_ro.hpkg
167		haiku_userguide_ru.hpkg
168		haiku_userguide_sk.hpkg
169		haiku_userguide_sv_SE.hpkg
170		haiku_userguide_tr.hpkg
171		haiku_userguide_uk.hpkg
172		haiku_userguide_zh_CN.hpkg
173		haiku_welcome.hpkg
174		: nameFromMetaInfo ;
175
176	AddSymlinkToHaikuImage home Desktop	: /boot/system/bin/quicktour
177		: Quick\ Tour ;
178
179	AddSymlinkToHaikuImage home Desktop	: /boot/system/bin/userguide
180		: User\ Guide ;
181}
182