51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
$OpenBSD: patch-common_mk,v 1.4 2011/05/09 11:03:40 dcoppa Exp $
|
||
--- common.mk.orig Sun May 8 14:20:48 2011
|
||
+++ common.mk Mon May 9 12:01:55 2011
|
||
@@ -1,12 +1,12 @@
|
||
UNAME=$(shell uname)
|
||
-DEBUG=1
|
||
+DEBUG=0
|
||
INSTALL=install
|
||
-PREFIX=/usr
|
||
-ifeq ($(PREFIX),/usr)
|
||
-SYSCONFDIR=/etc
|
||
-else
|
||
-SYSCONFDIR=$(PREFIX)/etc
|
||
+ifndef PREFIX
|
||
+ PREFIX=/usr
|
||
endif
|
||
+ifndef SYSCONFDIR
|
||
+ SYSCONFDIR=/etc
|
||
+endif
|
||
GIT_VERSION="3.e-bf3 (2011-05-08)"
|
||
VERSION=3.e-bf3
|
||
|
||
@@ -17,7 +17,7 @@ CFLAGS += -Wall
|
||
# We don’t want unused-parameter because of the use of many callbacks
|
||
CFLAGS += -Wunused-value
|
||
CFLAGS += -Iinclude
|
||
-CFLAGS += -I/usr/local/include
|
||
+CFLAGS += -I${LOCALBASE}/include
|
||
CFLAGS += -DI3_VERSION=\"${GIT_VERSION}\"
|
||
|
||
# Check if pkg-config is installed, because without pkg-config, the following
|
||
@@ -53,7 +53,7 @@ LDFLAGS += -lxcb
|
||
LDFLAGS += -lyajl
|
||
LDFLAGS += -lX11
|
||
LDFLAGS += -lev
|
||
-LDFLAGS += -L/usr/local/lib -L/usr/pkg/lib
|
||
+LDFLAGS += -L${LOCALBASE}/lib -L/usr/pkg/lib
|
||
|
||
ifeq ($(UNAME),NetBSD)
|
||
# We need -idirafter instead of -I to prefer the system’s iconv over GNU libiconv
|
||
@@ -86,9 +86,6 @@ CFLAGS += -g3
|
||
else
|
||
CFLAGS += -O2
|
||
endif
|
||
-
|
||
-# Don’t print command lines which are run
|
||
-.SILENT:
|
||
|
||
# Always remake the following targets
|
||
.PHONY: install clean dist distclean
|