unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 23794e8d77432a37e6193ec422d3fb736573a2a8 1643 bytes (raw)
name: gnu/packages/patches/libtgvoip-pkgconfig.patch 	 # note: path name is non-authoritative(*)

 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
 
From 4ce5e22ed2dc24e9211c4874c1dd6b05faad2a87 Mon Sep 17 00:00:00 2001
From: Ilya Fedin <fedin-ilja2010@ya.ru>
Date: Sun, 5 Jan 2020 12:25:31 +0400
Subject: [PATCH] Add support for pkg-config

---
 Makefile.am  |  2 ++
 configure.ac |  4 +++-
 tgvoip.pc.in | 10 ++++++++++
 3 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 tgvoip.pc.in

diff --git a/Makefile.am b/Makefile.am
index 03c8866..a9c9715 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -755,6 +755,8 @@ libtgvoip_la_SOURCES = $(SRC) $(TGVOIP_HDRS)
 tgvoipincludedir = $(includedir)/tgvoip
 nobase_tgvoipinclude_HEADERS = $(TGVOIP_HDRS)
 
+pkgconfig_DATA = tgvoip.pc
+
 CXXFLAGS += -std=gnu++0x $(CFLAGS)
 if TARGET_OS_OSX
 OBJCFLAGS = $(CFLAGS)
diff --git a/configure.ac b/configure.ac
index 222f541..e2df927 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,6 +9,8 @@ AM_INIT_AUTOMAKE([subdir-objects])
 AM_SILENT_RULES([yes])
 LT_INIT
 
+PKG_INSTALLDIR
+
 # Checks for programs.
 AC_PROG_CXX
 AC_PROG_CC
@@ -109,5 +111,5 @@ AC_FUNC_MALLOC
 AC_FUNC_REALLOC
 AC_CHECK_FUNCS([clock_gettime floor gettimeofday inet_ntoa memmove memset select socket sqrt strcasecmp strchr strerror strncasecmp strstr strtol strtoul uname])
 
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile tgvoip.pc])
 AC_OUTPUT
diff --git a/tgvoip.pc.in b/tgvoip.pc.in
new file mode 100644
index 0000000..1ca7758
--- /dev/null
+++ b/tgvoip.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: tgvoip
+Description: VoIP library for Telegram clients
+Version: 2.4.4
+Libs: -L${libdir} -ltgvoip
+Cflags: -I${includedir}/tgvoip

debug log:

solving 23794e8d77 ...
found 23794e8d77 in https://yhetil.org/guix-devel/5a6392cd-b478-846a-beda-4f97e46cbdd0@raghavgururajan.name/ ||
	https://yhetil.org/guix-devel/c97857f9-2a17-7007-fac0-d1b7f298daa4@raghavgururajan.name/ ||
	https://yhetil.org/guix-devel/671cd289-5c83-3673-34f9-8287ff7c30a8@raghavgururajan.name/

applying [1/1] https://yhetil.org/guix-devel/5a6392cd-b478-846a-beda-4f97e46cbdd0@raghavgururajan.name/
diff --git a/gnu/packages/patches/libtgvoip-pkgconfig.patch b/gnu/packages/patches/libtgvoip-pkgconfig.patch
new file mode 100644
index 0000000000..23794e8d77

1:26: trailing whitespace.
 
1:39: trailing whitespace.
 
1:48: trailing whitespace.
 
Checking patch gnu/packages/patches/libtgvoip-pkgconfig.patch...
Applied patch gnu/packages/patches/libtgvoip-pkgconfig.patch cleanly.
warning: 3 lines add whitespace errors.

skipping https://yhetil.org/guix-devel/c97857f9-2a17-7007-fac0-d1b7f298daa4@raghavgururajan.name/ for 23794e8d77
skipping https://yhetil.org/guix-devel/671cd289-5c83-3673-34f9-8287ff7c30a8@raghavgururajan.name/ for 23794e8d77
index at:
100644 23794e8d77432a37e6193ec422d3fb736573a2a8	gnu/packages/patches/libtgvoip-pkgconfig.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).