2013-07-21 05:20:26 +04:00
|
|
|
# set HAIKU_BOOTSTRAP_BUILD early, if building a bootstrap Haiku image
|
2008-10-22 19:52:36 +04:00
|
|
|
switch $(HAIKU_BUILD_PROFILE) {
|
2013-07-21 05:20:26 +04:00
|
|
|
case "bootstrap-*" :
|
|
|
|
HAIKU_BOOTSTRAP_BUILD = 1 ;
|
|
|
|
}
|
2009-09-23 13:02:31 +04:00
|
|
|
|
2013-07-07 16:21:51 +04:00
|
|
|
|
2013-07-21 05:20:26 +04:00
|
|
|
rule DefineDefaultBuildProfiles
|
|
|
|
{
|
|
|
|
# alpha release profiles
|
|
|
|
DefineBuildProfile alpha-raw : image : "haiku-alpha.image" ;
|
|
|
|
DefineBuildProfile alpha-vmware : vmware-image : "haiku-alpha.vmdk" ;
|
|
|
|
DefineBuildProfile alpha-cd : cd-image : "haiku-alpha.iso" ;
|
|
|
|
DefineBuildProfile alpha-anyboot : anyboot-image
|
|
|
|
: "haiku-alpha-anyboot.image" ;
|
|
|
|
|
|
|
|
# nightly profiles
|
|
|
|
DefineBuildProfile nightly-raw : image : "haiku-nightly.image" ;
|
|
|
|
DefineBuildProfile nightly-vmware : vmware-image : "haiku-nightly.vmdk" ;
|
|
|
|
DefineBuildProfile nightly-cd : cd-image : "haiku-nightly.iso" ;
|
|
|
|
DefineBuildProfile nightly-anyboot : anyboot-image
|
|
|
|
: "haiku-nightly-anyboot.image" ;
|
|
|
|
|
|
|
|
# bootstrap profiles
|
|
|
|
DefineBuildProfile bootstrap-raw : image : "haiku-bootstrap.image" ;
|
|
|
|
DefineBuildProfile bootstrap-vmware : vmware-image
|
|
|
|
: "haiku-bootstrap.vmdk" ;
|
|
|
|
|
|
|
|
switch $(HAIKU_BUILD_PROFILE) {
|
|
|
|
case "alpha-*" : {
|
|
|
|
Echo Building Haiku R1/alpha ;
|
|
|
|
HAIKU_ROOT_USER_NAME = user ;
|
|
|
|
HAIKU_ROOT_USER_REAL_NAME = "Yourself" ;
|
|
|
|
AddGroupToHaikuImage party : 101 : user sshd ;
|
|
|
|
HAIKU_IMAGE_HOST_NAME = shredder ;
|
|
|
|
HAIKU_IMAGE_SIZE = 800 ;
|
|
|
|
|
|
|
|
AddHaikuImagePackages
|
|
|
|
bepdf
|
|
|
|
cvs
|
|
|
|
keymapswitcher
|
|
|
|
man
|
|
|
|
mercurial
|
|
|
|
nano
|
|
|
|
openssh
|
|
|
|
p7zip
|
|
|
|
pe
|
|
|
|
python
|
|
|
|
subversion
|
|
|
|
timgmsoundfont
|
|
|
|
vision
|
|
|
|
wonderbrush
|
2013-09-30 00:09:00 +04:00
|
|
|
wpa_supplicant
|
2013-07-21 05:20:26 +04:00
|
|
|
wqy_microhei
|
2013-08-10 17:03:49 +04:00
|
|
|
xz_utils@!gcc2
|
2013-07-21 05:20:26 +04:00
|
|
|
;
|
|
|
|
|
2013-08-21 18:30:39 +04:00
|
|
|
# xz_utils can't be built with gcc2, so a mere gcc2 system doesn't
|
|
|
|
# have it. However, xz_utils does exist for the secondary (gcc4)
|
|
|
|
# architecture of a gcc2 hybrid.
|
|
|
|
if $(HAIKU_PACKAGING_ARCHS) != x86_gcc2 {
|
|
|
|
AddHaikuImagePackages
|
|
|
|
xz_utils_x86@gcc2
|
|
|
|
;
|
|
|
|
}
|
|
|
|
|
2013-08-10 11:58:11 +04:00
|
|
|
local architectureObject ;
|
2013-08-10 17:03:49 +04:00
|
|
|
for architectureObject in [ MultiArchSubDirSetup ] {
|
2013-08-10 11:58:11 +04:00
|
|
|
on $(architectureObject) {
|
2013-09-30 00:09:00 +04:00
|
|
|
AddHaikuImagePackages openssl ;
|
2013-08-10 11:58:11 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-21 05:20:26 +04:00
|
|
|
AddOptionalHaikuImagePackages BeBook Development Git WebPositive
|
|
|
|
Welcome ;
|
|
|
|
}
|
|
|
|
|
|
|
|
case "beta-*" : {
|
|
|
|
Echo You wish. ;
|
|
|
|
}
|
|
|
|
|
|
|
|
case "nightly-*" : {
|
|
|
|
Echo Building Haiku Nightly ;
|
|
|
|
HAIKU_ROOT_USER_NAME = user ;
|
|
|
|
HAIKU_ROOT_USER_REAL_NAME = "Yourself" ;
|
|
|
|
AddGroupToHaikuImage party : 101 : user sshd ;
|
|
|
|
HAIKU_IMAGE_HOST_NAME = shredder ;
|
|
|
|
HAIKU_IMAGE_SIZE = 600 ;
|
|
|
|
|
|
|
|
AddHaikuImagePackages
|
|
|
|
man
|
|
|
|
nano
|
|
|
|
openssh
|
2013-09-30 00:09:00 +04:00
|
|
|
openssl
|
2013-07-21 05:20:26 +04:00
|
|
|
p7zip
|
|
|
|
pe
|
|
|
|
vision
|
2013-09-30 00:09:00 +04:00
|
|
|
wpa_supplicant
|
2013-07-21 05:20:26 +04:00
|
|
|
xz_utils
|
|
|
|
;
|
|
|
|
|
|
|
|
AddOptionalHaikuImagePackages Development Git WebPositive ;
|
|
|
|
}
|
|
|
|
|
|
|
|
case "bootstrap-*" : {
|
|
|
|
Echo Building Haiku Bootstrap ;
|
|
|
|
HAIKU_IMAGE_HOST_NAME = shredder ;
|
2013-09-07 17:25:55 +04:00
|
|
|
HAIKU_IMAGE_SIZE = 20000 ;
|
2013-07-21 05:20:26 +04:00
|
|
|
|
|
|
|
AddHaikuImagePackages
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
binutils
|
|
|
|
bison
|
2013-09-30 00:09:00 +04:00
|
|
|
curl
|
|
|
|
curl_devel
|
2013-07-21 05:20:26 +04:00
|
|
|
flex
|
2013-09-30 00:09:00 +04:00
|
|
|
freetype
|
|
|
|
freetype_devel
|
2013-07-21 05:20:26 +04:00
|
|
|
gcc
|
2013-09-30 00:09:00 +04:00
|
|
|
grep
|
2013-07-22 01:58:37 +04:00
|
|
|
haikuporter
|
2013-09-30 00:09:00 +04:00
|
|
|
icu
|
|
|
|
libsolv
|
2013-07-21 05:20:26 +04:00
|
|
|
libtool
|
2013-07-24 00:44:32 +04:00
|
|
|
libtool_libltdl
|
2013-07-21 05:20:26 +04:00
|
|
|
m4
|
|
|
|
make
|
2013-09-30 00:09:00 +04:00
|
|
|
ncurses
|
|
|
|
ncurses_devel
|
2013-07-22 01:58:37 +04:00
|
|
|
python
|
2013-09-30 00:09:00 +04:00
|
|
|
sed
|
|
|
|
zlib
|
|
|
|
zlib_devel
|
2013-07-21 05:20:26 +04:00
|
|
|
;
|
|
|
|
|
2013-08-06 05:37:22 +04:00
|
|
|
# secondary architecture packages
|
|
|
|
local architectureObject ;
|
|
|
|
for architectureObject
|
|
|
|
in [ MultiArchSubDirSetup $(TARGET_PACKAGING_ARCHS[2-]) ] {
|
|
|
|
on $(architectureObject) {
|
|
|
|
AddHaikuImagePackages
|
2013-09-30 00:09:00 +04:00
|
|
|
binutils
|
2013-09-25 07:30:54 +04:00
|
|
|
curl
|
|
|
|
curl_devel
|
2013-08-06 05:37:22 +04:00
|
|
|
freetype
|
|
|
|
freetype_devel
|
2013-09-30 00:09:00 +04:00
|
|
|
gcc
|
2013-08-06 05:37:22 +04:00
|
|
|
icu
|
|
|
|
libsolv
|
|
|
|
ncurses
|
|
|
|
ncurses_devel
|
|
|
|
zlib
|
|
|
|
zlib_devel
|
|
|
|
;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-21 05:20:26 +04:00
|
|
|
AddOptionalHaikuImagePackages DevelopmentMin ;
|
|
|
|
}
|
2013-07-07 16:21:51 +04:00
|
|
|
}
|
2009-11-26 14:34:55 +03:00
|
|
|
|
|
|
|
|
2013-07-21 05:20:26 +04:00
|
|
|
# Uncomment in official release branch.
|
|
|
|
#HAIKU_DEFINES += HAIKU_OFFICIAL_RELEASE ;
|
|
|
|
#TARGET_DEFINES += HAIKU_OFFICIAL_RELEASE ;
|
2013-07-07 16:21:51 +04:00
|
|
|
|
|
|
|
|
2013-07-21 05:20:26 +04:00
|
|
|
# If a build profile was specified on the command line, now is the time to
|
|
|
|
# check whether it is unknown or one of the default profiles.
|
|
|
|
if $(HAIKU_BUILD_PROFILE) && ! $(HAIKU_BUILD_PROFILE_DEFINED) {
|
|
|
|
# define the obvious default profiles
|
|
|
|
if $(HAIKU_BUILD_PROFILE) in anyboot-image cd-image image install
|
|
|
|
vmware-image {
|
|
|
|
DefineBuildProfile $(HAIKU_BUILD_PROFILE) : $(HAIKU_BUILD_PROFILE) ;
|
|
|
|
} else {
|
|
|
|
Exit "Build profile" $(HAIKU_BUILD_PROFILE) "not defined." ;
|
|
|
|
}
|
2013-07-07 16:21:51 +04:00
|
|
|
}
|
|
|
|
}
|