xref: /haiku/build/jam/OptionalPackages (revision 21258e2674226d6aa732321b6f8494841895af5f)
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		Echo "No optional package BeOSCompatibility available for"
46			"$(TARGET_ARCH)" ;
47	} else if $(TARGET_GCC_VERSION_$(TARGET_PACKAGING_ARCH)[1]) >= 4 {
48		Echo "No optional package BeOSCompatibility available for gcc4" ;
49	} else {
50		Echo "Warning: Adding BeOS compatibility symlinks. This will go away."
51			"Please fix your apps!" ;
52		AddSymlinkToHaikuImage beos : ../system/apps ;
53		AddSymlinkToHaikuImage beos : ../system/bin ;
54		AddSymlinkToHaikuImage beos
55			: ../system/documentation ;
56		AddSymlinkToHaikuImage beos : ../system/settings/etc ;
57		AddSymlinkToHaikuImage beos : ../system/preferences ;
58		AddSymlinkToHaikuImage beos : ../system ;
59		AddDirectoryToHaikuImage var ;
60		AddSymlinkToHaikuImage var : /boot/system/var/log ;
61		AddSymlinkToHaikuImage var : /boot/system/cache/tmp ;
62	}
63}
64
65
66# Development
67if [ IsOptionalHaikuImagePackageAdded Development ] {
68	# autotools
69	AddHaikuImageDisabledPackages autoconf automake texinfo ;
70	AddHaikuImageSourcePackages autoconf automake texinfo ;
71
72	# some other build tools
73	AddHaikuImageDisabledPackages pkgconfig ;
74	AddHaikuImageSourcePackages pkgconfig ;
75
76	# devel packages for some of the base set
77	local architectureObject ;
78	for architectureObject in [ MultiArchSubDirSetup ] {
79		on $(architectureObject) {
80			AddHaikuImageDisabledPackages curl_devel openssl_devel nghttp2_devel
81				libjpeg_turbo_devel libpng16_devel zlib_devel ;
82		}
83	}
84}
85
86
87# DevelopmentBase
88if [ IsOptionalHaikuImagePackageAdded DevelopmentBase ] {
89	# gcc and binutils (for all target architectures)
90	local architectureObject ;
91	for architectureObject in [ MultiArchSubDirSetup ] {
92		on $(architectureObject) {
93			AddHaikuImageDisabledPackages binutils gcc mpc gmp mpfr ;
94			AddHaikuImageSourcePackages binutils gcc mpc gmp mpfr ;
95		}
96	}
97
98	# other commonly used tools
99	AddHaikuImageDisabledPackages bison cdrtools flex jam m4 make mkdepend nasm patch ;
100	AddHaikuImageSourcePackages bison cdrtools m4 make patch ;
101}
102
103
104# DevelopmentMin
105if [ IsOptionalHaikuImagePackageAdded DevelopmentMin ]
106		&& ( $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 ) {
107	AddPackageFilesToHaikuImage _packages_
108		:
109		haiku_devel.hpkg
110		haiku_$(TARGET_PACKAGING_ARCHS[2-])_devel.hpkg
111		:
112		nameFromMetaInfo
113		;
114
115	if $(HAIKU_IS_BOOTSTRAP) != 1 {
116		AddPackageFilesToHaikuImage _packages_
117			:
118			makefile_engine.hpkg
119			:
120			nameFromMetaInfo
121			;
122		AddHaikuImageDisabledPackages make mkdepend ;
123		AddHaikuImageSourcePackages make ;
124	}
125}
126
127
128# Git
129if [ IsOptionalHaikuImagePackageAdded Git ] {
130	AddHaikuImageSystemPackages git git_daemon perl ;
131	AddHaikuImageSourcePackages git ;
132}
133
134
135# WebPositive
136if [ IsOptionalHaikuImagePackageAdded WebPositive ] {
137	local architectureObject ;
138	for architectureObject in [ MultiArchSubDirSetup ] {
139		on $(architectureObject) {
140			if [ FIsBuildFeatureEnabled webpositive ] {
141				AddPackageFilesToHaikuImage system packages : webpositive.hpkg
142					: nameFromMetaInfo ;
143				break ;
144			}
145		}
146	}
147}
148
149
150# Welcome
151if [ IsOptionalHaikuImagePackageAdded Welcome ] {
152	AddPackageFilesToHaikuImage system packages :
153		haiku_userguide_ca.hpkg
154		haiku_userguide_de.hpkg
155		haiku_userguide_en.hpkg
156		haiku_userguide_es.hpkg
157		haiku_userguide_fi.hpkg
158		haiku_userguide_fur.hpkg
159		haiku_userguide_fr.hpkg
160		haiku_userguide_hu.hpkg
161		haiku_userguide_id.hpkg
162		haiku_userguide_it.hpkg
163		haiku_userguide_jp.hpkg
164		haiku_userguide_pl.hpkg
165		haiku_userguide_pt_BR.hpkg
166		haiku_userguide_pt_PT.hpkg
167		haiku_userguide_ro.hpkg
168		haiku_userguide_ru.hpkg
169		haiku_userguide_sk.hpkg
170		haiku_userguide_sv_SE.hpkg
171		haiku_userguide_tr.hpkg
172		haiku_userguide_uk.hpkg
173		haiku_userguide_zh_CN.hpkg
174		haiku_welcome.hpkg
175		: nameFromMetaInfo ;
176
177	AddSymlinkToHaikuImage home Desktop	: /boot/system/bin/quicktour
178		: Quick\ Tour ;
179
180	AddSymlinkToHaikuImage home Desktop	: /boot/system/bin/userguide
181		: User\ Guide ;
182}
183