summaryrefslogtreecommitdiff
path: root/misc/gkrellm-leds/patches/patch-aa
blob: 9b7a4d8e6692126538592fde93e5794890dc2ce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aa,v 1.1.1.1 2004/02/25 00:52:33 cube Exp $

--- Makefile.orig	2003-01-29 00:14:08.000000000 +0100
+++ Makefile
@@ -3,7 +3,7 @@ SHELL = /bin/sh
 GTK_INCLUDES = `pkg-config gtk+-2.0 --cflags`
 GTK_LIBS = `pkg-config gtk+-2.0 --libs`
 
-X11_LIB = -L/usr/X11R6/lib -lX11 -lXtst
+X11_LIB = -L$(X11BASE)/lib $(RPATH_FLAG)$(X11BASE)/lib -lX11 -lXtst
 
 WIN32_LIBS = -luser32 -lkernel32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lws2_32 $(GTK_LIBS)
 UNIX_LIBS = $(X11_LIB) $(GTK_LIBS)
@@ -11,8 +11,8 @@ UNIX_LIBS = $(X11_LIB) $(GTK_LIBS)
 DEGUG = -DGKLEDS_DEBUG
 LIBFLAGS = -shared
 INCS = $(GTK_INCLUDES) -DGKLEDS_SELFCOMPILE
-COMPFLAGS = -Wall -O2 -fPIC
-CC = gcc
+COMPFLAGS = $(CFLAGS) -Wall -fPIC
+#CC = gcc
 
 SRCS = src/gkleds.c src/gkleds_ind.c src/gkleds_conf.c src/gkrellm2/win32-plugin.c
 HDRS = src/gkleds.h src/gkleds_ind.c src/gkleds_conf.c src/gkrellm2/win32-plugin.h