2013-07-21 03:20:26 +02:00
|
|
|
# set HAIKU_BOOTSTRAP_BUILD early, if building a bootstrap Haiku image
|
2008-10-22 15:52:36 +00:00
|
|
|
switch $(HAIKU_BUILD_PROFILE) {
|
2013-07-21 03:20:26 +02:00
|
|
|
case "bootstrap-*" :
|
|
|
|
HAIKU_BOOTSTRAP_BUILD = 1 ;
|
2014-01-26 10:42:05 -06:00
|
|
|
HAIKU_DEFINES += HAIKU_BOOTSTRAP_BUILD ;
|
|
|
|
TARGET_DEFINES += HAIKU_BOOTSTRAP_BUILD ;
|
2013-07-21 03:20:26 +02:00
|
|
|
}
|
2009-09-23 09:02:31 +00:00
|
|
|
|
2013-07-07 14:21:51 +02:00
|
|
|
|
2013-07-21 03:20:26 +02:00
|
|
|
rule DefineDefaultBuildProfiles
|
|
|
|
{
|
2013-11-23 16:49:10 +01:00
|
|
|
# release profiles
|
|
|
|
DefineBuildProfile release-raw : image : "haiku-release.image" ;
|
|
|
|
DefineBuildProfile release-vmware : vmware-image : "haiku-release.vmdk" ;
|
|
|
|
DefineBuildProfile release-cd : cd-image : "haiku-release.iso" ;
|
|
|
|
DefineBuildProfile release-anyboot : anyboot-image
|
|
|
|
: "haiku-release-anyboot.image" ;
|
2013-07-21 03:20:26 +02:00
|
|
|
|
|
|
|
# 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) {
|
2013-11-23 16:49:10 +01:00
|
|
|
case "release-*" : {
|
|
|
|
Echo Building Haiku R1/development preview ;
|
2013-10-10 23:45:29 +02:00
|
|
|
HAIKU_ROOT_USER_NAME ?= user ;
|
|
|
|
HAIKU_ROOT_USER_REAL_NAME ?= "Yourself" ;
|
2013-07-21 03:20:26 +02:00
|
|
|
AddGroupToHaikuImage party : 101 : user sshd ;
|
2013-10-10 23:45:29 +02:00
|
|
|
HAIKU_IMAGE_HOST_NAME ?= shredder ;
|
|
|
|
HAIKU_IMAGE_SIZE ?= 800 ;
|
2013-07-21 03:20:26 +02:00
|
|
|
|
|
|
|
AddHaikuImagePackages
|
|
|
|
bepdf
|
|
|
|
cvs
|
|
|
|
keymapswitcher
|
|
|
|
man
|
|
|
|
mercurial
|
|
|
|
nano
|
|
|
|
openssh
|
|
|
|
p7zip
|
|
|
|
pe
|
|
|
|
python
|
|
|
|
subversion
|
|
|
|
timgmsoundfont
|
|
|
|
vision
|
2013-09-29 22:09:00 +02:00
|
|
|
wpa_supplicant
|
2013-07-21 03:20:26 +02:00
|
|
|
wqy_microhei
|
2013-11-24 13:33:44 +01:00
|
|
|
# xz_utils can't be built with gcc2, so we install it for
|
|
|
|
# primary gcc 4 architectures or gcc 2 hybrids.
|
2013-08-10 15:03:49 +02:00
|
|
|
xz_utils@!gcc2
|
2013-11-24 13:33:44 +01:00
|
|
|
gcc2 @{ xz_utils_x86@secondary_x86 }@
|
2013-07-21 03:20:26 +02:00
|
|
|
;
|
|
|
|
|
2013-08-10 09:58:11 +02:00
|
|
|
local architectureObject ;
|
2013-08-10 15:03:49 +02:00
|
|
|
for architectureObject in [ MultiArchSubDirSetup ] {
|
2013-08-10 09:58:11 +02:00
|
|
|
on $(architectureObject) {
|
2013-11-24 13:33:44 +01:00
|
|
|
AddHaikuImagePackages openssl wonderbrush@gcc2 ;
|
2013-08-10 09:58:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-24 13:33:44 +01:00
|
|
|
AddOptionalHaikuImagePackages BeBook Development Git Welcome ;
|
2013-11-23 12:32:36 -06:00
|
|
|
|
2013-12-30 19:29:45 -05:00
|
|
|
# WebPositive can only built for x86_gcc2, x86 and x86_64
|
|
|
|
if $(HAIKU_PACKAGING_ARCHS) in x86_gcc2 x86 x86_64 {
|
2013-11-24 13:33:44 +01:00
|
|
|
AddOptionalHaikuImagePackages WebPositive ;
|
2013-11-24 14:06:54 -06:00
|
|
|
} else {
|
|
|
|
Echo "WebPositive not available on $(HAIKU_PACKAGING_ARCHS)" ;
|
2013-11-23 12:32:36 -06:00
|
|
|
}
|
2013-07-21 03:20:26 +02:00
|
|
|
}
|
|
|
|
|
2013-11-23 16:49:10 +01:00
|
|
|
case "alpha-*" : {
|
|
|
|
Echo The alpha-* build profiles have been renamed to release-* ;
|
2013-07-21 03:20:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
case "nightly-*" : {
|
|
|
|
Echo Building Haiku Nightly ;
|
2013-10-10 23:45:29 +02:00
|
|
|
HAIKU_ROOT_USER_NAME ?= user ;
|
|
|
|
HAIKU_ROOT_USER_REAL_NAME ?= "Yourself" ;
|
2013-07-21 03:20:26 +02:00
|
|
|
AddGroupToHaikuImage party : 101 : user sshd ;
|
2013-10-10 23:45:29 +02:00
|
|
|
HAIKU_IMAGE_HOST_NAME ?= shredder ;
|
|
|
|
HAIKU_IMAGE_SIZE ?= 600 ;
|
2013-07-21 03:20:26 +02:00
|
|
|
|
|
|
|
AddHaikuImagePackages
|
|
|
|
man
|
|
|
|
nano
|
|
|
|
openssh
|
2013-09-29 22:09:00 +02:00
|
|
|
openssl
|
2013-07-21 03:20:26 +02:00
|
|
|
p7zip
|
|
|
|
pe
|
|
|
|
vision
|
2013-09-29 22:09:00 +02:00
|
|
|
wpa_supplicant
|
2013-11-24 13:33:44 +01:00
|
|
|
# xz_utils can't be built with gcc2, so we install it for
|
|
|
|
# primary gcc 4 architectures or gcc 2 hybrids.
|
|
|
|
xz_utils@!gcc2
|
|
|
|
gcc2 @{ xz_utils_x86@secondary_x86 }@
|
2013-07-21 03:20:26 +02:00
|
|
|
;
|
|
|
|
|
2013-11-23 12:32:36 -06:00
|
|
|
AddOptionalHaikuImagePackages Development Git ;
|
|
|
|
|
2013-12-30 19:29:45 -05:00
|
|
|
# WebPositive can only built for x86_gcc2, x86 and x86_64
|
|
|
|
if $(HAIKU_PACKAGING_ARCHS) in x86_gcc2 x86 x86_64 {
|
2013-11-24 13:33:44 +01:00
|
|
|
AddOptionalHaikuImagePackages WebPositive ;
|
2013-11-24 14:06:54 -06:00
|
|
|
} else {
|
|
|
|
Echo "WebPositive not available on $(HAIKU_PACKAGING_ARCHS)" ;
|
2013-11-23 12:32:36 -06:00
|
|
|
}
|
2013-07-21 03:20:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
case "bootstrap-*" : {
|
|
|
|
Echo Building Haiku Bootstrap ;
|
2013-10-10 23:45:29 +02:00
|
|
|
HAIKU_IMAGE_HOST_NAME ?= shredder ;
|
|
|
|
HAIKU_IMAGE_SIZE ?= 20000 ;
|
2013-07-21 03:20:26 +02:00
|
|
|
|
|
|
|
AddHaikuImagePackages
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
binutils
|
|
|
|
bison
|
2013-09-29 22:09:00 +02:00
|
|
|
curl
|
|
|
|
curl_devel
|
2014-02-25 17:36:13 +01:00
|
|
|
findutils
|
2013-07-21 03:20:26 +02:00
|
|
|
flex
|
2013-09-29 22:09:00 +02:00
|
|
|
freetype
|
|
|
|
freetype_devel
|
2014-02-25 22:15:13 +01:00
|
|
|
gawk
|
2013-07-21 03:20:26 +02:00
|
|
|
gcc
|
2013-09-29 22:09:00 +02:00
|
|
|
grep
|
2013-07-21 23:58:37 +02:00
|
|
|
haikuporter
|
2013-09-29 22:09:00 +02:00
|
|
|
icu
|
|
|
|
libsolv
|
2013-07-21 03:20:26 +02:00
|
|
|
libtool
|
2013-07-23 22:44:32 +02:00
|
|
|
libtool_libltdl
|
2013-07-21 03:20:26 +02:00
|
|
|
m4
|
|
|
|
make
|
2013-09-29 22:09:00 +02:00
|
|
|
ncurses
|
|
|
|
ncurses_devel
|
2013-07-21 23:58:37 +02:00
|
|
|
python
|
2013-09-29 22:09:00 +02:00
|
|
|
sed
|
2014-03-02 10:34:07 +01:00
|
|
|
texinfo
|
2013-09-29 22:09:00 +02:00
|
|
|
zlib
|
|
|
|
zlib_devel
|
2013-07-21 03:20:26 +02:00
|
|
|
;
|
|
|
|
|
2013-08-06 03:37:22 +02:00
|
|
|
# secondary architecture packages
|
|
|
|
local architectureObject ;
|
|
|
|
for architectureObject
|
|
|
|
in [ MultiArchSubDirSetup $(TARGET_PACKAGING_ARCHS[2-]) ] {
|
|
|
|
on $(architectureObject) {
|
|
|
|
AddHaikuImagePackages
|
2013-09-29 22:09:00 +02:00
|
|
|
binutils
|
2013-09-24 23:30:54 -04:00
|
|
|
curl
|
|
|
|
curl_devel
|
2013-08-06 03:37:22 +02:00
|
|
|
freetype
|
|
|
|
freetype_devel
|
2013-09-29 22:09:00 +02:00
|
|
|
gcc
|
2013-08-06 03:37:22 +02:00
|
|
|
icu
|
|
|
|
libsolv
|
|
|
|
ncurses
|
|
|
|
ncurses_devel
|
|
|
|
zlib
|
|
|
|
zlib_devel
|
|
|
|
;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-21 03:20:26 +02:00
|
|
|
AddOptionalHaikuImagePackages DevelopmentMin ;
|
|
|
|
}
|
2013-07-07 14:21:51 +02:00
|
|
|
}
|
2009-11-26 11:34:55 +00:00
|
|
|
|
|
|
|
|
2013-07-21 03:20:26 +02:00
|
|
|
# Uncomment in official release branch.
|
|
|
|
#HAIKU_DEFINES += HAIKU_OFFICIAL_RELEASE ;
|
|
|
|
#TARGET_DEFINES += HAIKU_OFFICIAL_RELEASE ;
|
2013-07-07 14:21:51 +02:00
|
|
|
|
|
|
|
|
2013-07-21 03:20:26 +02: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 14:21:51 +02:00
|
|
|
}
|
|
|
|
}
|