$OpenBSD: patch-jdk_make_sun_font_Makefile,v 1.2 2009/01/04 23:25:16 kurt Exp $
--- jdk/make/sun/font/Makefile.orig	Thu Sep 11 03:44:07 2008
+++ jdk/make/sun/font/Makefile	Fri Sep 12 17:05:56 2008
@@ -170,6 +170,10 @@ else # PLATFORM
 # Libraries to link, and other C flags.
 #
 
+ifeq ($(PLATFORM), bsd)
+OTHER_INCLUDES += -I/usr/X11R6/include
+OTHER_LDLIBS  += -lawt $(LIBM) $(LIBCXX)
+else
 ifeq ($(PLATFORM), solaris)
   # Note that on Solaris, fontmanager is built against the headless library.
   LDFLAGS      += -L$(LIBDIR)/$(LIBARCH)/headless
@@ -179,6 +183,7 @@ else # PLATFORM is linux
   ifeq ("$(CC_VER_MAJOR)", "3")
     OTHER_LDLIBS  += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic
   endif                           
+endif
 endif
 
 endif # PLATFORM
