xref: /haiku/build/jam/OptionalPackages (revision f850bba8d08df4881980ba303b7f42b823a82b90)
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 openssl_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 !gcc2 @{ mpc mpfr }@ ;
93			AddHaikuImageSystemPackages gmp@!gcc2 ;
94			AddHaikuImageSourcePackages binutils gcc !gcc2 @{ gmp mpc mpfr }@ ;
95		}
96	}
97
98	# other commonly used tools
99	AddHaikuImageDisabledPackages bison cdrtools flex jam m4 make mawk mkdepend
100		nasm@!gcc2 nasm_x86@secondary_x86 patch ;
101	AddHaikuImageSourcePackages bison cdrtools m4 make patch ;
102}
103
104
105# DevelopmentMin
106if [ IsOptionalHaikuImagePackageAdded DevelopmentMin ]
107		&& ( $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 ) {
108	AddPackageFilesToHaikuImage _packages_
109		:
110		haiku_devel.hpkg
111		haiku_$(TARGET_PACKAGING_ARCHS[2-])_devel.hpkg
112		:
113		nameFromMetaInfo
114		;
115
116	if $(HAIKU_IS_BOOTSTRAP) != 1 {
117		AddPackageFilesToHaikuImage _packages_
118			:
119			makefile_engine.hpkg
120			:
121			nameFromMetaInfo
122			;
123		AddHaikuImageDisabledPackages make mkdepend ;
124		AddHaikuImageSourcePackages make ;
125	}
126}
127
128
129# Git
130if [ IsOptionalHaikuImagePackageAdded Git ] {
131	AddHaikuImageSystemPackages git git_daemon perl ;
132	AddHaikuImageSourcePackages git ;
133}
134
135
136# WebPositive
137if [ IsOptionalHaikuImagePackageAdded WebPositive ] {
138	local architectureObject ;
139	for architectureObject in [ MultiArchSubDirSetup ] {
140		on $(architectureObject) {
141			if [ FIsBuildFeatureEnabled webpositive ] {
142				AddPackageFilesToHaikuImage system packages : webpositive.hpkg
143					: nameFromMetaInfo ;
144				break ;
145			}
146		}
147	}
148}
149
150
151# Welcome
152if [ IsOptionalHaikuImagePackageAdded Welcome ] {
153	AddPackageFilesToHaikuImage system packages :
154		haiku_userguide_ca.hpkg
155		haiku_userguide_de.hpkg
156		haiku_userguide_en.hpkg
157		haiku_userguide_es.hpkg
158		haiku_userguide_fi.hpkg
159		haiku_userguide_fur.hpkg
160		haiku_userguide_fr.hpkg
161		haiku_userguide_hu.hpkg
162		haiku_userguide_id.hpkg
163		haiku_userguide_it.hpkg
164		haiku_userguide_jp.hpkg
165		haiku_userguide_pl.hpkg
166		haiku_userguide_pt_BR.hpkg
167		haiku_userguide_pt_PT.hpkg
168		haiku_userguide_ro.hpkg
169		haiku_userguide_ru.hpkg
170		haiku_userguide_sk.hpkg
171		haiku_userguide_sv_SE.hpkg
172		haiku_userguide_tr.hpkg
173		haiku_userguide_uk.hpkg
174		haiku_userguide_zh_CN.hpkg
175		haiku_welcome.hpkg
176		: nameFromMetaInfo ;
177
178	AddSymlinkToHaikuImage home Desktop	: /boot/system/bin/quicktour
179		: Quick\ Tour ;
180
181	AddSymlinkToHaikuImage home Desktop	: /boot/system/bin/userguide
182		: User\ Guide ;
183}
184