HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #446

Ticket #446: slv2-0.6.6-haiku.diff

File slv2-0.6.6-haiku.diff, 2.0 KB (added by scottmc, 4 years ago)
  • src/world.c

    diff -Naur slv2-0.6.6.old/src/world.c slv2-0.6.6/src/world.c
    old new  
    3030#include "slv2/util.h" 
    3131#include "slv2_internal.h" 
    3232 
     33#ifdef __HAIKU__ 
     34#include <FindDirectory.h> 
     35#include <fs_info.h> 
     36#endif 
    3337 
    3438/* private */ 
    3539static SLV2World 
    … …  
    442446        if (lv2_path) { 
    443447                slv2_world_load_path(world, lv2_path); 
    444448        } else { 
     449#ifdef __HAIKU__ 
     450                char common[B_PATH_NAME_LENGTH + 1]; 
     451                char user[B_PATH_NAME_LENGTH + 1]; 
     452 
     453                if (find_directory(B_COMMON_ADDONS_DIRECTORY, NULL, false, common, B_PATH_NAME_LENGTH) == B_OK) 
     454                        lv2_path = slv2_strjoin(common, "/lv2"); 
     455 
     456                if (find_directory(B_USER_ADDONS_DIRECTORY, NULL, false, common, B_PATH_NAME_LENGTH) == B_OK) { 
     457                        if (lv2_path) 
     458                                lv2_path = slv2_strjoin(lv2_path, ":", user, "/lv2"); 
     459                        else 
     460                                lv2_path = slv2_strjoin(user, "/lv2"); 
     461                } 
     462 
     463                if (!lv2_path) 
     464                        return; 
     465#else 
    445466                const char* const home = getenv("HOME"); 
    446467                if (home) { 
    447468#ifdef __APPLE__ 
    … …  
    454475                } else { 
    455476#ifdef __APPLE__ 
    456477                        lv2_path = strdup("/Library/Audio/Plug-Ins/LV2:/usr/local/lib/lv2:/usr/lib/lv2"); 
    457 #else 
    458478                        lv2_path = strdup("/usr/local/lib/lv2:/usr/lib/lv2"); 
    459479#endif 
    460480                } 
     481#endif 
    461482 
    462483                slv2_world_load_path(world, lv2_path); 
    463484 
  • slv2-0.6.6

    diff -Naur slv2-0.6.6.old/waf slv2-0.6.6/waf
    old new  
    1 #!/usr/bin/env python 
     1#!/bin/env python 
    22# encoding: utf-8 
    33# Thomas Nagy, 2005-2009 
    44 
  • slv2-0.6.6

     		} else {
     #ifdef __APPLE__
     			lv2_path = strdup("/Library/Audio/Plug-Ins/LV2:/usr/local/lib/lv2:/usr/lib/lv2");
    -#else
     			lv2_path = strdup("/usr/local/lib/lv2:/usr/lib/lv2");
     #endif
     		}
    +#endif
     
     		slv2_world_load_path(world, lv2_path);
     
    diff -Naur slv2-0.6.6.old/waf slv2-0.6.6/waf
    old new  
    1 #!/usr/bin/env python 
     1#!/bin 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/