openbsd-ports/x11/i3/patches/patch-common_mk

34 lines
767 B
Plaintext
Raw Normal View History

2012-09-21 13:16:13 -04:00
$OpenBSD: patch-common_mk,v 1.13 2012/09/21 17:16:14 dcoppa Exp $
--- common.mk.orig Wed Sep 19 18:08:09 2012
+++ common.mk Fri Sep 21 15:20:57 2012
2012-05-09 07:56:49 -04:00
@@ -1,5 +1,5 @@
UNAME=$(shell uname)
2011-05-09 07:03:40 -04:00
-DEBUG=1
+DEBUG=0
COVERAGE=0
INSTALL=install
2012-05-09 07:56:49 -04:00
FLEX=flex
2012-09-21 13:16:13 -04:00
@@ -161,20 +161,13 @@ I3_LDFLAGS += -Wl,-rpath,/usr/local/lib -Wl,-rpath,/us
endif
ifeq ($(UNAME),OpenBSD)
2012-09-21 13:16:13 -04:00
-I3_CFLAGS += -I${X11BASE}/include
+I3_CFLAGS += -I${X11BASE}/include -I${LOCALBASE}/include
LIBS += -liconv
2012-09-21 13:16:13 -04:00
-I3_LDFLAGS += -L${X11BASE}/lib
+I3_LDFLAGS += -L${X11BASE}/lib -L${LOCALBASE}/lib
endif
ifeq ($(UNAME),FreeBSD)
2012-09-21 13:16:13 -04:00
LIBS += -liconv
-endif
-
-ifeq ($(UNAME),Darwin)
-LIBS += -liconv
2011-12-27 04:05:17 -05:00
-else
2012-09-21 13:16:13 -04:00
-# Darwin (Mac OS X) doesnt have librt
-LIBS += -lrt
endif
2012-09-21 13:16:13 -04:00
ifneq (,$(filter Linux GNU GNU/%, $(UNAME)))