openbsd-ports/x11/i3/patches/patch-common_mk
landry 620da9e954 Import (really, this time) i3 3.c, from MAINTAINER Baptiste Daroussin,
with tweaks by me.

i3 is an improved dynamic, tiling window manager.

note: It is still young, so some debug options are still enable by
default, and it's a bit verbose.

ok ajacoutot@
2009-09-02 19:26:17 +00:00

46 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$OpenBSD: patch-common_mk,v 1.1.1.1 2009/09/02 19:26:17 landry Exp $
--- common.mk.orig Wed Aug 19 14:39:09 2009
+++ common.mk Wed Sep 2 21:23:04 2009
@@ -9,7 +9,7 @@ CFLAGS += -pipe
CFLAGS += -Wall
CFLAGS += -Wunused
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
@@ -38,7 +38,7 @@ LDFLAGS += -lxcb-icccm
LDFLAGS += -lxcb-xinerama
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 systems iconv over GNU libiconv
@@ -50,6 +50,13 @@ ifeq ($(UNAME),FreeBSD)
LDFLAGS += -liconv
endif
+ifeq ($(UNAME),OpenBSD)
+CFLAGS += -ftrampolines
+CFLAGS += -I${X11BASE}/include
+LDFLAGS += -liconv
+LDFLAGS += -L${X11BASE}/lib
+endif
+
ifeq ($(UNAME),Linux)
CFLAGS += -D_GNU_SOURCE
endif
@@ -61,9 +68,6 @@ CFLAGS += -g3
else
CFLAGS += -O2
endif
-
-# Dont print command lines which are run
-.SILENT:
# Always remake the following targets
.PHONY: install clean dist distclean