0854b2fa96
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31111 a95241bf-73f2-0310-859d-f6bbb57e9c96
903 lines
27 KiB
Plaintext
903 lines
27 KiB
Plaintext
# 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
|
|
# be used
|
|
|
|
# Detect a hybrid GCC2/GCC4 image and disable the checks for unavailable GCC4
|
|
# packages. (It does not matter if a package was built with either compiler,
|
|
# the system should have the respective other system libs.)
|
|
local isHybridBuild = 0 ;
|
|
if $(HAIKU_ADD_ALTERNATIVE_GCC_LIBS) && $(HAIKU_ALTERNATIVE_GCC_OUTPUT_DIR) {
|
|
isHybridBuild = 1 ;
|
|
}
|
|
|
|
|
|
# Available Optional Packages:
|
|
# APR
|
|
# APR-util
|
|
# Beam
|
|
# BeBook
|
|
# BeHappy
|
|
# BeOSCompatibility
|
|
# BePDF
|
|
# Bluetooth
|
|
# CDRecord
|
|
# CLucene
|
|
# CVS
|
|
# Development - more complete dev environment (including autotools)
|
|
# DevelopmentBase - basic development environment (gcc, headers, libs,...)
|
|
# DevelopmentMin - development headers, libs, tools, from sources only
|
|
# Firefox
|
|
# KeymapSwitcher
|
|
# LibIconv
|
|
# LibLayout
|
|
# LibXML2
|
|
# Links
|
|
# Nano
|
|
# Neon
|
|
# NetSurf
|
|
# OpenSound
|
|
# OpenSSH
|
|
# OpenSSL
|
|
# P7zip
|
|
# Pe
|
|
# Perl
|
|
# Python
|
|
# Rsync
|
|
# SQLite
|
|
# Subversion
|
|
# Tar
|
|
# UserlandFS
|
|
# Vim
|
|
# Vision
|
|
# VLC
|
|
# Welcome
|
|
# WonderBrush
|
|
# Yasm
|
|
|
|
|
|
# APR
|
|
if [ IsOptionalHaikuImagePackageAdded APR ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package APR available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages/dev-libs/apr ;
|
|
InstallOptionalHaikuImagePackage apr-1.3.3-gcc2-haiku-2009-05-27
|
|
: $(baseURL)/apr-1.3.3-gcc2-haiku-2009-05-27.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# APR-util
|
|
if [ IsOptionalHaikuImagePackageAdded APR-util ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package APR-util available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages/dev-libs/apr-util ;
|
|
InstallOptionalHaikuImagePackage apr-util-1.3.4-gcc2-haiku-2009-05-27
|
|
: $(baseURL)/apr-util-1.3.4-gcc2-haiku-2009-05-27.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# Beam
|
|
if [ IsOptionalHaikuImagePackageAdded Beam ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Beam available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
Echo "No optional package Beam available for gcc4" ;
|
|
} else {
|
|
InstallOptionalHaikuImagePackage Beam
|
|
# : http://dl.hirschkaefer.de/beam/beam-1-1-2-bone-with-libs.zip
|
|
: http://dl.hirschkaefer.de/beam/beam-1-1-2-r5-with-libs.zip
|
|
: apps
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
# : /boot/apps/beam-1-1-2-bone-with-libs/Beam ;
|
|
: /boot/apps/beam-1-1-2-r5-with-libs/Beam ;
|
|
}
|
|
}
|
|
|
|
|
|
# BeBook
|
|
if [ IsOptionalHaikuImagePackageAdded BeBook ] {
|
|
InstallOptionalHaikuImagePackage bebook_20081026
|
|
: http://haiku-files.org/files/optional-packages/bebook_20081026.zip
|
|
: system documentation
|
|
;
|
|
AddSymlinkToHaikuImage home Desktop
|
|
: /boot/system/documentation/bebook/index.html : BeBook ;
|
|
}
|
|
|
|
|
|
# BeHappy
|
|
if [ IsOptionalHaikuImagePackageAdded BeHappy ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package BeHappy available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
Echo "No optional package BeHappy available for gcc4" ;
|
|
} else {
|
|
InstallOptionalHaikuImagePackage BeHappy
|
|
: http://revolf.free.fr/beos/behappy-bone.zip
|
|
:
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/apps/BeHappy/BeHappy ;
|
|
}
|
|
}
|
|
|
|
|
|
# BeOSCompatibility
|
|
if [ IsOptionalHaikuImagePackageAdded BeOSCompatibility ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package BeOSCompatibility available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
Echo "No optional package BeOSCompatibility available for gcc4" ;
|
|
} else {
|
|
Echo "Warning: Adding BeOS compatibility symlinks. This will go away. Please fix your apps!" ;
|
|
AddSymlinkToHaikuImage beos : ../system/apps ;
|
|
AddSymlinkToHaikuImage beos : ../system/bin ;
|
|
AddSymlinkToHaikuImage beos : ../system/documentation ;
|
|
AddSymlinkToHaikuImage beos : ../system/etc ;
|
|
AddSymlinkToHaikuImage beos : ../system/preferences ;
|
|
AddSymlinkToHaikuImage beos : ../system ;
|
|
}
|
|
}
|
|
|
|
|
|
# BePDF
|
|
if [ IsOptionalHaikuImagePackageAdded BePDF ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package BePDF available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
Echo "No optional package BePDF available for gcc4" ;
|
|
} else {
|
|
InstallOptionalHaikuImagePackage BePDF-1.1.1b1.x86
|
|
: http://haiku-files.org/files/optional-packages/BePDF-1.1.1b1.x86.zip
|
|
: apps
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/apps/BePDF/BePDF ;
|
|
}
|
|
}
|
|
|
|
|
|
# Bluetooth stack
|
|
if [ IsOptionalHaikuImagePackageAdded Bluetooth ] {
|
|
local bluetoothDrivers = h2generic ;
|
|
AddDriversToHaikuImage bluetooth : $(bluetoothDrivers) ;
|
|
AddFilesToHaikuImage system servers : bluetooth_server ;
|
|
AddFilesToHaikuImage system lib : libbluetooth.so ;
|
|
AddFilesToHaikuImage system add-ons kernel network devices : bluetooth ;
|
|
AddFilesToHaikuImage system add-ons kernel network protocols : l2cap ;
|
|
AddFilesToHaikuImage system add-ons kernel bluetooth : btCoreData ;
|
|
AddFilesToHaikuImage system preferences : Bluetooth ;
|
|
AddFilesToHaikuImage system bin : bt_dev_info bt_discovery ;
|
|
AddSymlinkToHaikuImage home config be Preferences
|
|
: /boot/system/preferences/Bluetooth ;
|
|
if [ IsOptionalHaikuImagePackageAdded DevelopmentMin ]
|
|
&& $(HAIKU_GCC_VERSION[1]) in 2 4 {
|
|
local arch = $(TARGET_ARCH) ;
|
|
local abi = gcc$(HAIKU_GCC_VERSION[1]) ;
|
|
AddSymlinkToHaikuHybridImage develop abi $(arch) $(abi) lib
|
|
: /system/lib libbluetooth.so : : true ;
|
|
}
|
|
}
|
|
|
|
|
|
# CDRecord
|
|
if [ IsOptionalHaikuImagePackageAdded CDRecord ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package CDRecord available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages ;
|
|
InstallOptionalHaikuImagePackage cdrecord-2.01.01a59-gcc2-haiku-2009-05-26
|
|
: $(baseURL)/app-cdr/cdrtools/cdrecord-2.01.01a59-gcc2-haiku-2009-05-26.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# CLucene
|
|
if [ IsOptionalHaikuImagePackageAdded CLucene ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package CLucene available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) < 4 && $(isHybridBuild) = 0 {
|
|
Echo "No optional package CLucene available for GCC2" ;
|
|
} else {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage clucene-0.9.21svn-x86-gcc4-haiku-2009-06-11
|
|
: $(baseURL)/clucene-0.9.21svn-x86-gcc4-haiku-2009-06-11.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# CVS
|
|
if [ IsOptionalHaikuImagePackageAdded CVS ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package CVS available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage cvs-1.12.13-gcc2-2008-12-04
|
|
: $(baseURL)/cvs-1.12.13-gcc2-2008-12-04.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# Development
|
|
if [ IsOptionalHaikuImagePackageAdded Development ] && $(TARGET_ARCH) = x86 {
|
|
# autotools
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage autoconf-2.63-gcc2-2008-11-05
|
|
: $(baseURL)/autoconf-2.63-gcc2-2008-11-05.zip ;
|
|
InstallOptionalHaikuImagePackage automake-1.10.1-gcc2-2008-11-06
|
|
: $(baseURL)/automake-1.10.1-gcc2-2008-11-06.zip ;
|
|
InstallOptionalHaikuImagePackage libtool-2.2.6a-gcc2-2008-11-09
|
|
: $(baseURL)/libtool-2.2.6a-gcc2-2008-11-09.zip ;
|
|
InstallOptionalHaikuImagePackage texinfo-4.13a-gcc2-2008-11-09
|
|
: $(baseURL)/texinfo-4.13a-gcc2-2008-11-09.zip ;
|
|
}
|
|
|
|
|
|
# DevelopmentBase
|
|
if [ IsOptionalHaikuImagePackageAdded DevelopmentBase ]
|
|
&& $(TARGET_ARCH) = x86 {
|
|
# gcc and binutils
|
|
if $(HAIKU_GCC_VERSION[1]) = 2 || $(isHybridBuild) {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage gcc-2.95.3-haiku-081024-1
|
|
: $(baseURL)/gcc-2.95.3-haiku-081024-1.zip ;
|
|
}
|
|
|
|
if $(HAIKU_GCC_VERSION[1]) = 4 || $(isHybridBuild) {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage gcc-4.3.3-haiku-090313-1
|
|
: $(baseURL)/gcc-4.3.3-haiku-090313-1.zip ;
|
|
|
|
# symlink cpp to g++'s headers
|
|
AddSymlinkToHaikuImage develop abi x86 gcc4 headers
|
|
: ../tools/current/include/g++ : cpp ;
|
|
}
|
|
|
|
if $(HAIKU_GCC_VERSION[1]) = 4 {
|
|
# symlink to libstdc++.so
|
|
# TODO: This needs to be solved differently! I.e. the build system
|
|
# (configure) should already produce libstdc++.so.
|
|
AddSymlinkToHaikuImage system lib
|
|
: /boot/develop/abi/x86/gcc4/tools/current/lib/libstdc++.so ;
|
|
AddSymlinkToAlternativeGCCArchive system lib gcc4
|
|
: /boot/develop/abi/x86/gcc4/tools/current/lib/libstdc++.so ;
|
|
}
|
|
|
|
# other commonly used tools
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage bison-2.4-gcc2-2008-11-09
|
|
: $(baseURL)/bison-2.4-gcc2-2008-11-09.zip ;
|
|
InstallOptionalHaikuImagePackage m4-1.4.12-gcc2-2008-11-04
|
|
: $(baseURL)/m4-1.4.12-gcc2-2008-11-04.zip ;
|
|
local baseURL = http://www.haiku-ports.de/packages ;
|
|
InstallOptionalHaikuImagePackage flex-2.5.35-gcc2-haiku-2009-05-26
|
|
: $(baseURL)/sys-devel/flex/flex-2.5.35-gcc2-haiku-2009-05-26.zip ;
|
|
InstallOptionalHaikuImagePackage jam-gcc2-haiku-2009-05-26
|
|
: $(baseURL)/dev-util/jam/jam-gcc2-haiku-2009-05-26.zip ;
|
|
|
|
}
|
|
|
|
|
|
# DevelopmentMin
|
|
if [ IsOptionalHaikuImagePackageAdded DevelopmentMin ] && $(TARGET_ARCH) = x86 {
|
|
if ! ( $(HAIKU_GCC_VERSION[1]) in 2 4 ) {
|
|
Exit "Optional package DevelopmentMin: Unsupported GCC version:"
|
|
$(HAIKU_GCC_VERSION[1]) ;
|
|
}
|
|
|
|
local arch = $(TARGET_ARCH) ;
|
|
local abi = gcc$(HAIKU_GCC_VERSION[1]) ;
|
|
local abiDirTokens = develop abi $(arch) $(abi) ;
|
|
|
|
# glue code
|
|
AddFilesToHaikuHybridImage $(abiDirTokens) lib :
|
|
<src!system!glue!arch!$(arch)>crti.o
|
|
<src!system!glue!arch!$(arch)>crtn.o
|
|
<src!system!glue>init_term_dyn.o
|
|
<src!system!glue>start_dyn.o
|
|
<src!system!glue>haiku_version_glue.o
|
|
;
|
|
|
|
# kernel
|
|
AddFilesToHaikuHybridImage $(abiDirTokens) lib : kernel.so : _KERNEL_ ;
|
|
|
|
# library symlinks
|
|
local lib ;
|
|
for lib in $(SYSTEM_LIBS) $(SYSTEM_LIBS_ALIASES) {
|
|
AddSymlinkToHaikuHybridImage $(abiDirTokens) lib
|
|
: /system/lib $(lib:BS) : : true ;
|
|
}
|
|
|
|
# static libraries
|
|
AddFilesToHaikuHybridImage $(abiDirTokens) lib : libncurses.a ;
|
|
|
|
# the POSIX error code mapper library
|
|
AddFilesToHaikuHybridImage $(abiDirTokens) lib : libposix_error_mapper.a ;
|
|
|
|
# symlinks for ABI abstraction
|
|
AddSymlinkToHaikuImage develop abi : $(arch)/$(abi) : current ;
|
|
AddSymlinkToHaikuImage develop lib : /boot/develop/abi/current/lib
|
|
: $(arch) ;
|
|
AddSymlinkToHaikuImage develop tools
|
|
: /boot/develop/abi/current/tools/current : gnupro ;
|
|
AddSymlinkToHaikuImage develop headers
|
|
: /boot/develop/abi/current/headers/cpp ;
|
|
AddSymlinkToHaikuHybridImage $(abiDirTokens) library-paths
|
|
: /boot/common/lib : common : true ;
|
|
AddSymlinkToHaikuHybridImage $(abiDirTokens) library-paths
|
|
: /boot/home/config/lib : home : true ;
|
|
|
|
# ABI independent stuff
|
|
|
|
# scripts: cc and c++ wrapper, freetype-config, setgcc
|
|
local scripts = cc c++ freetype-config setgcc ;
|
|
SEARCH on $(scripts) = [ FDirName $(HAIKU_TOP) data bin ] ;
|
|
AddFilesToHaikuImage system bin : $(scripts) ;
|
|
|
|
# make and mkdepend build tool, which are part of the Haiku source tree
|
|
# TODO: Both should be removed from the tree, made download packages
|
|
# and moved to the DevelopmentBase package.
|
|
AddFilesToHaikuImage system bin : make mkdepend ;
|
|
|
|
# skeleton makefile and makefile-engine
|
|
local makefileEngineFiles =
|
|
<makefile-engine>makefile
|
|
<makefile-engine>makefile-engine
|
|
;
|
|
SEARCH on $(makefileEngineFiles)
|
|
= [ FDirName $(HAIKU_TOP) data develop ] ;
|
|
AddFilesToHaikuImage develop etc : $(makefileEngineFiles) ;
|
|
|
|
# headers
|
|
AddHeaderDirectoryToHaikuImage gnu : 3rdparty ;
|
|
AddHeaderDirectoryToHaikuImage os ;
|
|
AddHeaderDirectoryToHaikuImage posix ;
|
|
|
|
# add _G_config.h to posix/
|
|
SEARCH on <header>_G_config.h = [ FDirName $(HAIKU_TOP) headers glibc ] ;
|
|
AddFilesToHaikuImage develop headers posix : <header>_G_config.h ;
|
|
|
|
# create be -> os symlink for now
|
|
AddSymlinkToHaikuImage develop headers : os : be ;
|
|
|
|
# BSD compatibility headers
|
|
AddHeaderDirectoryToHaikuImage compatibility bsd : bsd ;
|
|
|
|
# third party libs headers
|
|
AddHeaderDirectoryToHaikuImage libs freetype2 : 3rdparty ;
|
|
AddHeaderDirectoryToHaikuImage libs iconv : 3rdparty ;
|
|
AddHeaderDirectoryToHaikuImage libs ncurses : 3rdparty ;
|
|
AddHeaderDirectoryToHaikuImage libs png : 3rdparty ;
|
|
AddHeaderDirectoryToHaikuImage libs zlib : 3rdparty ;
|
|
|
|
# cpp headers
|
|
if $(HAIKU_GCC_VERSION[1]) = 2 {
|
|
# GCC 2 only -- for GCC 4 they come with the DevelopmentBase package
|
|
CopyDirectoryToHaikuImage $(abiDirTokens) headers
|
|
: [ FDirName $(HAIKU_TOP) headers cpp ] : : -x .svn ;
|
|
CopyDirectoryToAlternativeGCCArchive $(abiDirTokens) headers
|
|
: [ FDirName $(HAIKU_TOP) headers cpp ] : : -x .svn ;
|
|
}
|
|
}
|
|
|
|
|
|
# Firefox web browser
|
|
if [ IsOptionalHaikuImagePackageAdded Firefox ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Firefox available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage BeZillaBrowser-2.0.0.21pre-haiku-gcc4-x86-09-03-01
|
|
: $(baseURL)/BeZillaBrowser-2.0.0.21pre-haiku-gcc4-x86-09-03-01.zip
|
|
: apps
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/apps/BeZillaBrowser/BeZillaBrowser ;
|
|
|
|
|
|
} else {
|
|
InstallOptionalHaikuImagePackage BeZillaBrowser-gcc2-20090218
|
|
: http://bezilla.beuser.de/builds/BeZillaBrowser-gcc2-20090218.zip
|
|
: apps
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/apps/BeZillaBrowser/BeZillaBrowser ;
|
|
}
|
|
}
|
|
|
|
|
|
# KeymapSwitcher
|
|
if [ IsOptionalHaikuImagePackageAdded KeymapSwitcher ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package KeymapSwitcher available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
local baseURL = http://downloads.sourceforge.net/dotmatrix4beos ;
|
|
InstallOptionalHaikuImagePackage KeymapSwitcher-gcc4-20090531
|
|
: $(baseURL)/KeymapSwitcher-1.2.3-gcc4-2009-05-31.zip
|
|
:
|
|
;
|
|
AddSymlinkToHaikuImage home config be Desktop\ Applets
|
|
: /boot/common/bin/KeymapSwitcher ;
|
|
} else {
|
|
local baseURL = http://downloads.sourceforge.net/dotmatrix4beos ;
|
|
InstallOptionalHaikuImagePackage KeymapSwitcher-gcc2-20090531
|
|
: $(baseURL)/KeymapSwitcher-1.2.3-gcc2-2009-05-31.zip
|
|
:
|
|
;
|
|
AddSymlinkToHaikuImage home config be Desktop\ Applets
|
|
: /boot/common/bin/KeymapSwitcher ;
|
|
}
|
|
}
|
|
|
|
|
|
# LibIconv
|
|
if [ IsOptionalHaikuImagePackageAdded LibIconv ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package LibIconv available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages/dev-libs/libiconv ;
|
|
InstallOptionalHaikuImagePackage libiconv-1.13-gcc2-haiku-2009-05-27
|
|
: $(baseURL)/libiconv-1.13-gcc2-haiku-2009-05-27.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# LibLayout library
|
|
if [ IsOptionalHaikuImagePackageAdded LibLayout ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package LibLayout available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 {
|
|
Echo "No optional package LibLayout available for gcc4" ;
|
|
} else {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage liblayout-1.4.0-gcc2-2009-03-08
|
|
: $(baseURL)/liblayout-1.4.0-gcc2-2009-03-08.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# LibXML2
|
|
if [ IsOptionalHaikuImagePackageAdded LibXML2 ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package LibXML2 available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages/dev-libs/libxml2 ;
|
|
InstallOptionalHaikuImagePackage libxml2-2.7.3-gcc2-haiku-2009-05-27
|
|
: $(baseURL)/libxml2-2.7.3-gcc2-haiku-2009-05-27.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# Links web browser
|
|
if [ IsOptionalHaikuImagePackageAdded Links ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Links available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
Echo "No optional package Links available for gcc4" ;
|
|
} else {
|
|
InstallOptionalHaikuImagePackage Links
|
|
: http://revolf.free.fr/beos/links-beos-bin.zip
|
|
:
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/home/config/bin/links ;
|
|
}
|
|
}
|
|
|
|
|
|
# Nano
|
|
if [ IsOptionalHaikuImagePackageAdded Nano ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Nano available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages ;
|
|
InstallOptionalHaikuImagePackage nano-2.0.9-gcc2-haiku-2009-05-27
|
|
: $(baseURL)/app-editors/nano/nano-2.0.9-gcc2-haiku-2009-05-27.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# Neon
|
|
if [ IsOptionalHaikuImagePackageAdded Neon ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Neon available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages/net-misc/neon ;
|
|
InstallOptionalHaikuImagePackage neon-0.28.4-gcc2-haiku-2009-05-23
|
|
: $(baseURL)/neon-0.28.4-gcc2-haiku-2009-05-23.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# NetSurf web browser
|
|
if [ IsOptionalHaikuImagePackageAdded NetSurf ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package NetSurf available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
Echo "No optional package NetSurf available for gcc4" ;
|
|
} else {
|
|
InstallOptionalHaikuImagePackage NetSurf
|
|
: http://haiku-files.org/files/optional-packages/NetSurf-r7117-x86-gcc2-2009-04-17.zip
|
|
:
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/apps/netsurf/NetSurf ;
|
|
}
|
|
}
|
|
|
|
|
|
# OpenSound drivers
|
|
if [ IsOptionalHaikuImagePackageAdded OpenSound ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package OpenSound available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
InstallOptionalHaikuImagePackage OpenSound
|
|
: http://www.yellowbites.com/downloads/OpenSound_Haiku20080621.zip
|
|
:
|
|
;
|
|
}
|
|
#UnzipArchiveToHaikuImage home : data/vv.mp3.zip : 0 ;
|
|
}
|
|
|
|
|
|
# OpenSSH
|
|
if [ IsOptionalHaikuImagePackageAdded OpenSSH ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package OpenSSH available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
if ! $(HAIKU_IMAGE_HOST_NAME) && ! $(HAIKU_IGNORE_USER_BUILD_CONFIG) {
|
|
Exit "Optional package OpenSSH requires the HAIKU_IMAGE_HOST_NAME"
|
|
"variable to be set!" ;
|
|
}
|
|
|
|
local baseURL = http://www.haiku-ports.de/packages/net-misc/openssh ;
|
|
InstallOptionalHaikuImagePackage openssh-5.2p1-gcc2-haiku-2009-05-27
|
|
: $(baseURL)/openssh-5.2p1-gcc2-haiku-2009-05-27.zip
|
|
:
|
|
;
|
|
|
|
AddUserToHaikuImage sshd : 1001 : 100 : /var/empty : /bin/true
|
|
: "sshd user" ;
|
|
}
|
|
}
|
|
|
|
|
|
# OpenSSL
|
|
if [ IsOptionalHaikuImagePackageAdded OpenSSL ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package OpenSSL available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
InstallOptionalHaikuImagePackage $(HAIKU_OPENSSL_PACKAGE)
|
|
: $(HAIKU_OPENSSL_URL)
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# P7zip
|
|
if [ IsOptionalHaikuImagePackageAdded P7zip ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package P7zip available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
Echo "No optional package P7zip available for gcc4" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages/app-arch/p7zip ;
|
|
InstallOptionalHaikuImagePackage p7zip-4.65-gcc2-haiku-2009-05-24
|
|
: $(baseURL)/p7zip-4.65-gcc2-haiku-2009-05-24.zip
|
|
:
|
|
;
|
|
|
|
actions BuildHaikuImageExpanderRules
|
|
{
|
|
echo "\"application/x-7z-compressed\"\t.7z\t\"7za l \0045s\"\t\"7za x -y \0045s\"" > $(1)
|
|
}
|
|
|
|
Always expander.rules ;
|
|
MakeLocate expander.rules : $(HAIKU_COMMON_PLATFORM_OBJECT_DIR) ;
|
|
BuildHaikuImageExpanderRules expander.rules ;
|
|
AddFilesToHaikuImage home config etc : expander.rules ;
|
|
}
|
|
}
|
|
|
|
|
|
# Pe text editor
|
|
if [ IsOptionalHaikuImagePackageAdded Pe ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Pe available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
if $(HAIKU_GCC_VERSION[1]) >= 4 {
|
|
InstallOptionalHaikuImagePackage pe-2.4.1-x86-rc3-gcc4-2009-03-27
|
|
: $(baseURL)/pe-2.4.1-x86-rc3-gcc4-2009-03-27.zip
|
|
: apps
|
|
;
|
|
} else {
|
|
InstallOptionalHaikuImagePackage pe-2.4.2-x86-gcc2-2009-04-14
|
|
: $(baseURL)/pe-2.4.2-x86-gcc2-2009-04-14.zip
|
|
: apps
|
|
;
|
|
}
|
|
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/apps/Pe/Pe ;
|
|
AddSymlinkToHaikuImage common bin
|
|
: /boot/apps/Pe/lpe ;
|
|
}
|
|
}
|
|
|
|
|
|
# Perl
|
|
if [ IsOptionalHaikuImagePackageAdded Perl ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Perl available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage perl-5.10.0-gcc2-2008-10-29
|
|
: $(baseURL)/perl-5.10.0-gcc2-2008-10-29.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# Python
|
|
if [ IsOptionalHaikuImagePackageAdded Python ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Python available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages/dev-lang/python ;
|
|
InstallOptionalHaikuImagePackage python-2.6.2-gcc2-haiku-2009-05-27
|
|
: $(baseURL)/python-2.6.2-gcc2-haiku-2009-05-27.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# SQLite
|
|
if [ IsOptionalHaikuImagePackageAdded SQLite ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package SQLite available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages/dev-db/sqlite ;
|
|
InstallOptionalHaikuImagePackage sqlite-3.6.14-gcc2-haiku-2009-05-10
|
|
: $(baseURL)/sqlite-3.6.14-gcc2-haiku-2009-05-10.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# Rsync
|
|
if [ IsOptionalHaikuImagePackageAdded Rsync ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Rsync available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://dl.hirschkaefer.de/haiku ;
|
|
InstallOptionalHaikuImagePackage rsync-3.0.6-gcc2-haiku-2009-05-26
|
|
: $(baseURL)/rsync-3.0.6-gcc2-haiku-2009-05-26.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# Subversion
|
|
if [ IsOptionalHaikuImagePackageAdded Subversion ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Subversion available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://www.haiku-ports.de/packages/dev-util/subversion ;
|
|
InstallOptionalHaikuImagePackage subversion-1.6.2-gcc2-haiku-2009-05-20
|
|
: $(baseURL)/subversion-1.6.2-gcc2-haiku-2009-05-20.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# Tar
|
|
if [ IsOptionalHaikuImagePackageAdded Tar ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Tar available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage tar-1.21-gcc2-2009-02-08
|
|
: $(baseURL)/tar-1.21-gcc2-2009-02-08.zip
|
|
:
|
|
;
|
|
}
|
|
}
|
|
|
|
|
|
# UserlandFS
|
|
if [ IsOptionalHaikuImagePackageAdded UserlandFS ] {
|
|
local arch = $(TARGET_ARCH) ;
|
|
local abi = gcc$(HAIKU_GCC_VERSION[1]) ;
|
|
|
|
# kernel module
|
|
AddFilesToHaikuImage system add-ons kernel file_systems : userlandfs ;
|
|
|
|
# server
|
|
AddFilesToHaikuImage system servers : userlandfs_server ;
|
|
|
|
# libs
|
|
local userlandfsLibs =
|
|
libuserlandfs_beos_kernel.so
|
|
libuserlandfs_haiku_kernel.so
|
|
libuserlandfs_fuse.so
|
|
;
|
|
AddFilesToHaikuHybridImage system lib : $(userlandfsLibs) : : true ;
|
|
|
|
# development goodies
|
|
if [ IsOptionalHaikuImagePackageAdded DevelopmentMin ] {
|
|
if ! ( $(HAIKU_GCC_VERSION[1]) in 2 4 ) {
|
|
Exit "Optional package UserlandFS: Unsupported GCC version:"
|
|
$(HAIKU_GCC_VERSION[1]) ;
|
|
}
|
|
|
|
# library symlinks
|
|
local lib ;
|
|
for lib in $(userlandfsLibs) {
|
|
AddSymlinkToHaikuImage develop abi $(arch) $(abi) lib
|
|
: /system/lib/$(lib:BS) ;
|
|
AddSymlinkToAlternativeGCCArchive develop abi $(arch) $(abi) lib
|
|
: /system/lib/$(arch)/$(lib:BS) ;
|
|
}
|
|
|
|
# FUSE headers
|
|
local fuseHeaders =
|
|
fuse_common_compat.h
|
|
fuse_common.h
|
|
fuse_compat.h
|
|
fuse.h
|
|
fuse_lowlevel_compat.h
|
|
fuse_lowlevel.h
|
|
fuse_opt.h
|
|
;
|
|
fuseHeaders = $(fuseHeaders:G=userlandfs!fuse) ;
|
|
SEARCH on $(fuseHeaders)
|
|
= [ FDirName $(HAIKU_TOP) headers private userlandfs fuse ] ;
|
|
AddFilesToHaikuImage develop headers userlandfs fuse : $(fuseHeaders) ;
|
|
}
|
|
}
|
|
|
|
|
|
# Vim
|
|
if [ IsOptionalHaikuImagePackageAdded Vim ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Vim available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
local baseURL = http://haiku-ports.de/packages/app-editors/vim ;
|
|
InstallOptionalHaikuImagePackage vim-7.2-gcc4-20090531
|
|
: $(baseURL)/vim-7.2-gcc4-haiku-2009-05-31.zip
|
|
:
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/common/bin/gvim ;
|
|
} else {
|
|
local baseURL = http://haiku-ports.de/packages/app-editors/vim ;
|
|
InstallOptionalHaikuImagePackage vim-7.2-gcc2-20090531
|
|
: $(baseURL)/vim-7.2-gcc2-haiku-2009-05-31.zip
|
|
:
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/common/bin/gvim ;
|
|
}
|
|
}
|
|
|
|
|
|
# Vision
|
|
if [ IsOptionalHaikuImagePackageAdded Vision ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Vision available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 {
|
|
InstallOptionalHaikuImagePackage Vision-0.9.7-H-090423-gcc4
|
|
: http://vision.sf.net/Vision-0.9.7-H-090423-gcc4.zip
|
|
: apps
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/apps/Vision-0.9.7-H-090423/Vision ;
|
|
} else {
|
|
InstallOptionalHaikuImagePackage Vision-0.9.7-H-090423
|
|
: http://vision.sf.net/Vision-0.9.7-H-090423.zip
|
|
: apps
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/apps/Vision-0.9.7-H-090423/Vision ;
|
|
}
|
|
}
|
|
|
|
|
|
# VLC media player
|
|
if [ IsOptionalHaikuImagePackageAdded VLC ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package VLC available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
Echo "No optional package VLC available for gcc4" ;
|
|
} else {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage VLC-0.8.6d
|
|
: $(baseURL)/vlc-0.8.6d-gcc2-2009-04-18.zip
|
|
: apps
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: "/boot/apps/vlc-0.8.6d/VLC media player" ;
|
|
AddSymlinkToHaikuImage common bin
|
|
: "/boot/apps/vlc-0.8.6d/VLC media player" : vlc ;
|
|
}
|
|
}
|
|
|
|
|
|
# Welcome
|
|
if [ IsOptionalHaikuImagePackageAdded Welcome ] {
|
|
CopyDirectoryToHaikuImage system documentation
|
|
: [ FDirName $(HAIKU_TOP) docs welcome ]
|
|
: welcome : -x .svn ;
|
|
CopyDirectoryToHaikuImage system documentation
|
|
: [ FDirName $(HAIKU_TOP) docs userguide ]
|
|
: userguide : -x .svn ;
|
|
AddFilesToHaikuImage system documentation
|
|
: [ FDirName $(HAIKU_TOP) docs Haiku-doc.css ]
|
|
: Haiku-doc.css ;
|
|
AddSymlinkToHaikuImage home Desktop
|
|
: /boot/system/documentation/welcome/welcome.html : Welcome ;
|
|
}
|
|
|
|
|
|
# WonderBrush
|
|
if [ IsOptionalHaikuImagePackageAdded WonderBrush ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package WonderBrush available for $(TARGET_ARCH)" ;
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 && $(isHybridBuild) = 0 {
|
|
Echo "No optional package WonderBrush available for gcc4" ;
|
|
} else {
|
|
local baseURL = http://www.yellowbites.com/downloads ;
|
|
InstallOptionalHaikuImagePackage WonderBrush-2.1.2-Haiku
|
|
: $(baseURL)/WonderBrush-2.1.2-gcc2-x86-Haiku.zip
|
|
: apps
|
|
;
|
|
AddSymlinkToHaikuImage home config be Applications
|
|
: /boot/apps/WonderBrush/WonderBrush ;
|
|
}
|
|
}
|
|
|
|
|
|
# Yasm
|
|
if [ IsOptionalHaikuImagePackageAdded Yasm ] {
|
|
if $(TARGET_ARCH) != x86 {
|
|
Echo "No optional package Yasm available for $(TARGET_ARCH)" ;
|
|
} else {
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
InstallOptionalHaikuImagePackage yasm-0.8.0-gcc2-2009-04-19
|
|
: $(baseURL)/yasm-0.8.0-gcc2-haiku-2009-04-19.zip
|
|
:
|
|
;
|
|
}
|
|
}
|