Dash:
[t2-trunk.git] / package / gnome / gkrellm / libsm.patch
bloba5a124b095e3981646a6b1da1b387296afe81317
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../gkrellm/libsm.patch
5 # Copyright (C) 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
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
14 # version.
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
20 @@ -207,7 +207,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 @@ -216,7 +216,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 -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
41 @@ -17,7 +17,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)
48 ifeq ($(without-gnutls),1)
49 CONFIGURE_ARGS += --without-gnutls
50 @@ -128,11 +128,11 @@
52 netbsd1:
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`" \
56 gkrellm
57 netbsd2:
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`" \
61 gkrellm
63 openbsd: