1local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ; 2 3 4local haikuPackage = haiku.hpkg ; 5HaikuPackage $(haikuPackage) ; 6 7 8# wifi firmware 9local driver ; 10for driver in $(SYSTEM_ADD_ONS_DRIVERS_NET) { 11 local package = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGE) ] ; 12 local archive = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVE) ] ; 13 local extract = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_DO_EXTRACT) ] ; 14 if $(archive) { 15 AddWifiFirmwareToPackage $(driver) : $(package) : $(archive) 16 : $(extract) ; 17 } 18 local packages = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_PACKAGES) ] ; 19 local archives = [ on $(driver) return $(HAIKU_WIFI_FIRMWARE_ARCHIVES) ] ; 20 local archive ; 21 for archive in $(archives) { 22 AddWifiFirmwareToPackage $(driver) : $(packages[1]) : $(archive) 23 : $(extract) ; 24 packages = $(packages[2-]) ; 25 } 26} 27 28 29# modules 30AddFilesToPackage add-ons kernel bus_managers : $(SYSTEM_ADD_ONS_BUS_MANAGERS) ; 31AddFilesToPackage add-ons kernel busses agp_gart : <agp_gart>intel@x86,x86_64 ; 32 33if $(HAIKU_ATA_STACK) = 1 { 34 AddFilesToPackage add-ons kernel busses ata 35 : generic_ide_pci it8211 legacy_sata silicon_image_3112 ide_isa@x86 ; 36} else { 37 AddFilesToPackage add-ons kernel busses ide 38 : generic_ide_pci it8211 legacy_sata silicon_image_3112 ide_isa@x86 ; 39} 40 41AddFilesToPackage add-ons kernel busses random : virtio_rng ; 42AddFilesToPackage add-ons kernel busses scsi : ahci virtio_scsi ; 43AddFilesToPackage add-ons kernel busses usb : <usb>uhci <usb>ohci <usb>ehci ; 44AddFilesToPackage add-ons kernel busses virtio : virtio_pci ; 45AddFilesToPackage add-ons kernel console : vga_text ; 46AddFilesToPackage add-ons kernel debugger 47 : <kdebug>demangle <kdebug>disasm@x86 <kdebug>hangman 48 <kdebug>invalidate_on_exit <kdebug>usb_keyboard <kdebug>qrencode@libqrencode 49 <kdebug>run_on_exit ; 50AddFilesToPackage add-ons kernel file_systems : $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ; 51AddFilesToPackage add-ons kernel generic 52 : ata_adapter@ata bios@x86,x86_64 dpc ide_adapter@ide 53 locked_pool mpu401 scsi_periph <module>tty ; 54AddFilesToPackage add-ons kernel partitioning_systems 55 : amiga_rdb@m68k apple@ppc efi_gpt intel session ; 56AddFilesToPackage add-ons kernel interrupt_controllers : openpic@ppc ; 57AddFilesToPackage add-ons kernel power cpufreq : intel_pstates@x86,x86_64 ; 58AddFilesToPackage add-ons kernel power cpuidle : intel_cstates@x86,x86_64 ; 59 60if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 { 61 AddFilesToPackage add-ons kernel cpu : generic_x86 ; 62} 63 64# drivers 65AddNewDriversToPackage disk scsi : scsi_cd scsi_disk ; 66AddNewDriversToPackage disk virtual : virtio_block ; 67AddNewDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ; 68#AddNewDriversToPackage display : display_adapter@x86 ; 69 70# legacy drivers 71AddDriversToPackage : console dprintf null <driver>tty usb_modeswitch zero ; 72AddDriversToPackage audio hmulti : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ; 73AddDriversToPackage audio old : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ; 74AddDriversToPackage midi : $(SYSTEM_ADD_ONS_DRIVERS_MIDI) ; 75AddDriversToPackage bus : usb_raw fw_raw@x86 ; 76AddDriversToPackage disk floppy : pc_floppy@x86 ; 77AddDriversToPackage disk usb : usb_disk ; 78AddDriversToPackage disk usb : usb_floppy ; 79AddDriversToPackage printer usb : usb_printer ; 80AddDriversToPackage disk virtual : nbd ; 81AddDriversToPackage dvb : cx23882 ; 82AddDriversToPackage graphics : $(SYSTEM_ADD_ONS_DRIVERS_GRAPHICS) ; 83AddDriversToPackage input : ps2_hid usb_hid wacom ; 84AddDriversToPackage misc : <driver>poke <driver>mem ; 85AddDriversToPackage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ; 86AddDriversToPackage ports : pc_serial usb_serial ; 87 88# kernel 89AddFilesToPackage : <revisioned>kernel_$(TARGET_ARCH) ; 90 91# libs 92AddLibrariesToPackage lib 93 : [ HaikuImageGetSystemLibs ] [ HaikuImageGetPrivateSystemLibs ] ; 94 95# libnetwork.so replaces quite a few libraries 96if $(HAIKU_GCC_VERSION_$(architecture)[1]) = 2 { 97 local libNetworkAliases = libsocket.so libbind.so libnet.so ; 98 local lib ; 99 for lib in $(libNetworkAliases) { 100 AddSymlinkToPackage lib : libnetwork.so : $(lib) ; 101 } 102 103 AddSymlinkToPackage lib : libbnetapi.so : libnetapi.so ; 104} 105 106 107# TODO: Remove when the packages have been rebuilt! 108AddSymlinkToPackage lib : libbe.so : liblocale.so ; 109 110# servers 111AddFilesToPackage servers : $(SYSTEM_SERVERS) ; 112 113# apps 114AddFilesToPackage : runtime_loader Deskbar Tracker ; 115AddFilesToPackage bin : $(SYSTEM_BIN) consoled ; 116AddFilesToPackage apps : $(SYSTEM_APPS) ; 117AddFilesToPackage preferences : $(SYSTEM_PREFERENCES) ; 118AddFilesToPackage demos : $(SYSTEM_DEMOS) ; 119 120SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ; 121AddFilesToPackage bin : install-wifi-firmwares.sh ; 122 123AddSymlinkToPackage bin : trash : untrash ; 124AddSymlinkToPackage bin : less : more ; 125AddSymlinkToPackage bin : gzip : gunzip ; 126AddSymlinkToPackage bin : gzip : zcat ; 127AddSymlinkToPackage bin : zdiff : zcmp ; 128 129# scripts and data files 130local bootScripts = Bootscript Bootscript.cd SetupEnvironment 131 InstallerInitScript InstallerFinishScript ; 132SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ; 133AddFilesToPackage boot : $(bootScripts) ; 134 135# post install scripts 136local postInstallFiles = add_catalog_entry_attributes.sh 137 default_deskbar_items.sh ; 138postInstallFiles = $(postInstallFiles:G=post-install) ; 139SEARCH on $(postInstallFiles) 140 = [ FDirName $(HAIKU_TOP) data system boot post_install ] ; 141AddFilesToPackage boot post-install : $(postInstallFiles) ; 142 143# artwork and sounds 144local logoArtwork = 145 $(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - big.png" 146 $(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - normal.png" ; 147SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ; 148AddFilesToPackage data artwork : $(logoArtwork) ; 149 150# Mail spell check dictionaries 151local spellFiles = words geekspeak ; 152spellFiles = $(spellFiles:G=spell) ; 153SEARCH on $(spellFiles) = [ FDirName $(HAIKU_TOP) src apps mail ] ; 154AddFilesToPackage data spell_check word_dictionary : $(spellFiles) ; 155 156local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes 157 : [a-zA-Z0-9]* ] ; 158fortuneFiles = $(fortuneFiles:G=data!fortunes) ; 159AddFilesToPackage data fortunes : $(fortuneFiles) ; 160 161local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ; 162local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ; 163local ttFonts = [ Glob $(fontDir)/ttfonts : *.ttf ] ; 164AddFilesToPackage data fonts psfonts : $(psFonts) ; 165AddFilesToPackage data fonts ttfonts : $(ttFonts) ; 166 167 168# keymaps 169AddFilesToPackage data Keymaps : $(HAIKU_KEYMAP_FILES) ; 170local keymapAlias ; 171for keymapAlias in $(HAIKU_KEYMAP_ALIASES) { 172 local aliasedTo = [ on $(keymapAlias) return $(HAIKU_KEYMAP_FILE) ] ; 173 AddSymlinkToPackage data Keymaps : $(aliasedTo:BSM) : $(keymapAlias:BSM) ; 174} 175 176 177# keyboard layouts 178AddFilesToPackage data KeyboardLayouts 179 : $(HAIKU_KEYBOARD_LAYOUT_FILES) ; 180AddFilesToPackage data KeyboardLayouts Apple\ Aluminum 181 : $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ; 182AddFilesToPackage data KeyboardLayouts ThinkPad 183 : $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ; 184 185# boot module links 186AddBootModuleSymlinksToPackage 187 acpi@x86,x86_64 ahci ata@ata ata_adapter@ata 188 bfs 189 config_manager 190 dpc 191 efi_gpt 192 generic_ide_pci 193 ide@ide ide_adapter@ide ide_isa@x86 isa@x86,x86_64 intel it8211 194 legacy_sata locked_pool 195 openpic@ppc 196 packagefs pci 197 scsi scsi_cd scsi_disk scsi_periph silicon_image_3112 198 usb usb_disk <usb>ehci <usb>ohci <usb>uhci 199 virtio virtio_block virtio_pci virtio_scsi 200; 201 202# add-ons 203AddFilesToPackage add-ons accelerants : $(SYSTEM_ADD_ONS_ACCELERANTS) ; 204AddFilesToPackage add-ons Translators : $(SYSTEM_ADD_ONS_TRANSLATORS) ; 205AddFilesToPackage add-ons locale catalogs : $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ; 206 207AddFilesToPackage add-ons mail_daemon inbound_protocols : POP3 208 IMAP ; 209AddFilesToPackage add-ons mail_daemon outbound_protocols : SMTP ; 210AddFilesToPackage add-ons mail_daemon inbound_filters 211 : MatchHeader SpamFilter NewMailNotification ; 212AddFilesToPackage add-ons mail_daemon outbound_filters : Fortune ; 213 214AddFilesToPackage add-ons media : $(SYSTEM_ADD_ONS_MEDIA) ; 215AddFilesToPackage add-ons media plugins : $(SYSTEM_ADD_ONS_MEDIA_PLUGINS) ; 216 217AddFilesToPackage add-ons Network\ Settings 218 : IPv4Interface IPv6Interface DNSClientService FTPService SSHService 219 TelnetService ; 220 221AddFilesToPackage add-ons Tracker 222 : FileType Mark\ as… Mark\ as\ Read Open\ Target\ Folder 223 Open\ Terminal ZipOMatic ; 224AddSymlinkToPackage add-ons Tracker 225 : /boot/system/preferences/Backgrounds : Background ; 226AddSymlinkToPackage add-ons Tracker 227 : /boot/system/apps/TextSearch : TextSearch ; 228AddSymlinkToPackage add-ons Tracker 229 : /boot/system/apps/DiskUsage : DiskUsage ; 230 231AddFilesToPackage add-ons input_server devices 232 : <input>keyboard <input>mouse <input>tablet <input>wacom ; 233AddFilesToPackage add-ons input_server filters 234 : screen_saver shortcut_catcher switch_workspace ; 235AddDirectoryToPackage add-ons input_server methods ; 236 237AddFilesToPackage add-ons kernel network : <net>notifications stack ; 238AddFilesToPackage add-ons kernel network : dns_resolver ; 239AddFilesToPackage add-ons kernel network devices : $(SYSTEM_NETWORK_DEVICES) ; 240AddFilesToPackage add-ons kernel network datalink_protocols 241 : $(SYSTEM_NETWORK_DATALINK_PROTOCOLS) ; 242AddFilesToPackage add-ons kernel network ppp: $(SYSTEM_NETWORK_PPP) ; 243AddFilesToPackage add-ons kernel network protocols 244 : $(SYSTEM_NETWORK_PROTOCOLS) ; 245 246AddFilesToPackage add-ons Print : $(SYSTEM_ADD_ONS_PRINT) ; 247AddFilesToPackage add-ons Print transport 248 : $(SYSTEM_ADD_ONS_PRINT_TRANSPORT) ; 249AddFilesToPackage add-ons Screen\ Savers : $(SYSTEM_ADD_ONS_SCREENSAVERS) ; 250 251AddFilesToPackage add-ons disk_systems 252 : <disk_system>intel <disk_system>gpt <disk_system>bfs <disk_system>ntfs ; 253 254 255# the MIME DB 256CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ; 257 258 259# Deskbar menu symlinks 260 261# "Applications" links 262local linkTarget ; 263for linkTarget in $(DESKBAR_APPLICATIONS) { 264 AddSymlinkToPackage data deskbar menu Applications 265 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 266} 267 268# "Desktop applets" links 269for linkTarget in $(DESKBAR_DESKTOP_APPLETS) { 270 AddSymlinkToPackage data deskbar menu Desktop\ applets 271 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 272} 273 274# "Preferences" links 275AddDirectoryToPackage data deskbar menu Preferences ; 276DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ; 277for linkTarget in $(DESKBAR_PREFERENCES) { 278 AddSymlinkToPackage data deskbar menu Preferences 279 : ../../../../preferences/$(linkTarget) 280 : $(linkTarget) ; 281} 282 283# "Demo" links 284AddDirectoryToPackage data deskbar menu Demos ; 285for linkTarget in $(SYSTEM_DEMOS) { 286 AddSymlinkToPackage data deskbar menu Demos 287 : ../../../../demos/$(linkTarget) : $(linkTarget) ; 288} 289 290# Deskbar menu entries file 291AddFilesToPackage data deskbar : <deskbar>menu_entries ; 292 293 294# PDF Writer enconding files 295CopyDirectoryToPackage data 296 : [ FDirName $(HAIKU_TOP) src add-ons print drivers pdf encoding ] 297 : "PDF Writer" : -x Jamfile ; 298 299# licenses 300CopyDirectoryToPackage data 301 : [ FDirName $(HAIKU_TOP) data system data licenses ] 302 : licenses ; 303 304# Copy documentation as per DiskUsage's license requirement. 305CopyDirectoryToPackage documentation 306 : [ FDirName $(HAIKU_TOP) docs apps diskusage ] 307 : diskusage ; 308 309# Copy documentation and sample programs as per PDFlib Lite's license 310# requirement. 311CopyDirectoryToPackage documentation 312 : [ FDirName $(HAIKU_TOP) src libs pdflib doc ] 313 : pdflib ; 314CopyDirectoryToPackage develop sample-code 315 : [ FDirName $(HAIKU_TOP) src libs pdflib bind pdflib ] 316 : pdflib ; 317 318 319# empty directory 320AddDirectoryToPackage data empty ; 321 322 323BuildHaikuPackage $(haikuPackage) : haiku ; 324