Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 336393 | Differences between
and this patch

Collapse All | Expand All

(-)libraw-0.9.1-pkg-config.patch (-16 / +12 lines)
Lines 1-5 Link Here
1
'diff --git a/Makefile b/Makefile
1
Ugly hack to include .pc file for both installed static archives for libraw.
2
index 51ba805..8e9dac2 100644
2
LIBDIR and VERSION can be patched in the ebuild. If libraw is built with lcms
3
support, lcms should be added to Requires and -llcms should be added to Libs.
4
If libraw is built with OpenMP support, -fopenmp should be added to Cflags and
5
 -lgopenmp should be added to Libs.
6
3
--- a/Makefile
7
--- a/Makefile
4
+++ b/Makefile
8
+++ b/Makefile
5
@@ -20,6 +20,7 @@ all_samples: bin/raw-identify bin/simple_dcraw  bin/dcraw_emu bin/dcraw_half bin
9
@@ -20,6 +20,7 @@ all_samples: bin/raw-identify bin/simple_dcraw  bin/dcraw_emu bin/dcraw_half bin
Lines 10-48 Link Here
10
 
14
 
11
 install-binaries: all_samples
15
 install-binaries: all_samples
12
 	@if [ -d /usr/local/bin ] ; then cp bin/[a-z]* /usr/local/bin/ ; else echo 'no /usr/local/bin' ; fi
16
 	@if [ -d /usr/local/bin ] ; then cp bin/[a-z]* /usr/local/bin/ ; else echo 'no /usr/local/bin' ; fi
13
diff --git a/libraw.pc b/libraw.pc
14
new file mode 100644
15
index 0000000..15ec862
16
--- /dev/null
17
--- /dev/null
17
+++ b/libraw.pc
18
+++ b/libraw.pc
18
@@ -0,0 +1,12 @@
19
@@ -0,0 +1,11 @@
19
+prefix=/usr
20
+prefix=/usr
20
+exec_prefix=${prefix}
21
+exec_prefix=${prefix}
21
+libdir=${exec_prefix}/lib
22
+libdir=${prefix}/LIBDIR
22
+includedir=${prefix}/include
23
+includedir=${prefix}/include
23
+
24
+
24
+Name: libraw
25
+Name: libraw
25
+Description: Raw image decoder library (non-thread-safe)
26
+Description: Raw image decoder library (non-thread-safe)
26
+Requires: 
27
+Requires: 
27
+Version: 0.9.1
28
+Version: VERSION
28
+Libs: -L${libdir} -lraw -lstdc++
29
+Libs: -L${libdir} -lraw -lstdc++
29
+Cflags: -I${includedir}/libraw
30
+Cflags: -I${includedir}/libraw
30
+
31
diff --git a/libraw_r.pc b/libraw_r.pc
32
new file mode 100644
33
index 0000000..b54242b
34
--- /dev/null
31
--- /dev/null
35
+++ b/libraw_r.pc
32
+++ b/libraw_r.pc
36
@@ -0,0 +1,12 @@
33
@@ -0,0 +1,11 @@
37
+prefix=/usr
34
+prefix=/usr
38
+exec_prefix=${prefix}
35
+exec_prefix=${prefix}
39
+libdir=${exec_prefix}/lib
36
+libdir=${prefix}/LIBDIR
40
+includedir=${prefix}/include
37
+includedir=${prefix}/include
41
+
38
+
42
+Name: libraw
39
+Name: libraw
43
+Description: Raw image decoder library (thread-safe)
40
+Description: Raw image decoder library (thread-safe)
44
+Requires: 
41
+Requires: 
45
+Version: 0.9.1
42
+Version: VERSION
46
+Libs: -L${libdir} -lraw_r -lstdc++
43
+Libs: -L${libdir} -lraw_r -lstdc++
47
+Cflags: -I${includedir}/libraw
44
+Cflags: -I${includedir}/libraw
48
+

Return to bug 336393