summaryrefslogtreecommitdiff
path: root/mail/elm-me/patches/patch-cb
blob: 0abf6683cace6565d6bd28b7aaac4a2ce8c3f281 (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
25
26
27
28
$NetBSD: patch-cb,v 1.2 2010/04/15 08:13:34 dholland Exp $

fix CFLAGS
DESTDIR support

--- lib/Makefile.SH.orig	2001-06-19 17:03:40.000000000 +0000
+++ lib/Makefile.SH
@@ -102,9 +102,9 @@ if $test "$d_shared" = "$define" ; then
 
 cat >>Makefile <<SUBSTITUTE
 SHLIST          = ../shlib/libelmme-base.so
-INSTLIB		= $shlib/libelmme-base.so$d_shared_rev
+INSTLIB		= \$(DESTDIR)$shlib/libelmme-base.so$d_shared_rev
 SONAME          = ${soname_opt}$shlib/libelmme-base.so$d_shared_rev
-SHLIB		= $shlib
+SHLIB		= \$(DESTDIR)$shlib
 SUBSTITUTE
 
 else
@@ -121,7 +121,7 @@ fi
 $cat >>Makefile <<'!NO!SUBS!'
 
 #	Other general variables
-CFLAGS		=	-I$(INCLDIR) $(CCFLAGS) $(OPTIMIZE) 
+CFLAGS		+=	-I$(INCLDIR) $(CCFLAGS)
 INCLDIR		=	../hdrs
 LINTFLAGS	=	-I$(INCLDIR)
 SHELL		=	/bin/sh