splix-1.1.0-fix-makefile.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Index: splix-2.0.0/Makefile
  2. ===================================================================
  3. --- splix-2.0.0.orig/Makefile
  4. +++ splix-2.0.0/Makefile
  5. @@ -55,8 +55,6 @@
  6. # +--------------------------------------------------------------------------+
  7. LANGUAGES := cpp c
  8. -CC := gcc
  9. -CXX := g++
  10. RM := rm -f
  11. AR := ar crs
  12. LEX := flex
  13. @@ -72,10 +70,10 @@ empty :=
  14. space := $(empty) $(empty)
  15. comma := ,
  16. -DEBUG_CFLAGS := -O0 -g
  17. -DEBUG_CXXFLAGS := -O0 -g
  18. -OPTIM_CFLAGS := -O2
  19. -OPTIM_CXXFLAGS := -O2
  20. +DEBUG_CFLAGS := $(OS_CFLAGS)
  21. +DEBUG_CXXFLAGS := $(OS_CXXFLAGS)
  22. +OPTIM_CFLAGS := $(OS_CFLAGS)
  23. +OPTIM_CXXFLAGS := $(OS_CXXFLAGS)
  24. ARCHI := $(shell uname -s)
  25. Index: splix-2.0.0/module.mk
  26. ===================================================================
  27. --- splix-2.0.0.orig/module.mk
  28. +++ splix-2.0.0/module.mk
  29. @@ -26,13 +26,13 @@ DISABLE_BLACKOPTIM ?= 0
  30. # Flags
  31. -CXXFLAGS += `cups-config --cflags` -Iinclude -Wall -I/opt/local/include
  32. -DEBUG_CXXFLAGS += -DDEBUG -DDUMP_CACHE
  33. -OPTIM_CXXFLAGS += -g
  34. -rastertoqpdl_LDFLAGS := `cups-config --ldflags` -L/opt/local/lib
  35. -rastertoqpdl_LIBS := `cups-config --libs` -lcupsimage
  36. -pstoqpdl_LDFLAGS := `cups-config --ldflags`
  37. -pstoqpdl_LIBS := `cups-config --libs` -lcupsimage
  38. +CXXFLAGS += `cups-config --cflags` -Iinclude $(OS_CXXFLAGS)
  39. +DEBUG_CXXFLAGS += $(OS_CXXFLAGS)
  40. +OPTIM_CXXFLAGS += $(OS_CXXFLAGS)
  41. +rastertoqpdl_LDFLAGS := `cups-config --ldflags` $(OS_LDFLAGS) -L/opt/local/lib
  42. +rastertoqpdl_LIBS := `cups-config --libs` -lcupsimage
  43. +pstoqpdl_LDFLAGS := `cups-config --ldflags` $(OS_LDFLAGS)
  44. +pstoqpdl_LIBS := `cups-config --libs` -lcupsimage
  45. # Update compilation flags with defined options