xref: /haiku/build/jam/repositories/Haiku (revision fc7456e9b1ec38c941134ed6d01c438cf289381e)
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_datatranslators
14	haiku_devel
15	haiku_loader
16
17	haiku_$(secondaryArchs)
18	haiku_$(secondaryArchs)_devel
19	] ;
20
21if $(HAIKU_IS_BOOTSTRAP) != 1 && $(HAIKU_BUILD_TYPE) != minimum {
22	packages += [ FFilterByBuildFeatures
23		haiku_extras
24		makefile_engine
25		netfs
26		userland_fs
27		] ;
28	if $(HAIKU_INCLUDE_SOURCES) = 1 {
29		packages += haiku_source ;
30	}
31}
32
33local webPositiveIsAvailable ;
34local architectureObject ;
35for architectureObject in [ MultiArchSubDirSetup ] {
36	on $(architectureObject) {
37		if [ FIsBuildFeatureEnabled webpositive ] {
38			webPositiveIsAvailable = true ;
39			break ;
40		}
41	}
42}
43if $(webPositiveIsAvailable) {
44	packages += webpositive ;
45}
46
47HaikuRepository $(haikuRepository) : $(repoInfo) : $(packages:S=.hpkg) ;
48