File: pkg-config.patch

package info (click to toggle)
libs3 2.0-5
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 872 kB
  • sloc: ansic: 6,950; xml: 227; sh: 109; makefile: 12
file content (31 lines) | stat: -rw-r--r-- 837 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
Description: Use pkg-config to detect libxml2
Author: Hugh McMaster
Bug-Debian: https://bugs.debian.org/949410
Forwarded: not-needed
Last-Update: 2022-03-16

--- libs3-2.0.orig/GNUmakefile
+++ libs3-2.0/GNUmakefile
@@ -95,6 +95,8 @@ endif
 # --------------------------------------------------------------------------
 # Acquire configuration information for libraries that libs3 depends upon
 
+PKG_CONFIG ?= pkg-config
+
 ifndef CURL_LIBS
     CURL_LIBS := $(shell curl-config --libs)
 endif
@@ -104,11 +106,11 @@ ifndef CURL_CFLAGS
 endif
 
 ifndef LIBXML2_LIBS
-    LIBXML2_LIBS := $(shell xml2-config --libs)
+    LIBXML2_LIBS := $(shell $(PKG_CONFIG) --libs libxml-2.0)
 endif
 
 ifndef LIBXML2_CFLAGS
-    LIBXML2_CFLAGS := $(shell xml2-config --cflags)
+    LIBXML2_CFLAGS := $(shell $(PKG_CONFIG) --cflags libxml-2.0)
 endif