2008-03-29 18:18:35 +03:00
|
|
|
# This file defines the optional packages that can be added to the Haiku image.
|
|
|
|
# It is directly included from HaikuImage -- all variables defined there can
|
2013-07-05 12:51:42 +04:00
|
|
|
# be used.
|
2008-11-12 00:47:12 +03:00
|
|
|
|
2008-03-31 00:01:25 +04:00
|
|
|
# Available Optional Packages:
|
2009-12-27 03:13:08 +03:00
|
|
|
# BeOSCompatibility - creates links within the system to support old apps
|
|
|
|
# Bluetooth - experimental Haiku components for Bluetooth
|
|
|
|
# Development - more complete dev environment (including autotools)
|
|
|
|
# DevelopmentBase - basic development environment (gcc, headers, libs,...)
|
|
|
|
# DevelopmentMin - development headers, libs, tools, from sources only
|
2013-06-13 23:31:44 +04:00
|
|
|
# FFMpeg - audio/video library
|
|
|
|
# FFMpeg-devel - FFMpeg development files
|
2009-12-27 03:13:08 +03:00
|
|
|
# Git - the distributed version control system
|
2010-04-23 22:06:34 +04:00
|
|
|
# WebPositive - native, WebKit-based web browser
|
2009-12-27 03:13:08 +03:00
|
|
|
# Welcome - introductory documentation to Haiku
|
2010-03-02 00:44:08 +03:00
|
|
|
# WifiFirmwareScriptData - data files needed by install-wifi-firmwares.sh
|
2010-09-16 06:34:38 +04:00
|
|
|
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# dependencies between optional packages
|
|
|
|
OptionalPackageDependencies Development : DevelopmentBase ;
|
|
|
|
OptionalPackageDependencies DevelopmentBase : DevelopmentMin ;
|
|
|
|
OptionalPackageDependencies DevelopmentPowerPC : DevelopmentMin ;
|
|
|
|
OptionalPackageDependencies NetFS : UserlandFS ;
|
2010-03-14 10:19:45 +03:00
|
|
|
|
|
|
|
|
2013-06-16 05:54:50 +04:00
|
|
|
# BeBook
|
2008-10-28 05:44:39 +03:00
|
|
|
if [ IsOptionalHaikuImagePackageAdded BeBook ] {
|
2013-09-30 00:09:00 +04:00
|
|
|
AddHaikuImagePackages be_book ;
|
2008-10-28 05:44:39 +03:00
|
|
|
AddSymlinkToHaikuImage home Desktop
|
2013-04-29 01:50:46 +04:00
|
|
|
: /boot/system/documentation/BeBook/index.html
|
2011-06-16 11:00:06 +04:00
|
|
|
: BeBook ;
|
2008-10-28 05:44:39 +03:00
|
|
|
}
|
|
|
|
|
2008-11-12 00:47:12 +03:00
|
|
|
|
2009-04-05 12:57:29 +04:00
|
|
|
# BeOSCompatibility
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded BeOSCompatibility ] {
|
2009-04-21 00:49:09 +04:00
|
|
|
if $(TARGET_ARCH) != x86 {
|
2013-07-05 12:51:42 +04:00
|
|
|
Echo "No optional package BeOSCompatibility available for"
|
|
|
|
"$(TARGET_ARCH)" ;
|
2013-08-01 10:51:16 +04:00
|
|
|
} else if $(TARGET_GCC_VERSION_$(TARGET_PACKAGING_ARCH)[1]) >= 4 {
|
2009-04-21 00:49:09 +04:00
|
|
|
Echo "No optional package BeOSCompatibility available for gcc4" ;
|
|
|
|
} else {
|
2013-07-05 12:51:42 +04:00
|
|
|
Echo "Warning: Adding BeOS compatibility symlinks. This will go away."
|
|
|
|
"Please fix your apps!" ;
|
2009-04-21 00:49:09 +04:00
|
|
|
AddSymlinkToHaikuImage beos : ../system/apps ;
|
|
|
|
AddSymlinkToHaikuImage beos : ../system/bin ;
|
2011-06-16 11:00:06 +04:00
|
|
|
AddSymlinkToHaikuImage beos
|
|
|
|
: ../system/documentation ;
|
2013-09-30 00:09:00 +04:00
|
|
|
AddSymlinkToHaikuImage beos : ../system/settings/etc ;
|
2009-04-21 00:49:09 +04:00
|
|
|
AddSymlinkToHaikuImage beos : ../system/preferences ;
|
|
|
|
AddSymlinkToHaikuImage beos : ../system ;
|
2010-02-05 17:18:20 +03:00
|
|
|
AddDirectoryToHaikuImage var ;
|
2013-09-30 00:09:00 +04:00
|
|
|
AddSymlinkToHaikuImage var : /boot/system/var/log ;
|
|
|
|
AddSymlinkToHaikuImage var : /boot/system/cache/tmp ;
|
2009-04-21 00:49:09 +04:00
|
|
|
}
|
2009-04-05 12:57:29 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-05-29 14:22:59 +04:00
|
|
|
# Bluetooth stack
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded Bluetooth ] {
|
2013-07-05 12:51:42 +04:00
|
|
|
# TODO: Make this an actual package!
|
|
|
|
# local bluetoothDrivers = h2generic ;
|
|
|
|
# AddDriversToHaikuImage bluetooth : $(bluetoothDrivers) ;
|
|
|
|
# AddFilesToHaikuImage system servers : bluetooth_server ;
|
|
|
|
# AddFilesToHaikuImage system lib : libbluetooth.so ;
|
|
|
|
# AddFilesToHaikuImage
|
|
|
|
# system add-ons kernel network protocols : l2cap ;
|
|
|
|
# AddFilesToHaikuImage system add-ons kernel bluetooth
|
|
|
|
# : btCoreData hci ;
|
|
|
|
# AddFilesToHaikuImage system preferences : Bluetooth ;
|
|
|
|
# AddFilesToHaikuImage system bin : bt_dev_info bt_discovery ;
|
|
|
|
# AddSymlinkToHaikuImage home config settings deskbar menu Preferences
|
|
|
|
# : /boot/system/preferences/Bluetooth ;
|
|
|
|
# if [ IsOptionalHaikuImagePackageAdded DevelopmentMin ]
|
2013-08-01 10:51:16 +04:00
|
|
|
# && $(TARGET_GCC_VERSION_$(TARGET_PACKAGING_ARCH)[1]) in 2 4 {
|
2013-07-05 12:51:42 +04:00
|
|
|
# local arch = $(TARGET_ARCH) ;
|
2013-08-01 10:51:16 +04:00
|
|
|
# local abi = gcc$(TARGET_GCC_VERSION_$(TARGET_PACKAGING_ARCH)[1]) ;
|
2013-07-05 12:51:42 +04:00
|
|
|
# AddSymlinkToHaikuImage system develop lib
|
|
|
|
# : /system/lib libbluetooth.so ;
|
|
|
|
# }
|
2012-02-20 22:48:44 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-03-29 18:18:35 +03:00
|
|
|
# Development
|
2012-08-17 16:03:31 +04:00
|
|
|
if [ IsOptionalHaikuImagePackageAdded Development ] {
|
2013-07-05 12:51:42 +04:00
|
|
|
# auto tools and perl
|
2017-11-25 14:01:30 +03:00
|
|
|
AddHaikuImagePackages autoconf automake perl texinfo ;
|
2018-07-01 21:25:10 +03:00
|
|
|
AddHaikuImageSourcePackages autoconf automake texinfo ;
|
2013-07-05 12:51:42 +04:00
|
|
|
|
2013-08-17 11:21:06 +04:00
|
|
|
# some other build tools
|
2015-02-12 06:39:57 +03:00
|
|
|
AddHaikuImagePackages pkgconfig scons ;
|
2018-07-01 21:25:10 +03:00
|
|
|
AddHaikuImageSourcePackages pkgconfig ;
|
2013-08-17 11:21:06 +04:00
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# devel packages for mandatory packages
|
2013-08-12 19:23:20 +04:00
|
|
|
local architectureObject ;
|
|
|
|
for architectureObject in [ MultiArchSubDirSetup ] {
|
|
|
|
on $(architectureObject) {
|
2016-03-11 08:38:32 +03:00
|
|
|
AddHaikuImagePackages curl_devel ffmpeg_devel fontconfig_devel
|
|
|
|
freetype_devel glu_devel jpeg_devel libpng16_devel zlib_devel ;
|
2013-08-12 19:23:20 +04:00
|
|
|
}
|
|
|
|
}
|
2009-04-19 01:26:26 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# DevelopmentBase
|
2012-08-16 23:32:29 +04:00
|
|
|
if [ IsOptionalHaikuImagePackageAdded DevelopmentBase ] {
|
2013-08-12 19:23:20 +04:00
|
|
|
# gcc and binutils (for all target architectures)
|
|
|
|
local architectureObject ;
|
|
|
|
for architectureObject in [ MultiArchSubDirSetup ] {
|
|
|
|
on $(architectureObject) {
|
|
|
|
AddHaikuImagePackages binutils gcc ;
|
2018-07-01 21:25:10 +03:00
|
|
|
AddHaikuImageSourcePackages binutils gcc ;
|
2013-08-12 19:23:20 +04:00
|
|
|
}
|
|
|
|
}
|
2009-04-19 01:26:26 +04:00
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# other commonly used tools
|
2015-02-16 21:58:26 +03:00
|
|
|
AddHaikuImagePackages bison cdrtools flex jam m4 make mkdepend nasm patch ;
|
2018-07-01 21:25:10 +03:00
|
|
|
AddHaikuImageSourcePackages bison cdrtools m4 make patch ;
|
2009-04-19 01:26:26 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# DevelopmentMin
|
2012-08-16 23:32:29 +04:00
|
|
|
if [ IsOptionalHaikuImagePackageAdded DevelopmentMin ]
|
|
|
|
&& ( $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 ) {
|
2013-08-06 05:33:36 +04:00
|
|
|
AddPackageFilesToHaikuImage system
|
|
|
|
:
|
|
|
|
haiku_devel.hpkg
|
|
|
|
haiku_$(TARGET_PACKAGING_ARCHS[2-])_devel.hpkg
|
2013-10-09 05:47:28 +04:00
|
|
|
:
|
|
|
|
nameFromMetaInfo
|
2013-08-06 05:33:36 +04:00
|
|
|
;
|
2017-12-03 17:16:52 +03:00
|
|
|
|
|
|
|
if $(HAIKU_IS_BOOTSTRAP) != 1 {
|
|
|
|
AddPackageFilesToHaikuImage system
|
|
|
|
:
|
|
|
|
makefile_engine.hpkg
|
|
|
|
:
|
|
|
|
nameFromMetaInfo
|
|
|
|
;
|
|
|
|
}
|
2008-03-29 18:18:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-10-14 06:06:33 +03:00
|
|
|
# FFmpeg
|
2013-06-13 23:31:44 +04:00
|
|
|
if [ IsOptionalHaikuImagePackageAdded FFMpeg ] {
|
2017-06-26 19:11:06 +03:00
|
|
|
local packages = ffmpeg speex libtheora libvorbis libogg libvpx3 ;
|
2013-07-05 12:51:42 +04:00
|
|
|
AddHaikuImagePackages $(packages) ;
|
2018-07-01 21:25:10 +03:00
|
|
|
AddHaikuImageSourcePackages ffmpeg ;
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded FFMpeg-devel ] {
|
|
|
|
AddHaikuImagePackages $(packages)_devel ;
|
|
|
|
}
|
2013-06-14 00:06:29 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# Git
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded Git ] {
|
2018-07-01 21:25:10 +03:00
|
|
|
AddHaikuImagePackages git git_daemon ;
|
|
|
|
AddHaikuImageSourcePackages git ;
|
2010-04-14 01:47:04 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# WebPositive
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded WebPositive ] {
|
2013-08-10 17:06:55 +04:00
|
|
|
local architectureObject ;
|
|
|
|
for architectureObject in [ MultiArchSubDirSetup ] {
|
|
|
|
on $(architectureObject) {
|
|
|
|
if [ FIsBuildFeatureEnabled webpositive ] {
|
2013-10-09 05:47:28 +04:00
|
|
|
AddPackageFilesToHaikuImage system : webpositive.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
2013-08-10 17:06:55 +04:00
|
|
|
break ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-06-13 20:46:34 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# Welcome
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded Welcome ] {
|
2015-10-25 12:13:04 +03:00
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_ca.hpkg
|
2013-10-09 05:47:28 +04:00
|
|
|
: nameFromMetaInfo ;
|
2015-10-25 12:13:04 +03:00
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_de.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_en.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_es.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_fi.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_fr.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_hu.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_it.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_jp.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_pl.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_pt_BR.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_pt_PT.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_ru.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_sk.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_sv_SE.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_uk.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide_zh_CN.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
|
2013-10-09 05:47:28 +04:00
|
|
|
AddPackageFilesToHaikuImage system : haiku_welcome.hpkg : nameFromMetaInfo ;
|
2013-06-13 20:46:34 +04:00
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
AddSymlinkToHaikuImage home Desktop : /boot/system/bin/welcome
|
|
|
|
: Welcome ;
|
|
|
|
AddSymlinkToHaikuImage home Desktop : /boot/system/bin/userguide
|
|
|
|
: User\ Guide ;
|
2008-10-04 22:28:15 +04:00
|
|
|
}
|
2008-03-29 18:18:35 +03:00
|
|
|
|
2009-12-31 23:39:27 +03:00
|
|
|
|
2010-02-27 21:42:54 +03:00
|
|
|
# WifiFirmwareScriptData
|
|
|
|
# This optional package is for people who build their own images & have wifi
|
|
|
|
# hardware that requires install-wifi-firmwares.sh & have no active network
|
|
|
|
# connection. This is not to be added to default images.
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded WifiFirmwareScriptData ] {
|
2013-07-05 12:51:42 +04:00
|
|
|
# TODO: Make this an actual package!
|
|
|
|
# if $(TARGET_ARCH) != x86 {
|
|
|
|
# Echo "No optional package WifiFirmwareScriptData available for"
|
|
|
|
# $(TARGET_ARCH) ;
|
|
|
|
# } else {
|
|
|
|
# # broadcom43xx
|
|
|
|
# # firmware cutter
|
|
|
|
# local broadcomFWCutterArchive = b43-fwcutter-012.tar.bz2 ;
|
|
|
|
# local broadcomFWCutterURL =
|
|
|
|
# http://www.haiku-files.org/files/wifi-firmwares/b43/fwcutter/$(broadcomFWCutterArchive) ;
|
|
|
|
# local broadcomFWCutterFile = [ DownloadFile $(broadcomFWCutterArchive)
|
|
|
|
# : $(broadcomFWCutterURL) ] ;
|
|
|
|
# AddFilesToHaikuImage
|
|
|
|
# system data firmware broadcom43xx b43-fwcutter
|
|
|
|
# : $(broadcomFWCutterFile) ;
|
2013-11-11 02:14:16 +04:00
|
|
|
#
|
2013-07-05 12:51:42 +04:00
|
|
|
# # headers needed to compile firmware cutter
|
|
|
|
# local glibcDir = [ FDirName
|
|
|
|
# $(HAIKU_TOP) src system libroot posix glibc ] ;
|
|
|
|
# local byteswapHeader = [ FDirName $(glibcDir) string byteswap.h ] ;
|
|
|
|
# AddFilesToHaikuImage
|
|
|
|
# system data firmware broadcom43xx b43-fwcutter
|
|
|
|
# : $(byteswapHeader) ;
|
|
|
|
# local bitByteswapHeader = [ FDirName
|
|
|
|
# $(glibcDir) include arch x86 bits byteswap.h ] ;
|
|
|
|
# AddFilesToHaikuImage
|
|
|
|
# system data firmware broadcom43xx b43-fwcutter bits
|
|
|
|
# : $(bitByteswapHeader) ;
|
2013-11-11 02:14:16 +04:00
|
|
|
#
|
2013-07-05 12:51:42 +04:00
|
|
|
# # file containing firmware
|
|
|
|
# local broadcom43xxFile ;
|
|
|
|
# broadcom43xxFile = [ DownloadFile wl_apsta-3.130.20.0.o
|
|
|
|
# : http://www.haiku-files.org/files/wifi-firmwares/b43/wl_apsta-3.130.20.0.o ] ;
|
|
|
|
# AddFilesToHaikuImage system data firmware broadcom43xx
|
|
|
|
# : $(broadcom43xxFile) ;
|
2013-11-11 02:14:16 +04:00
|
|
|
#
|
2013-07-05 12:51:42 +04:00
|
|
|
# # marvell88w8335
|
|
|
|
# local marvellArchive = malo-firmware-1.4.tgz ;
|
|
|
|
# local marvellURL = http://www.haiku-files.org/files/wifi-firmwares/marvell/$(marvellArchive) ;
|
|
|
|
# local marvellFile = [ DownloadFile $(marvellArchive) : $(marvellURL) ] ;
|
|
|
|
# AddFilesToHaikuImage system data firmware marvell88w8335
|
|
|
|
# : $(marvellFile) ;
|
|
|
|
# }
|
2013-05-06 06:37:18 +04:00
|
|
|
}
|