Blame SOURCES/gphoto2-pkgcfg.patch

2c4415
--- libgphoto2-2.4.1/gphoto2-config.in.pkgcfg	2007-07-27 02:36:23.000000000 +0200
2c4415
+++ libgphoto2-2.4.1/gphoto2-config.in	2007-07-31 12:21:14.000000000 +0200
2c4415
@@ -1,11 +1,5 @@
2c4415
 #! /bin/sh
2c4415
 
2c4415
-# leave these definitions here
2c4415
-# they are required for correct interpolation of
2c4415
-# @libdir@ and @includedir@ later on
2c4415
-prefix="@prefix@"
2c4415
-exec_prefix="@exec_prefix@"
2c4415
-
2c4415
 usage()
2c4415
 {
2c4415
     cat <
2c4415
@@ -13,7 +7,7 @@ Usage: gphoto2-config [OPTION]
2c4415
 
2c4415
 Known values for OPTION are:
2c4415
 
2c4415
-  --prefix=DIR		change libgphoto2 prefix [default ${prefix}]
2c4415
+  --prefix		print libgphoto2 prefix
2c4415
   --libs		print library linking information
2c4415
   --cflags		print pre-processor and compiler flags
2c4415
   --help		display this help and exit
2c4415
@@ -55,11 +49,11 @@ while test $# -gt 0; do
2c4415
 	;;
2c4415
 
2c4415
     --cflags)
2c4415
-       	echo "-I@includedir@/gphoto2"
2c4415
+       	pkg-config --cflags libgphoto2
2c4415
        	;;
2c4415
 
2c4415
     --libs)
2c4415
-        echo "-L@libdir@" -lgphoto2 -lgphoto2_port -lm
2c4415
+        pkg-config --libs libgphoto2
2c4415
        	;;
2c4415
 
2c4415
     *)
2c4415
--- libgphoto2-2.4.1/libgphoto2_port/gphoto2-port-config.in.pkgcfg	2007-07-27 02:36:16.000000000 +0200
2c4415
+++ libgphoto2-2.4.1/libgphoto2_port/gphoto2-port-config.in	2007-07-31 12:21:14.000000000 +0200
2c4415
@@ -1,11 +1,5 @@
2c4415
 #! /bin/sh
2c4415
 
2c4415
-# leave these definitions here
2c4415
-# they are required for correct interpolation of
2c4415
-# @libdir@ and @includedir@ later on
2c4415
-prefix="@prefix@"
2c4415
-exec_prefix="@exec_prefix@"
2c4415
-
2c4415
 usage()
2c4415
 {
2c4415
     cat <
2c4415
@@ -13,7 +7,7 @@ Usage: gphoto2-port-config [OPTION]
2c4415
 
2c4415
 Known values for OPTION are:
2c4415
 
2c4415
-  --prefix=DIR		change libgphoto2-port prefix [default ${prefix}]
2c4415
+  --prefix		print libgphoto2-port prefix
2c4415
   --libs		print library linking information
2c4415
   --cflags		print pre-processor and compiler flags
2c4415
   --help		display this help and exit
2c4415
@@ -55,11 +49,11 @@ while test $# -gt 0; do
2c4415
 	;;
2c4415
 
2c4415
     --cflags)
2c4415
-       	echo "-I@includedir@/gphoto2"
2c4415
+       	pkg-config --cflags libgphoto2_port
2c4415
        	;;
2c4415
 
2c4415
     --libs)
2c4415
-       	echo "-L@libdir@" -lgphoto2_port
2c4415
+       	pkg-config --libs libgphoto2_port
2c4415
        	;;
2c4415
 
2c4415
     *)