4b1ea5f56c
form support later; that needs v8 so won't be in the standard package)
34 lines
980 B
Plaintext
34 lines
980 B
Plaintext
$OpenBSD: patch-Makerules,v 1.7 2013/03/21 01:26:03 sthen Exp $
|
|
--- Makerules.orig Wed Feb 13 14:25:07 2013
|
|
+++ Makerules Thu Mar 21 01:01:34 2013
|
|
@@ -5,6 +5,7 @@ OS := $(OS:MINGW%=MINGW)
|
|
|
|
CFLAGS += -Wall
|
|
|
|
+ifneq "$(OS)" "OpenBSD" # don't override C optimizer flags for ports builds
|
|
ifeq "$(build)" "debug"
|
|
CFLAGS += -pipe -g -DDEBUG
|
|
else ifeq "$(build)" "profile"
|
|
@@ -22,6 +23,7 @@ CFLAGS += -pipe -g -DMEMENTO -DDEBUG
|
|
else
|
|
$(error unknown build setting: '$(build)')
|
|
endif
|
|
+endif
|
|
|
|
ifeq "$(OS)" "Linux"
|
|
SYS_FREETYPE_INC := `pkg-config --cflags freetype2`
|
|
@@ -39,6 +41,13 @@ ifeq "$(OS)" "SunOS"
|
|
SYS_FREETYPE_INC := `pkg-config --cflags freetype2`
|
|
LDFLAGS += -L/usr/local/lib
|
|
X11_LIBS := -lX11 -lXext
|
|
+endif
|
|
+
|
|
+ifeq "$(OS)" "OpenBSD"
|
|
+SYS_FREETYPE_INC := `pkg-config --cflags freetype2`
|
|
+CFLAGS += -I${LOCALBASE}/include
|
|
+LDFLAGS += `pkg-config --libs freetype2` -L${LOCALBASE}/lib
|
|
+X11_LIBS = -lX11 -lXext
|
|
endif
|
|
|
|
# Mac OS X build depends on some thirdparty libs
|