
$FreeBSD: ports/devel/ORBit/files/patch-ad,v 1.6 2002/01/22 12:30:11 sobomax Exp $

--- orbit-config.in.orig	Wed Sep 19 20:09:00 2001
+++ orbit-config.in	Tue Jan 22 14:27:19 2002
@@ -28,8 +28,8 @@
 
 Known values for TARGET are:
 
-    client		(calls glib-config)
-    server		(calls glib-config)
+    client		(calls @GLIB_CONFIG@)
+    server		(calls @GLIB_CONFIG@)
 EOF
 
     exit $1
@@ -87,10 +87,10 @@
        	;;
 
     client|server)
-	the_libs="$the_libs -L$libdir -lORBit -lIIOP -lORBitutil `glib-config --libs` @LIBS@ -lm"
-        the_flags="$the_flags `glib-config --cflags` "
+	the_libs="$the_libs -L$libdir -lORBit -lIIOP -lORBitutil `@GLIB_CONFIG@ --libs` @LIBS@ @LIB_WRAP@ -lm"
+        the_flags="$the_flags `@GLIB_CONFIG@ --cflags` "
         test "x$includedir" = "x/usr/include" \
-          || the_flags="$the_flags -I$includedir "
+          || the_flags="$the_flags -I$includedir -I@includedir@"
 	;;
 
    --use-service=*)
