There's a problem with wavpack.pc: $ pkg-config --libs wavpack -L/lib -lwavpack
Note that -L/lib should be (something like) -L/usr/local/lib. The diff below contains a fix from upstream. Index: Makefile =================================================================== RCS file: /cvs/ports/audio/wavpack/Makefile,v retrieving revision 1.14 diff -p -u -r1.14 Makefile --- Makefile 7 Apr 2014 14:35:00 -0000 1.14 +++ Makefile 19 May 2014 13:54:35 -0000 @@ -3,6 +3,7 @@ COMMENT = audio codec for lossless, lossy and hybrid compression DISTNAME = wavpack-4.70.0 +REVISION = 0 CATEGORIES = audio HOMEPAGE = http://www.wavpack.com/ Index: patches/patch-wavpack_pc_in =================================================================== RCS file: patches/patch-wavpack_pc_in diff -N patches/patch-wavpack_pc_in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-wavpack_pc_in 19 May 2014 13:54:35 -0000 @@ -0,0 +1,18 @@ +$OpenBSD$ + +Fix output of "pkg-config --libs wavpack". + +http://sourceforge.net/p/wavpack/mailman/message/31954297/ +https://github.com/dbry/WavPack/commit/779a2e62783acc6a46f75dd89359e95079ef708a + +--- wavpack.pc.in.orig Sun Sep 29 23:30:14 2013 ++++ wavpack.pc.in Mon May 19 02:16:06 2014 +@@ -1,6 +1,7 @@ + prefix=@prefix@ ++exec_prefix=@exec_prefix@ + libdir=@libdir@ +-includedir=${prefix}/include ++includedir=@includedir@ + + Name: wavpack + Description: wavpack library
