OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../gkrellm/libsm.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. diff -ruN gkrellm-2.3.4-orig/Makefile gkrellm-2.3.4/Makefile
  18. --- gkrellm-2.3.4-orig/Makefile 2010-01-05 00:13:13.000000000 +0100
  19. +++ gkrellm-2.3.4/Makefile 2010-08-25 19:00:46.800005755 +0200
  20. @@ -247,7 +247,7 @@
  21. (cd po && ${MAKE} all)
  22. (cd src && ${MAKE} \
  23. EXTRAOBJS= SYS_LIBS="-lkvm" \
  24. - SMC_LIBS="-L/usr/X11R6/lib -lSM -lICE -Wl,-R/usr/X11R6/lib" \
  25. + SMC_LIBS="`pkg-config --libs sm`" \
  26. gkrellm )
  27. (cd server && ${MAKE} \
  28. EXTRAOBJS= SYS_LIBS="-lkvm" gkrellmd )
  29. @@ -256,7 +256,7 @@
  30. (cd po && ${MAKE} all)
  31. (cd src && ${MAKE} \
  32. EXTRAOBJS= SYS_LIBS="-lkvm -pthread" \
  33. - SMC_LIBS="-L/usr/X11R6/lib -lSM -lICE -R/usr/X11R6/lib" \
  34. + SMC_LIBS="`pkg-config --libs sm`" \
  35. gkrellm )
  36. (cd server && ${MAKE} \
  37. EXTRAOBJS= SYS_LIBS="-lkvm -pthread" gkrellmd )
  38. diff -ruN gkrellm-2.3.4-orig/src/Makefile gkrellm-2.3.4/src/Makefile
  39. --- gkrellm-2.3.4-orig/src/Makefile 2010-01-05 00:12:07.000000000 +0100
  40. +++ gkrellm-2.3.4/src/Makefile 2010-08-25 19:00:46.800005755 +0200
  41. @@ -20,7 +20,7 @@
  42. MANDIRMODE ?= 755
  43. INSTALL ?= install
  44. LINK_FLAGS ?= -Wl,-E
  45. -SMC_LIBS ?= -L/usr/X11R6/lib -lSM -lICE
  46. +SMC_LIBS ?= $(shell pkg-config --libs sm)
  47. X11_LIBS ?= -lX11
  48. @@ -188,11 +188,11 @@
  49. netbsd1:
  50. $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm" \
  51. - SMC_LIBS="-L/usr/X11R6/lib -lSM -lICE -Wl,-R/usr/X11R6/lib" \
  52. + SMC_LIBS="`pkg-config --libs sm`" \
  53. gkrellm
  54. netbsd2:
  55. $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm -pthread" \
  56. - SMC_LIBS="-L/usr/X11R6/lib -lSM -lICE -R/usr/X11R6/lib" \
  57. + SMC_LIBS="`pkg-config --libs sm`" \
  58. gkrellm
  59. openbsd: