--- protobuf-c-old/Portfile	2009-05-31 20:01:58.000000000 -0400
+++ protobuf-c-new/Portfile	2009-05-31 20:01:13.000000000 -0400
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name		protobuf-c
-version		0.6
+version		0.10
 categories	devel
 maintainers	landonf
 description	Pure C code generator and runtime libraries for Protocol Buffers
@@ -20,13 +20,24 @@
 master_sites	googlecode:protobuf-c
 
 distname	${name}-${version}
-checksums   md5     638d7abd76c5f5242005553817045fcf \
-            sha1    fa523ddc2ce1ff4f18c88c9ab8b3197492cd0080 \
-            rmd160  790d047492d5ef1e1d9ea0f48aa92aa50afb48ad
+checksums   ${distname}${extract.suffix} \
+              md5     588006ea06a1a12855881362b8e29bff \
+              sha1    1878203fea6808ecf2825d9fb37b49f669e4b8cc \
+              rmd160  ac2a38fef1e5771db97e73eda86d8b70f6f978fb \
+            protobuf-c-issue-20.patch \
+              md5     90ebe50e1ab5aa7e41e8e4d422adecfa \
+              sha1    1c502543db44380d3f98dea7ccea3db5b63f1e36 \
+              rmd160  03efa891c7418c79b7f94a942869b6a6a7373d5a
 
 platforms	darwin
 
 depends_lib	port:protobuf-cpp
 
+depends_build   port:autoconf
+use_autoconf    yes
+patch_sites     http://www.dcreager.net/ports/protobuf-c/
+patchfiles      protobuf-c-issue-20.patch
+patch.pre_args  -p1
+
 test.run	yes
 test.target	check

