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