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