$NetBSD: patch-Makefile,v 1.3 2014/12/23 18:51:37 joerg Exp $

Add explicit NetBSD 64-bit target.
--- Makefile.orig	2013-05-17 01:29:31.000000000 +0000
+++ Makefile
@@ -76,7 +76,7 @@ $(NATIVE_DLL): $(SNAPPY_OUT)/$(LIBNAME) 
 
 
 $(TARGET)/$(snappy-jar-version).jar: native $(NATIVE_DLL)
-	$(MVN) package -Dmaven.test.skip=true
+	$(MVN) package -Dmaven.test.skip=true -Duser.home=${HOME}
 
 test: $(NATIVE_DLL)
 	$(MVN) test
@@ -97,6 +97,9 @@ linux32:
 freebsd64:
 	$(MAKE) native OS_NAME=FreeBSD OS_ARCH=amd64
 
+netbsd64:
+	$(MAKE) native OS_NAME=NetBSD OS_ARCH=amd64
+
 # for cross-compilation on Ubuntu, install the g++-arm-linux-gnueabi package
 linux-arm:
 	$(MAKE) native CROSS_PREFIX=arm-linux-gnueabi- OS_NAME=Linux OS_ARCH=arm
