1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../gkrellm/libsm.patch
5 # Copyright (C) 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -ur gkrellm-2.2.7/Makefile gkrellm-2.2.7-t2/Makefile
18 --- gkrellm-2.2.7/Makefile 2005-05-22 18:18:44.000000000 +0200
19 +++ gkrellm-2.2.7-t2/Makefile 2006-01-25 14:10:16.000000000 +0100
21 (cd po && ${MAKE} all)
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`" \
27 (cd server && ${MAKE} \
28 EXTRAOBJS= SYS_LIBS="-lkvm" gkrellmd )
30 (cd po && ${MAKE} all)
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`" \
36 (cd server && ${MAKE} \
37 EXTRAOBJS= SYS_LIBS="-lkvm -pthread" gkrellmd )
38 diff -ur gkrellm-2.2.7/src/Makefile gkrellm-2.2.7-t2/src/Makefile
39 --- gkrellm-2.2.7/src/Makefile 2005-05-09 18:54:03.000000000 +0200
40 +++ gkrellm-2.2.7-t2/src/Makefile 2006-01-25 14:16:58.000000000 +0100
45 -SMC_LIBS ?= -L/usr/X11R6/lib -lSM -lICE
46 +SMC_LIBS ?= $(shell pkg-config --libs sm)
48 ifeq ($(without-gnutls),1)
49 CONFIGURE_ARGS += --without-gnutls
53 $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm" \
54 - SMC_LIBS="-L/usr/X11R6/lib -lSM -lICE -Wl,-R/usr/X11R6/lib" \
55 + SMC_LIBS="`pkg-config --libs sm`" \
58 $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm -pthread" \
59 - SMC_LIBS="-L/usr/X11R6/lib -lSM -lICE -R/usr/X11R6/lib" \
60 + SMC_LIBS="`pkg-config --libs sm`" \