openbsd-ports/databases/leveldb/patches/patch-build_detect_platform
jasper 446a0d0c0f import leveldb, svn rev 48
LevelDB is a fast key-value storage library written at Google that
provides an ordered mapping from string keys to string values.

Features:
  - Keys and values are arbitrary byte arrays.
  - Data is stored sorted by key.
  - Callers can provide a custom comparison function to override
    the sort order.
  - The basic operations are Put(key,value), Get(key), Delete(key).
  - Multiple changes can be made in one atomic batch.
  - Users can create a transient snapshot to get a consistent view
    of data.
  - Forward and backward iteration is supported over the data.

ok sthen@
2011-08-19 06:44:00 +00:00

19 lines
706 B
Plaintext

$OpenBSD: patch-build_detect_platform,v 1.1.1.1 2011/08/19 06:44:00 jasper Exp $
Add OpenBSD support: http://code.google.com/p/leveldb/issues/detail?id=31
--- build_detect_platform.orig Wed Jul 27 03:46:25 2011
+++ build_detect_platform Thu Aug 18 17:06:57 2011
@@ -35,6 +35,11 @@ case `uname -s` in
echo "PLATFORM_CFLAGS=-D_REENTRANT -DOS_FREEBSD" >> build_config.mk
echo "PLATFORM_LDFLAGS=-lpthread" >> build_config.mk
;;
+ OpenBSD)
+ PLATFORM=OS_OPENBSD
+ echo "PLATFORM_CFLAGS=-D_REENTRANT -DOS_OPENBSD" >> build_config.mk
+ echo "PLATFORM_LDFLAGS=-pthread" >> build_config.mk
+ ;;
*)
echo "Unknown platform!"
exit 1