--- source/mupen64plus-core/projects/unix/Makefile	2011-12-17 20:37:23.000000000 -0500
+++ source/mupen64plus-core/projects/unix/Makefile	2011-12-17 20:39:06.000000000 -0500
@@ -170,8 +170,10 @@
 ifeq ($(shell pkg-config --modversion libpng 2>/dev/null),)
   $(error No libpng development libraries found!)
 endif
-ifeq ($(shell pkg-config --modversion zlib 2>/dev/null),)
-  $(error No zlib development libraries found!)
+ifneq ($(OS), FREEBSD)
+  ifeq ($(shell pkg-config --modversion zlib 2>/dev/null),)
+    $(error No zlib development libraries found!)
+  endif
 endif
 ifeq ($(shell pkg-config --modversion freetype2 2>/dev/null),)
   $(error No FreeType 2 development libraries found!)
@@ -182,8 +184,14 @@
 ifeq ($(shell pkg-config --modversion glu 2>/dev/null),)
   $(error No OpenGL utility development libraries found!)
 endif
+
+ifeq ($(OS), FREEBSD)
+CFLAGS += $(shell pkg-config --cflags libpng freetype2 gl glu)
+LDLIBS +=  $(shell pkg-config --libs libpng freetype2 gl glu)
+else
 CFLAGS += $(shell pkg-config --cflags libpng zlib freetype2 gl glu)
 LDLIBS +=  $(shell pkg-config --libs libpng zlib freetype2 gl glu)
+endif
 
 # test for presence of SDL
 ifeq ($(shell which sdl-config 2>/dev/null),)
