patch-setup_py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. $OpenBSD: patch-setup_py,v 1.3 2016/12/05 16:16:55 ajacoutot Exp $
  2. --- setup.py.orig Fri Nov 11 19:59:29 2016
  3. +++ setup.py Mon Dec 5 09:46:49 2016
  4. @@ -14,6 +14,7 @@ INCLUDES = {
  5. 'darwin': ['/usr/local/include'],
  6. 'linux': [],
  7. 'freebsd': ['/usr/local/include'],
  8. + 'openbsd': ['${LOCALBASE}/include'],
  9. 'win32': ['c:/icu/include'],
  10. 'sunos5': [],
  11. }
  12. @@ -22,6 +23,7 @@ CFLAGS = {
  13. 'darwin': ['-DPYICU_VER="%s"' %(VERSION)],
  14. 'linux': ['-DPYICU_VER="%s"' %(VERSION)],
  15. 'freebsd': ['-DPYICU_VER="%s"' %(VERSION)],
  16. + 'openbsd': ['-DPYICU_VER="%s"' %(VERSION)],
  17. 'win32': ['/Zc:wchar_t', '/EHsc', '/DPYICU_VER=\\"%s\\"' %(VERSION)],
  18. 'sunos5': ['-DPYICU_VER="%s"' %(VERSION)],
  19. }
  20. @@ -31,6 +33,7 @@ DEBUG_CFLAGS = {
  21. 'darwin': ['-O0', '-g', '-DDEBUG'],
  22. 'linux': ['-O0', '-g', '-DDEBUG'],
  23. 'freebsd': ['-O0', '-g', '-DDEBUG'],
  24. + 'openbsd': ['-O0', '-g', '-DDEBUG'],
  25. 'win32': ['/Od', '/DDEBUG'],
  26. 'sunos5': ['-DDEBUG'],
  27. }
  28. @@ -39,6 +42,7 @@ LFLAGS = {
  29. 'darwin': ['-L/usr/local/lib'],
  30. 'linux': [],
  31. 'freebsd': ['-L/usr/local/lib'],
  32. + 'openbsd': ['-L${LOCALBASE}/lib'],
  33. 'win32': ['/LIBPATH:c:/icu/lib'],
  34. 'sunos5': [],
  35. }
  36. @@ -47,6 +51,7 @@ LIBRARIES = {
  37. 'darwin': ['icui18n', 'icuuc', 'icudata'],
  38. 'linux': ['icui18n', 'icuuc', 'icudata'],
  39. 'freebsd': ['icui18n', 'icuuc', 'icudata'],
  40. + 'openbsd': ['icui18n', 'icuuc', 'icudata'],
  41. 'win32': ['icuin', 'icuuc', 'icudt'],
  42. 'sunos5': ['icui18n', 'icuuc', 'icudata'],
  43. }
  44. @@ -56,6 +61,8 @@ if platform.startswith(('linux', 'gnu')):
  45. platform = 'linux'
  46. elif platform.startswith('freebsd'):
  47. platform = 'freebsd'
  48. +elif platform.startswith('openbsd'):
  49. + platform = 'openbsd'
  50. if 'PYICU_INCLUDES' in os.environ:
  51. _includes = os.environ['PYICU_INCLUDES'].split(os.pathsep)