obexftp: first steps to fixing cross
This commit is contained in:
parent
b2a911d82d
commit
691f4e7a85
29
srcpkgs/obexftp/patches/fix-cross.patch
Normal file
29
srcpkgs/obexftp/patches/fix-cross.patch
Normal file
@ -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
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
pkgname=obexftp
|
pkgname=obexftp
|
||||||
version=0.24.2
|
version=0.24.2
|
||||||
revision=2
|
revision=2
|
||||||
wrksrc=${pkgname}-${version}-Source
|
wrksrc="${pkgname}-${version}-Source"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="openobex-devel fuse-devel libbluetooth-devel expat-devel"
|
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"
|
distfiles="${SOURCEFORGE_SITE}/openobex/${pkgname}-${version}-Source.tar.gz"
|
||||||
checksum=d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3
|
checksum=d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3
|
||||||
|
|
||||||
nocross="crctable needs to be built for the host"
|
nocross="undefined reference to 'cobex_ctrans'"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# Do not require 'bluetooth', does not exist.
|
# Do not require 'bluetooth', does not exist.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user