1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
$NetBSD: patch-aa,v 1.1.1.1 2005/03/24 21:25:01 nathanw Exp $
--- Makefile.orig 2005-03-14 13:10:12.000000000 -0500
+++ Makefile 2005-03-14 13:13:50.000000000 -0500
@@ -2,7 +2,7 @@
GAIM_OTR_VERSION = 2.0.1
# Replace this with the path to the GAIM headers
-GAIM_SOURCE ?= /usr/include/gaim
+GAIM_SOURCE ?= ${PREFIX}/include/gaim
# If you don't have pkg-config, put the appropriate -I entry on the next line
GTK_HDRS ?= `pkg-config --cflags glib-2.0 gtk+-2.0`
@@ -10,10 +10,10 @@
# The location of the libotr include files. Note that if, for example,
# the full path of message.h is /usr/include/libotr/message.h, you
# should put /usr/include on the next line, not /usr/include/libotr
-LIBOTRINCDIR = /usr/include
+LIBOTRINCDIR = ${PREFIX}/include
# The locataion of libotr.a.
-LIBOTRLIBDIR = /usr/lib
+LIBOTRLIBDIR = ${PREFIX}/lib
# The target
TARGET = gaim-otr.so
@@ -30,11 +30,11 @@
else
FPIC = -fPIC
LDFLAGS = -module -avoid-version
-LDLIBS = -lotr -lgcrypt
+LDLIBS = -L${LIBOTRLIBDIR} -Wl,--rpath,${LIBOTRLIBDIR} -lotr -lgcrypt
endif
# Install directory
-GAIMDIR = /usr/lib/gaim
+GAIMDIR = ${PREFIX}/lib/gaim
INSTALLDIR = $(DESTDIR)$(GAIMDIR)
CC ?= gcc
|