summaryrefslogtreecommitdiff
path: root/mail/elm-me/patches/patch-ce
blob: a8427dba2f28c1c72860633d370f7f23f3e2a893 (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
29
$NetBSD: patch-ce,v 1.2 2010/04/15 08:13:34 dholland Exp $

fix CFLAGS
DESTDIR support

--- utils/Makefile.SH.orig	2001-06-19 17:03:48.000000000 +0000
+++ utils/Makefile.SH
@@ -30,10 +30,10 @@ CC		=	$cc
 CCFLAGS		=	$ccflags $xencf
 CHMOD		=	$chmod
 CP		=	$cp
-DEST		=	$bin
+DEST		=	\$(DESTDIR)$bin
 ECHO		=	$echo
 LFLAGS		=	$ldflags $dynamic_opt $xenlf
-LIB		=	$lib
+LIB		=	\$(DESTDIR)$lib
 LIB2		= 	$dlopen_lib $libs
 LIBS		=	$termlib $dbm
 LINT		=	$lint
@@ -74,7 +74,7 @@ fi
 cat >>Makefile <<'!NO!SUBS!'
 #	Other general variables
 BIN		=	../bin
-CFLAGS		=	-I$(INCLDIR) $(CCFLAGS) $(OPTIMIZE)
+CFLAGS		+=	-I$(INCLDIR) $(CCFLAGS)
 INCLDIR		=	../hdrs
 LINTFLAGS	=	-I$(INCLDIR)
 SHELL		=	/bin/sh