$OpenBSD: patch-lingucomponent_source_spellcheck_myspell_Makefile,v 1.2 2006/08/20 03:36:52 kurt Exp $
--- lingucomponent/source/spellcheck/myspell/Makefile.orig.port	Tue Mar  9 07:40:54 2004
+++ lingucomponent/source/spellcheck/myspell/Makefile	Fri Aug 18 15:47:43 2006
@@ -60,6 +60,23 @@ ifeq "$(PLATFORM)" "FreeBSD"
   RANLIB=ranlib
 endif
 
+ifeq "$(PLATFORM)" "OpenBSD"
+  CXX ?= g++
+  CXXFLAGS ?= -O2 -Wall -ansi -pedantic -I.
+  CC ?= gcc
+  CFLAGS ?= -O2 -Wall -ansi -pedantic -I.
+  PICFLAGS = -fPIC
+  SHARED = -shared -fPIC
+  SOSUFFIX = so
+  SOPREFIX = lib
+  UNIXVERSIONING=YES
+  SONAME = -Wl,-h
+  LIBPATH = LD_LIBRARY_PATH
+  STATICLIB=libmyspell-$(VERSION)_pic.a
+  AR=ar rc
+  RANLIB=ranlib
+endif
+
 ifeq "$(PLATFORM)" "Darwin"
   CXX ?= g++
   CXXFLAGS ?= -O2 -Wall -ansi -pedantic -I.
