xref: /haiku/build/jam/repositories/Haiku (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1# Builds the Haiku packages repository.
2
3local haikuRepository = <repository>Haiku ;
4MakeLocate $(haikuRepository)
5	: $(HAIKU_PACKAGE_REPOSITORIES_DIR_$(HAIKU_PACKAGING_ARCH)) ;
6
7local repoInfo = <repository-info-template>haiku ;
8SEARCH on $(repoInfo) = $(HAIKU_TOP)/src/data/repository_infos ;
9
10local secondaryArchs = $(TARGET_PACKAGING_ARCHS[2-]) ;
11local packages = [ FFilterByBuildFeatures
12	haiku
13	haiku_devel
14	haiku_loader
15
16	haiku_$(secondaryArchs)
17	haiku_$(secondaryArchs)_devel
18	] ;
19
20if $(HAIKU_IS_BOOTSTRAP) != 1 && $(HAIKU_BUILD_TYPE) != minimum {
21	packages += [ FFilterByBuildFeatures
22		haiku_extras
23		haiku_source
24		haiku_userguide_ca
25		haiku_userguide_de
26		haiku_userguide_en
27		haiku_userguide_es
28		haiku_userguide_fi
29		haiku_userguide_fr
30		haiku_userguide_hu
31		haiku_userguide_it
32		haiku_userguide_jp
33		haiku_userguide_pl
34		haiku_userguide_pt_BR
35		haiku_userguide_pt_PT
36		haiku_userguide_ru
37		haiku_userguide_sk
38		haiku_userguide_sv_SE
39		haiku_userguide_uk
40		haiku_userguide_zh_CN
41		haiku_welcome
42		makefile_engine
43		netfs
44		userland_fs
45		] ;
46}
47
48local webPositiveIsAvailable ;
49local architectureObject ;
50for architectureObject in [ MultiArchSubDirSetup ] {
51	on $(architectureObject) {
52		if [ FIsBuildFeatureEnabled webpositive ] {
53			webPositiveIsAvailable = true ;
54			break ;
55		}
56	}
57}
58if $(webPositiveIsAvailable) {
59	packages += webpositive ;
60}
61
62HaikuRepository $(haikuRepository) : $(repoInfo) : $(packages:S=.hpkg) ;
63