From 691f4e7a8576bab5f714af3e0a84a99fbb3a6735 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 26 Jan 2019 08:56:27 -0200 Subject: [PATCH] obexftp: first steps to fixing cross --- srcpkgs/obexftp/patches/fix-cross.patch | 29 +++++++++++++++++++++++++ srcpkgs/obexftp/template | 4 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/obexftp/patches/fix-cross.patch diff --git a/srcpkgs/obexftp/patches/fix-cross.patch b/srcpkgs/obexftp/patches/fix-cross.patch new file mode 100644 index 00000000000..6f28fd9450a --- /dev/null +++ b/srcpkgs/obexftp/patches/fix-cross.patch @@ -0,0 +1,29 @@ +diff --git a/bfb/CMakeLists.txt b/bfb/CMakeLists.txt +index 008241d..be233aa 100644 +--- bfb/CMakeLists.txt ++++ bfb/CMakeLists.txt +@@ -16,14 +16,17 @@ set ( bfb_HEADERS + ${bfb_PUBLIC_HEADERS} + ) + +-add_executable (crctable +- crcmodel.h +- crcmodel.c +- crctable.c ++add_custom_command( ++ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/crctable ++ COMMAND cc ++ ARGS -o ${CMAKE_CURRENT_BINARY_DIR}/crctable ${CMAKE_SOURCE_DIR}/bfb/crcmodel.h ${CMAKE_SOURCE_DIR}/bfb/crcmodel.c ${CMAKE_SOURCE_DIR}/bfb/crctable.c ++ DEPENDS crcmodel.h crcmodel.c crctable.c + ) + +-add_custom_command ( OUTPUT irda_fcs_table.c +- COMMAND crctable ++add_custom_command ( ++ OUTPUT irda_fcs_table.c ++ DEPENDS crctable ++ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/crctable + ) + + add_library ( bfb + diff --git a/srcpkgs/obexftp/template b/srcpkgs/obexftp/template index b615cdd6332..c1996812f69 100644 --- a/srcpkgs/obexftp/template +++ b/srcpkgs/obexftp/template @@ -2,7 +2,7 @@ pkgname=obexftp version=0.24.2 revision=2 -wrksrc=${pkgname}-${version}-Source +wrksrc="${pkgname}-${version}-Source" build_style=cmake hostmakedepends="pkg-config" makedepends="openobex-devel fuse-devel libbluetooth-devel expat-devel" @@ -13,7 +13,7 @@ homepage="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp" distfiles="${SOURCEFORGE_SITE}/openobex/${pkgname}-${version}-Source.tar.gz" checksum=d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3 -nocross="crctable needs to be built for the host" +nocross="undefined reference to 'cobex_ctrans'" post_install() { # Do not require 'bluetooth', does not exist.