Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kodi: cleanup patches #1091

Merged
merged 3 commits into from
Jan 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/audio/pulseaudio/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-silent-rules \
--disable-esound \
--disable-solaris \
--disable-waveout \
--disable-glib2 \
--enable-glib2 \
--disable-gtk3 \
--disable-gconf \
$PULSEAUDIO_AVAHI \
Expand Down
2 changes: 1 addition & 1 deletion packages/mediacenter/kodi/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
################################################################################

PKG_NAME="kodi"
PKG_VERSION="5c40b5c"
PKG_VERSION="4d93228"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
diff -Naur a/project/cmake/modules/FindSmbClient.cmake b/project/cmake/modules/FindSmbClient.cmake
--- a/project/cmake/modules/FindSmbClient.cmake 2016-09-17 08:35:33.000000000 -0700
+++ b/project/cmake/modules/FindSmbClient.cmake 2016-09-25 13:38:38.969125892 -0700
diff --git a/project/cmake/modules/FindSmbClient.cmake b/project/cmake/modules/FindSmbClient.cmake
index 6455cce..379d79c 100644
--- a/project/cmake/modules/FindSmbClient.cmake
+++ b/project/cmake/modules/FindSmbClient.cmake
@@ -14,7 +14,7 @@
#
# SmbClient::SmbClient - The SmbClient library
Expand All @@ -10,40 +11,24 @@ diff -Naur a/project/cmake/modules/FindSmbClient.cmake b/project/cmake/modules/F
pkg_check_modules(PC_SMBCLIENT smbclient QUIET)
endif()

@@ -23,15 +23,35 @@
find_library(SMBCLIENT_LIBRARY NAMES smbclient
PATHS ${PC_SMBCLIENT_LIBDIR})

+# check if smbclient libs are statically linked
+set(SMBCLIENT_LIB_TYPE SHARED)
+if(PC_SMBCLIENT_STATIC_LDFLAGS)
+ set(SMBCLIENT_LDFLAGS ${PC_SMBCLIENT_STATIC_LDFLAGS} CACHE STRING "smbclient linker flags" FORCE)
+ set(SMBCLIENT_LIB_TYPE STATIC)
+# string(REGEX REPLACE ";" " " SMBCLIENT_STATIC_LIBRARIES ${PC_SMBCLIENTS_STATIC_LIBRARIES})
+# foreach(_smblib IN LISTS ${SMBCLIENT_STATIC_LIBRARIES})
+# string(TOUPPER ${_smblib}_LIBRARY SMBCLIENT_STATIC_LIBRARIES)
+# find_library(${SMBCLIENT_STATIC_LIBRARIES} ${_smblib})
+# endforeach()
+
+ find_library(TALLOC_LIBRARY talloc)
+ find_library(TDB_LIBRARY tdb)
+ find_library(TEVENT_LIBRARY tevent)
+ find_library(WBCLIENT_LIBRARY wbclient)
+ find_library(RESOLV_LIBRARY resolv)
+
+endif()
+
set(SMBCLIENT_VERSION ${PC_SMBCLIENT_VERSION})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SmbClient
REQUIRED_VARS SMBCLIENT_LIBRARY SMBCLIENT_INCLUDE_DIR
+ TALLOC_LIBRARY TDB_LIBRARY TEVENT_LIBRARY WBCLIENT_LIBRARY RESOLV_LIBRARY
@@ -31,7 +31,19 @@ find_package_handle_standard_args(SmbClient
VERSION_VAR SMBCLIENT_VERSION)

if(SMBCLIENT_FOUND)
- set(SMBCLIENT_LIBRARIES ${SMBCLIENT_LIBRARY})
+ set(SMBCLIENT_LIBRARIES ${SMBCLIENT_LIBRARY} ${TALLOC_LIBRARY} ${TDB_LIBRARY} ${TEVENT_LIBRARY} ${WBCLIENT_LIBRARY} ${RESOLV_LIBRARY})
+ # check if smbclient libs are statically linked
+ set(SMBCLIENT_LIB_TYPE SHARED)
+ if(PC_SMBCLIENT_STATIC_LDFLAGS)
+ set(SMBCLIENT_LDFLAGS ${PC_SMBCLIENT_STATIC_LDFLAGS} CACHE STRING "smbclient linker flags" FORCE)
+ set(SMBCLIENT_LIB_TYPE STATIC)
+ find_library(TALLOC_LIBRARY talloc)
+ find_library(TDB_LIBRARY tdb)
+ find_library(TEVENT_LIBRARY tevent)
+ find_library(WBCLIENT_LIBRARY wbclient)
+ find_library(RESOLV_LIBRARY resolv)
+ set(SMBCLIENT_LIBRARIES ${SMBCLIENT_LIBRARY} ${TALLOC_LIBRARY} ${TDB_LIBRARY} ${TEVENT_LIBRARY} ${WBCLIENT_LIBRARY} ${RESOLV_LIBRARY})
+ endif()
+
set(SMBCLIENT_INCLUDE_DIRS ${SMBCLIENT_INCLUDE_DIR})
set(SMBCLIENT_DEFINITIONS -DHAVE_LIBSMBCLIENT=1)

This file was deleted.

This file was deleted.