1local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ; 2 3 4local haikuPackage = haiku.hpkg ; 5HaikuPackage $(haikuPackage) ; 6 7 8# modules 9AddFilesToPackage add-ons kernel bus_managers : $(SYSTEM_ADD_ONS_BUS_MANAGERS) ; 10AddFilesToPackage add-ons kernel busses agp_gart : <agp_gart>intel@x86,x86_64 ; 11 12AddFilesToPackage add-ons kernel busses ata 13 : generic_ide_pci it8211 legacy_sata silicon_image_3112 highpoint_ide_pci ide_isa@x86 ; 14 15AddFilesToPackage add-ons kernel busses scsi : ahci virtio_scsi ; 16AddFilesToPackage add-ons kernel busses usb : <usb>uhci <usb>ohci <usb>ehci ; 17AddFilesToPackage add-ons kernel busses virtio : virtio_pci ; 18AddFilesToPackage add-ons kernel console : vga_text ; 19AddFilesToPackage add-ons kernel debugger 20 : <kdebug>demangle <kdebug>disasm@x86 #<kdebug>hangman 21 <kdebug>invalidate_on_exit <kdebug>usb_keyboard 22 <kdebug>run_on_exit ; 23AddFilesToPackage add-ons kernel file_systems : $(SYSTEM_ADD_ONS_FILE_SYSTEMS) ; 24AddFilesToPackage add-ons kernel generic 25 : ata_adapter bios@x86,x86_64 dpc 26 locked_pool mpu401 scsi_periph <module>tty ; 27AddFilesToPackage add-ons kernel partitioning_systems 28 : amiga_rdb@m68k apple@ppc efi_gpt intel session ; 29AddFilesToPackage add-ons kernel interrupt_controllers : openpic@ppc ; 30AddFilesToPackage add-ons kernel power cpufreq : intel_pstates@x86,x86_64 ; 31AddFilesToPackage add-ons kernel power cpuidle : intel_cstates@x86,x86_64 ; 32 33if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 { 34 AddFilesToPackage add-ons kernel cpu : generic_x86 ; 35} 36 37# drivers 38AddNewDriversToPackage disk scsi : scsi_cd scsi_disk ; 39AddNewDriversToPackage disk virtual : ram_disk virtio_block ; 40AddNewDriversToPackage power : acpi_battery@x86 ; 41AddNewDriversToPackage network : virtio_net ; 42#AddNewDriversToPackage display : display_adapter@x86 ; 43 44# legacy drivers 45AddDriversToPackage : console dprintf null random <driver>tty 46 zero ; 47AddDriversToPackage audio hmulti : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO) ; 48AddDriversToPackage audio old : $(SYSTEM_ADD_ONS_DRIVERS_AUDIO_OLD) ; 49AddDriversToPackage midi : $(SYSTEM_ADD_ONS_DRIVERS_MIDI) ; 50AddDriversToPackage bus : usb_raw ; 51AddDriversToPackage disk virtual : nbd ; 52AddDriversToPackage graphics : $(SYSTEM_ADD_ONS_DRIVERS_GRAPHICS) ; 53AddDriversToPackage input : ps2_hid usb_hid wacom ; 54AddDriversToPackage misc : <driver>poke <driver>mem ; 55AddDriversToPackage net : $(SYSTEM_ADD_ONS_DRIVERS_NET) ; 56AddDriversToPackage ports : pc_serial usb_serial ; 57AddDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ; 58 59# kernel 60AddFilesToPackage : <revisioned>kernel_$(TARGET_ARCH) ; 61 62# libs 63AddLibrariesToPackage lib 64 : [ HaikuImageGetSystemLibs ] [ HaikuImageGetPrivateSystemLibs ] ; 65 66# libnetwork.so replaces quite a few libraries 67if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 { 68 local libNetworkAliases = libsocket.so libbind.so libnet.so ; 69 local lib ; 70 for lib in $(libNetworkAliases) { 71 AddSymlinkToPackage lib : libnetwork.so : $(lib) ; 72 } 73 74 AddSymlinkToPackage lib : libbnetapi.so : libnetapi.so ; 75} 76 77 78# servers 79AddFilesToPackage servers : $(SYSTEM_SERVERS) ; 80 81# apps 82AddFilesToPackage : runtime_loader Deskbar Tracker ; 83AddFilesToPackage bin : $(SYSTEM_BIN) consoled ; 84AddFilesToPackage apps : $(SYSTEM_APPS) ; 85AddFilesToPackage preferences : $(SYSTEM_PREFERENCES) ; 86AddFilesToPackage demos : $(SYSTEM_DEMOS) ; 87 88SEARCH on install-wifi-firmwares.sh = [ FDirName $(HAIKU_TOP) data bin ] ; 89AddFilesToPackage bin : install-wifi-firmwares.sh ; 90 91AddSymlinkToPackage bin : trash : untrash ; 92AddSymlinkToPackage bin : less : more ; 93 94# scripts and data files 95local bootScripts = PostInstallScript SetupEnvironment ; 96SEARCH on $(bootScripts) = [ FDirName $(HAIKU_TOP) data system boot ] ; 97AddFilesToPackage boot : $(bootScripts) ; 98 99local launchScripts = <data!launch>system ; 100SEARCH on $(launchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ; 101AddFilesToPackage data launch : $(launchScripts) ; 102 103local userLaunchScripts = <data!launch>user <data!launch>bootstrap ; 104SEARCH on $(userLaunchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ; 105AddFilesToPackage data user_launch : $(userLaunchScripts) ; 106 107# first login scripts 108local firstLoginFiles = default_deskbar_items.sh ; 109firstLoginFiles = $(firstLoginFiles:G=first-login) ; 110SEARCH on $(firstLoginFiles) 111 = [ FDirName $(HAIKU_TOP) data system boot first_login ] ; 112AddFilesToPackage boot first_login : $(firstLoginFiles) ; 113 114local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes 115 : [a-zA-Z0-9]* ] ; 116fortuneFiles = $(fortuneFiles:G=data!fortunes) ; 117AddFilesToPackage data fortunes : $(fortuneFiles) ; 118 119local fontDir = [ FDirName $(HAIKU_TOP) data system data fonts ] ; 120local psFonts = [ Glob $(fontDir)/psfonts : *.afm *.pfb ] ; 121AddFilesToPackage data fonts psfonts : $(psFonts) ; 122 123# keymaps 124AddFilesToPackage data Keymaps : $(HAIKU_KEYMAP_FILES) ; 125local keymapAlias ; 126for keymapAlias in $(HAIKU_KEYMAP_ALIASES) { 127 local aliasedTo = [ on $(keymapAlias) return $(HAIKU_KEYMAP_FILE) ] ; 128 AddSymlinkToPackage data Keymaps : $(aliasedTo:BSM) : $(keymapAlias:BSM) ; 129} 130 131# keyboard layouts 132AddFilesToPackage data KeyboardLayouts 133 : $(HAIKU_KEYBOARD_LAYOUT_FILES) ; 134AddFilesToPackage data KeyboardLayouts Apple\ Aluminum 135 : $(HAIKU_APPLE_ALUMINUM_KEYBOARD_LAYOUT_FILES) ; 136AddFilesToPackage data KeyboardLayouts ThinkPad 137 : $(HAIKU_THINKPAD_KEYBOARD_LAYOUT_FILES) ; 138 139# terminal themes 140local terminalThemes = [ Glob $(HAIKU_TOP)/data/system/data/terminal_themes : "[a-zA-Z0-9 ]*" ] ; 141AddFilesToPackage data Terminal Themes : $(terminalThemes) ; 142 143# boot module links 144AddBootModuleSymlinksToPackage 145 acpi@x86,x86_64 ata pci isa@x86,x86_64 dpc 146 scsi usb 147 openpic@ppc 148 ata_adapter locked_pool scsi_periph 149 ahci generic_ide_pci it8211 legacy_sata silicon_image_3112 150 highpoint_ide_pci 151 ide_isa@x86 152 <usb>uhci <usb>ohci <usb>ehci 153 scsi_cd scsi_disk 154 virtio virtio_pci virtio_block virtio_scsi 155 efi_gpt 156 intel 157 bfs packagefs 158; 159 160# add-ons 161AddFilesToPackage add-ons accelerants : $(SYSTEM_ADD_ONS_ACCELERANTS) ; 162AddFilesToPackage add-ons Translators : $(SYSTEM_ADD_ONS_TRANSLATORS) ; 163AddFilesToPackage add-ons locale catalogs : $(SYSTEM_ADD_ONS_LOCALE_CATALOGS) ; 164 165AddFilesToPackage add-ons Tracker 166 : FileType Mark\ as… Mark\ as\ Read Open\ Target\ Folder 167 Open\ Terminal ZipOMatic ; 168AddSymlinkToPackage add-ons Tracker 169 : /boot/system/preferences/Backgrounds : Background-B ; 170AddSymlinkToPackage add-ons Tracker 171 : /boot/system/apps/TextSearch : TextSearch-G ; 172AddSymlinkToPackage add-ons Tracker 173 : /boot/system/apps/DiskUsage : DiskUsage-I ; 174 175AddFilesToPackage add-ons input_server devices 176 : <input>keyboard <input>mouse <input>tablet <input>wacom ; 177AddFilesToPackage add-ons input_server filters 178 : switch_workspace ; 179 180AddFilesToPackage add-ons kernel network : <net>notifications stack ; 181AddFilesToPackage add-ons kernel network : dns_resolver ; 182AddFilesToPackage add-ons kernel network devices : $(SYSTEM_NETWORK_DEVICES) ; 183AddFilesToPackage add-ons kernel network datalink_protocols 184 : $(SYSTEM_NETWORK_DATALINK_PROTOCOLS) ; 185AddFilesToPackage add-ons kernel network ppp : $(SYSTEM_NETWORK_PPP) ; 186AddFilesToPackage add-ons kernel network protocols 187 : $(SYSTEM_NETWORK_PROTOCOLS) ; 188 189AddFilesToPackage add-ons disk_systems 190 : <disk_system>intel <disk_system>gpt <disk_system>bfs <disk_system>ntfs ; 191 192 193# the MIME DB 194CopyDirectoryToPackage data : <mimedb>mime_db : : : isTarget ; 195 196 197# Deskbar menu symlinks 198 199# "Applications" links 200DESKBAR_APPLICATIONS = ActivityMonitor CharacterMap DeskCalc 201 Devices DiskProbe DriveSetup DiskUsage Expander Installer 202 StyledEdit Terminal 203; 204local linkTarget ; 205for linkTarget in $(DESKBAR_APPLICATIONS) { 206 AddSymlinkToPackage data deskbar menu Applications 207 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 208} 209 210# "Desktop applets" links 211DESKBAR_DESKTOP_APPLETS = LaunchBox NetworkStatus PowerStatus ProcessController 212 Workspaces 213; 214for linkTarget in $(DESKBAR_DESKTOP_APPLETS) { 215 AddSymlinkToPackage data deskbar menu Desktop\ applets 216 : ../../../../apps/$(linkTarget) : $(linkTarget) ; 217} 218 219# "Preferences" links 220AddDirectoryToPackage data deskbar menu Preferences ; 221DESKBAR_PREFERENCES = $(SYSTEM_PREFERENCES:B) ; 222for linkTarget in $(DESKBAR_PREFERENCES) { 223 AddSymlinkToPackage data deskbar menu Preferences 224 : ../../../../preferences/$(linkTarget) 225 : $(linkTarget) ; 226} 227 228# Deskbar menu entries file 229AddFilesToPackage data deskbar : <deskbar>menu_entries ; 230 231 232# licenses 233CopyDirectoryToPackage data 234 : [ FDirName $(HAIKU_TOP) data system data licenses ] 235 : licenses ; 236 237# netresolv support files 238CopyDirectoryToPackage data 239 : [ FDirName $(HAIKU_TOP) data system data network ] 240 : network ; 241 242# Copy documentation as per DiskUsage's license requirement. 243CopyDirectoryToPackage documentation 244 : [ FDirName $(HAIKU_TOP) docs apps diskusage ] 245 : diskusage ; 246 247 248BuildHaikuPackage $(haikuPackage) : haiku ; 249