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,...)
|
2011-02-26 18:33:48 +03:00
|
|
|
# DevelopmentJava - JamVM, a Java Virtual machine, GNU Classpath, ECJ
|
2009-12-27 03:13:08 +03:00
|
|
|
# DevelopmentMin - development headers, libs, tools, from sources only
|
2013-03-12 21:44:01 +04:00
|
|
|
# DevelopmentPowerPC - Cross compiling environment for PowerPC
|
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-07-05 12:51:42 +04:00
|
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
|
|
local hpkgBaseURL = http://haiku-files.org/files/hpkg ;
|
|
|
|
local baseSourceURL = http://haiku-files.org/files/sources ;
|
2008-05-29 14:22:59 +04: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
|
|
|
|
AddHaikuImagePackages autoconf automake libtool perl texinfo ;
|
|
|
|
|
2013-08-17 11:21:06 +04:00
|
|
|
# some other build tools
|
2015-02-12 06:39:57 +03:00
|
|
|
AddHaikuImagePackages pkgconfig scons ;
|
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) {
|
2013-09-30 00:09:00 +04:00
|
|
|
AddHaikuImagePackages curl_devel ffmpeg_devel freetype_devel
|
2014-11-13 00:59:26 +03:00
|
|
|
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 ;
|
|
|
|
}
|
|
|
|
}
|
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 ;
|
2009-04-19 01:26:26 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-02-26 18:33:48 +03:00
|
|
|
# DevelopmentJava
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded DevelopmentJava ] {
|
2013-07-05 12:51:42 +04:00
|
|
|
# TODO: Build actual packages!
|
|
|
|
# InstallOptionalHaikuImagePackage
|
|
|
|
# $(baseURL)/gnu-classpath-0.98-r1a3-x86-gcc4-2011-06-08.zip ;
|
|
|
|
# InstallOptionalHaikuImagePackage
|
|
|
|
# $(baseURL)/jamvm-1.5.4-r1a3-x86-gcc4-2011-06-08.zip ;
|
|
|
|
# AddSymlinkToHaikuImage common bin
|
|
|
|
# : /boot/common/bin/jamvm : java ;
|
|
|
|
# InstallOptionalHaikuImagePackage
|
|
|
|
# $(baseURL)/ecj-3.6.2-haiku-2011-06-08.zip ;
|
2011-02-26 18:33:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
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-09-30 00:09:00 +04:00
|
|
|
makefile_engine.hpkg
|
2013-10-09 05:47:28 +04:00
|
|
|
:
|
|
|
|
nameFromMetaInfo
|
2013-08-06 05:33:36 +04:00
|
|
|
;
|
2008-03-29 18:18:35 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-03-18 18:23:26 +04:00
|
|
|
# DevelopmentPowerPC
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded DevelopmentPowerPC ] {
|
2013-07-05 12:51:42 +04:00
|
|
|
# TODO: Build actual packages!
|
|
|
|
# InstallOptionalHaikuImagePackage
|
|
|
|
# $(baseURL)/gcc-ppc-4.6.2-x86-gcc4-2012-03-17.zip ;
|
|
|
|
# InstallOptionalHaikuImagePackage
|
|
|
|
# $(baseURL)/haiku-devlibs-ppc-gcc4-2012-03-18.zip ;
|
2010-09-08 12:01:53 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-06-13 23:31:44 +04:00
|
|
|
# FFMpeg
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded FFMpeg ] {
|
2013-07-05 12:51:42 +04:00
|
|
|
local packages = ffmpeg speex libtheora libvorbis libogg libvpx ;
|
|
|
|
AddHaikuImagePackages $(packages) ;
|
2013-06-13 23:31:44 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# FFMpeg-devel
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded FFMpeg-devel ] {
|
2013-07-05 12:51:42 +04:00
|
|
|
local packages = ffmpeg speex libtheora libvorbis libogg libvpx ;
|
|
|
|
AddHaikuImagePackages $(packages)_devel ;
|
2013-06-14 00:06:29 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# Git
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded Git ] {
|
2014-09-18 16:55:55 +04:00
|
|
|
AddHaikuImagePackages git git_arch git_daemon git_email git_svn ;
|
|
|
|
|
|
|
|
# git_cvs depends on cvsps, which does not build with gcc2. So it is not
|
|
|
|
# available on gcc2-only builds.
|
|
|
|
if $(TARGET_PACKAGING_ARCHS) != x86_gcc2 {
|
|
|
|
AddHaikuImagePackages git_cvs ;
|
2014-09-18 17:01:57 +04:00
|
|
|
}
|
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
|
|
|
InstallOptionalHaikuImagePackage
|
2014-07-21 10:09:04 +04:00
|
|
|
$(baseURL)/WebPositiveBookmarks-2014-07-21.zip
|
2013-08-10 17:06:55 +04:00
|
|
|
: home config settings WebPositive ;
|
|
|
|
break ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-06-13 20:46:34 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# Welcome
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded Welcome ] {
|
2013-10-09 05:47:28 +04:00
|
|
|
AddPackageFilesToHaikuImage system : haiku_userguide.hpkg
|
|
|
|
: nameFromMetaInfo ;
|
|
|
|
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
|
|
|
}
|