xref: /haiku/build/jam/repositories/Haiku (revision 22440f4105cafc95cc1d49f9bc65bb395c527d86)
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	haiku_userguide
16	haiku_welcome
17	makefile_engine
18	netfs@!x86_64
19	userland_fs@!x86_64
20
21	haiku_$(secondaryArchs)
22	haiku_$(secondaryArchs)_devel
23	] ;
24
25local webPositiveIsAvailable ;
26local architectureObject ;
27for architectureObject in [ MultiArchSubDirSetup ] {
28	on $(architectureObject) {
29		if [ FIsBuildFeatureEnabled webpositive ] {
30			webPositiveIsAvailable = true ;
31			break ;
32		}
33	}
34}
35if $(webPositiveIsAvailable) {
36	packages += webpositive ;
37}
38
39HaikuRepository $(haikuRepository) : $(repoInfo) : $(packages:S=.hpkg) ;
40