pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

uTox-git: Add a build-fixing patch



Module Name:	pkgsrc-wip
Committed By:	Mateusz Poszwa <old4%o2.pl@localhost>
Pushed By:	f8l
Date:		Sun Sep 17 14:11:55 2017 +0200
Changeset:	7ba9b97aa461c4a723488caf0e4f7b9cc36bd823

Modified Files:
	uTox-git/Makefile
	uTox-git/distinfo
Added Files:
	uTox-git/patches/patch-CMakeLists.txt

Log Message:
uTox-git: Add a build-fixing patch

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7ba9b97aa461c4a723488caf0e4f7b9cc36bd823

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 uTox-git/Makefile                     |  2 +-
 uTox-git/distinfo                     |  1 +
 uTox-git/patches/patch-CMakeLists.txt | 46 +++++++++++++++++++++++++++++++++++
 3 files changed, 48 insertions(+), 1 deletion(-)

diffs:
diff --git a/uTox-git/Makefile b/uTox-git/Makefile
index 439fc131c0..f1b18bd37b 100644
--- a/uTox-git/Makefile
+++ b/uTox-git/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	uTox-0.15.0
+DISTNAME=	uTox-0.16.1
 CATEGORIES=	chat
 MASTER_SITES=	${MASTER_SITE_GITHUB:=uTox/}
 
diff --git a/uTox-git/distinfo b/uTox-git/distinfo
index afc76512f4..68f473e7a5 100644
--- a/uTox-git/distinfo
+++ b/uTox-git/distinfo
@@ -1,2 +1,3 @@
 $NetBSD$
 
+SHA1 (patch-CMakeLists.txt) = a8a44c133c8ba2be5ac4b595540a0460c1a98ee0
diff --git a/uTox-git/patches/patch-CMakeLists.txt b/uTox-git/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..92ed239580
--- /dev/null
+++ b/uTox-git/patches/patch-CMakeLists.txt
@@ -0,0 +1,46 @@
+$NetBSD$
+
+Don't look for all Toxcore libs by default.
+See: https://github.com/uTox/uTox/pull/1056
+
+--- CMakeLists.txt.orig	2017-09-17 11:43:11.834820157 +0000
++++ CMakeLists.txt
+@@ -262,18 +262,26 @@ if(ENABLE_AUTOUPDATE)
+     add_cflag("-DENABLE_AUTOUPDATE=1")
+ endif()
+ 
+-find_package(libtox REQUIRED COMPONENTS
+-    toxencryptsave
+-    toxav
+-    toxcore
+-    toxgroup
+-    toxmessenger
+-    toxfriends
+-    toxdht
+-    toxnetcrypto
+-    toxcrypto
+-    toxnetwork
+-)
++if(TOXCORE_STATIC)
++    find_package(libtox REQUIRED COMPONENTS
++        toxencryptsave
++        toxav
++        toxcore
++        toxgroup
++        toxmessenger
++        toxfriends
++        toxdht
++        toxnetcrypto
++        toxcrypto
++        toxnetwork
++    )
++else()
++    find_package(libtox REQUIRED COMPONENTS
++        toxencryptsave
++        toxav
++        toxcore
++    )
++endif()
+ 
+ include_directories(${LIBTOX_INCLUDE_DIRS})
+ 


Home | Main Index | Thread Index | Old Index