File: 0001-Fix-pkg-config-file.patch

package info (click to toggle)
seafile 9.0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,180 kB
  • sloc: ansic: 44,521; python: 6,601; sh: 272; makefile: 268; cpp: 93
file content (45 lines) | stat: -rw-r--r-- 1,294 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From: Moritz Schlarb <schlarbm@uni-mainz.de>
Date: Wed, 20 Nov 2019 14:19:27 +0100
Subject: Fix pkg-config file

Wrong paths are given and Requires isn't correctly used.
---
 lib/Makefile.am      | 7 -------
 lib/libseafile.pc.in | 8 ++++----
 2 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/lib/Makefile.am b/lib/Makefile.am
index 5e30b0d..9afaf7b 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -73,10 +73,3 @@ ${seafile_object_gen}: vala.stamp
 
 clean-local:
 	rm -f vala.tmp vala.stamp ${valac_gen}
-
-install-data-local:
-if MACOS
-	sed -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
-else
-	${SED} -i "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
-endif
diff --git a/lib/libseafile.pc.in b/lib/libseafile.pc.in
index a2ff002..e37782e 100644
--- a/lib/libseafile.pc.in
+++ b/lib/libseafile.pc.in
@@ -1,4 +1,4 @@
-prefix=(DESTDIR)@prefix@
+prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
 includedir=@includedir@
@@ -6,6 +6,6 @@ includedir=@includedir@
 Name: libseafile
 Description: Client library for accessing seafile service.
 Version: @VERSION@
-Libs: -L${libdir} -lseafile @SEARPC_LIBS@
-Cflags: -I${includedir} @SEARPC_CFLAGS@
-Requires: gobject-2.0 glib-2.0
+Libs: -L${libdir} -lseafile
+Cflags: -I${includedir}
+Requires: gobject-2.0 glib-2.0 libsearpc