yaskkserv-gentoo.patch 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -57,16 +57,16 @@
  4. $(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) test
  5. install_common_ :
  6. - $(MKDIR) -p $(PREFIX)/bin
  7. - $(INSTALL) $(VAR_PATH)/yaskkserv_make_dictionary/yaskkserv_make_dictionary $(PREFIX)/bin/yaskkserv_make_dictionary
  8. + $(MKDIR) -p $(DESTDIR)$(PREFIX)/bin
  9. + $(INSTALL) $(VAR_PATH)/yaskkserv_make_dictionary/yaskkserv_make_dictionary $(DESTDIR)$(PREFIX)/bin/yaskkserv_make_dictionary
  10. install : install_normal
  11. install_all : install_common_
  12. - $(MKDIR) -p $(PREFIX)/sbin
  13. - $(INSTALL) $(VAR_PATH)/yaskkserv_simple/yaskkserv_simple $(PREFIX)/sbin/yaskkserv_simple
  14. - $(INSTALL) $(VAR_PATH)/yaskkserv_normal/yaskkserv_normal $(PREFIX)/sbin/yaskkserv_normal
  15. - $(INSTALL) $(VAR_PATH)/yaskkserv_hairy/yaskkserv_hairy $(PREFIX)/sbin/yaskkserv_hairy
  16. + $(MKDIR) -p $(DESTDIR)$(PREFIX)/sbin
  17. + $(INSTALL) $(VAR_PATH)/yaskkserv_simple/yaskkserv_simple $(DESTDIR)$(PREFIX)/sbin/yaskkserv_simple
  18. + $(INSTALL) $(VAR_PATH)/yaskkserv_normal/yaskkserv_normal $(DESTDIR)$(PREFIX)/sbin/yaskkserv_normal
  19. + $(INSTALL) $(VAR_PATH)/yaskkserv_hairy/yaskkserv_hairy $(DESTDIR)$(PREFIX)/sbin/yaskkserv_hairy
  20. install_simple : install_common_
  21. $(MKDIR) -p $(PREFIX)/sbin
  22. --- a/source/Makefile.bsd_cygwin_linux_gcc.common
  23. +++ b/source/Makefile.bsd_cygwin_linux_gcc.common
  24. @@ -16,16 +16,16 @@
  25. endif # DEBUG
  26. INCLUDE_FLAGS = -I . -I $(VAR_PATH) -I $(PROJECT_ROOT)/source/skk -I $(PROJECT_ROOT)/source/skk/architecture -I $(PROJECT_ROOT)/source/skk/architecture/$(ARCHITECTURE_LOWER_CASE)
  27. -LIBRARY_FLAGS = -L/usr/lib
  28. +LIBRARY_FLAGS =
  29. -CPPFLAGS = $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(CXXFLAGS_DEFINE) -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\"
  30. +CPPFLAGS += $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(CXXFLAGS_DEFINE) -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\"
  31. -CXXFLAGS = $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(OPTIMIZE_FLAGS) $(CXXFLAGS_WARNING) -fno-exceptions -fno-rtti -fmessage-length=0 -pipe -fPIC -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\"
  32. +CXXFLAGS += $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(OPTIMIZE_FLAGS) $(CXXFLAGS_WARNING) -fno-exceptions -fno-rtti -fmessage-length=0 -pipe -fPIC -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\"
  33. -LDFLAGS = $(DEBUG_FLAGS) $(LDFLAGS_ARCHITECTURE) $(OPTIMIZE_FLAGS) -pipe $(LIBRARY_FLAGS) -fPIC
  34. +LDFLAGS += $(DEBUG_FLAGS) $(LDFLAGS_ARCHITECTURE) $(OPTIMIZE_FLAGS) -pipe $(LIBRARY_FLAGS) -fPIC
  35. CXX = $(CCACHE) $(COMPILER)
  36. LD = $(COMPILER)
  37. CPP = $(CXX)
  38. LD = $(CXX)
  39. -STRIP = strip
  40. +STRIP = true
  41. --- a/source/yaskkserv_hairy/Makefile.bsd_cygwin_linux_gcc
  42. +++ b/source/yaskkserv_hairy/Makefile.bsd_cygwin_linux_gcc
  43. @@ -12,7 +12,7 @@
  44. # RUN_FLAGS = --port=9999 --google-japanese-input=dictionary --google-suggest --google-japanese-input-timeout=1.1 https://www.google.com
  45. # RUN_FLAGS = --port=9999 --google-japanese-input=dictionary --google-japanese-input-timeout=1.1 http://www.google.com /home/wac/local/share/skk/SKK-JISYO.total+zipcode.yaskkserv
  46. # RUN_FLAGS = --port=9999 --google-japanese-input=dictionary --google-japanese-input-timeout=1.1 http://www.google.com
  47. -CXXFLAGS += $(CXXFLAGS_OPTIMIZE_SERVER_HAIRY) $(CXXFLAGS_WARNING_SERVER_HAIRY)
  48. +CXXFLAGS += $(CXXFLAGS_WARNING_SERVER_HAIRY)
  49. SOURCES = ${wildcard *.cpp}
  50. OBJECTS = ${addprefix $(VAR_PATH)/$(TARGET_BASE)/,$(SOURCES:.cpp=.o)}
  51. --- a/source/yaskkserv_make_dictionary/Makefile.bsd_cygwin_linux_gcc
  52. +++ b/source/yaskkserv_make_dictionary/Makefile.bsd_cygwin_linux_gcc
  53. @@ -5,7 +5,7 @@
  54. TARGET_BASE = yaskkserv_make_dictionary
  55. RUN_FLAGS =
  56. -CXXFLAGS += $(CXXFLAGS_OPTIMIZE_TOOL) $(CXXFLAGS_WARNING_TOOL)
  57. +CXXFLAGS += $(CXXFLAGS_WARNING_TOOL)
  58. SOURCES = ${wildcard *.cpp}
  59. OBJECTS = ${addprefix $(VAR_PATH)/$(TARGET_BASE)/,$(SOURCES:.cpp=.o)}
  60. --- a/source/yaskkserv_normal/Makefile.bsd_cygwin_linux_gcc
  61. +++ b/source/yaskkserv_normal/Makefile.bsd_cygwin_linux_gcc
  62. @@ -5,7 +5,7 @@
  63. TARGET_BASE = yaskkserv_normal
  64. RUN_FLAGS = --check-update --port=9999 /var/tmp/SKK-JISYO.total+zipcode.yaskkserv
  65. -CXXFLAGS += $(CXXFLAGS_OPTIMIZE_SERVER_NORMAL) $(CXXFLAGS_WARNING_SERVER_NORMAL)
  66. +CXXFLAGS += $(CXXFLAGS_WARNING_SERVER_NORMAL)
  67. SOURCES = ${wildcard *.cpp}
  68. OBJECTS = ${addprefix $(VAR_PATH)/$(TARGET_BASE)/,$(SOURCES:.cpp=.o)}
  69. --- a/source/yaskkserv_simple/Makefile.bsd_cygwin_linux_gcc
  70. +++ b/source/yaskkserv_simple/Makefile.bsd_cygwin_linux_gcc
  71. @@ -5,7 +5,7 @@
  72. TARGET_BASE = yaskkserv_simple
  73. RUN_FLAGS = --port=9999 /var/tmp/SKK-JISYO.total+zipcode.yaskkserv
  74. -CXXFLAGS += $(CXXFLAGS_OPTIMIZE_SERVER_SIMPLE) $(CXXFLAGS_WARNING_SERVER_SIMPLE)
  75. +CXXFLAGS += $(CXXFLAGS_WARNING_SERVER_SIMPLE)
  76. SOURCES = ${wildcard *.cpp}
  77. OBJECTS = ${addprefix $(VAR_PATH)/$(TARGET_BASE)/,$(SOURCES:.cpp=.o)}