2020-07-21 20:51:12 +00:00
|
|
|
--- CMakeLists.txt.orig 2020-07-21 20:59:55.982026645 +0200
|
|
|
|
+++ CMakeLists.txt 2020-07-21 21:01:25.444836112 +0200
|
|
|
|
@@ -80,24 +80,6 @@
|
2020-05-25 18:30:53 +00:00
|
|
|
|
|
|
|
include (ExternalProject)
|
|
|
|
|
|
|
|
-
|
|
|
|
-#
|
|
|
|
-# build and install hamlib locally so it can be referenced by the
|
|
|
|
-# WSJT-X build
|
|
|
|
-#
|
|
|
|
-ExternalProject_Add (hamlib
|
|
|
|
- GIT_REPOSITORY ${hamlib_repo}
|
|
|
|
- GIT_TAG ${hamlib_TAG}
|
2020-07-21 20:51:12 +00:00
|
|
|
- URL ${CMAKE_CURRENT_SOURCE_DIR}/src/${__hamlib_upstream}
|
2020-05-25 18:30:53 +00:00
|
|
|
- URL_HASH MD5=${hamlib_md5sum}
|
2020-07-21 20:51:12 +00:00
|
|
|
- #UPDATE_COMMAND ${CMAKE_COMMAND} -E env "[ -f ./bootstrap ] && ./bootstrap"
|
2020-05-25 18:30:53 +00:00
|
|
|
- PATCH_COMMAND ${PATCH_EXECUTABLE} -p1 -N < ${CMAKE_CURRENT_SOURCE_DIR}/hamlib.patch
|
|
|
|
- CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --disable-shared --enable-static --without-cxx-binding ${EXTRA_FLAGS} # LIBUSB_LIBS=${USB_LIBRARY}
|
|
|
|
- BUILD_COMMAND $(MAKE) all V=1 # $(MAKE) is ExternalProject_Add() magic to do recursive make
|
|
|
|
- INSTALL_COMMAND $(MAKE) install-strip V=1 DESTDIR=""
|
|
|
|
- STEP_TARGETS update install
|
|
|
|
- )
|
|
|
|
-
|
|
|
|
#
|
|
|
|
# custom target to make a hamlib source tarball
|
|
|
|
#
|
2020-07-21 20:51:12 +00:00
|
|
|
@@ -136,7 +118,6 @@
|
2020-05-25 18:30:53 +00:00
|
|
|
# build and optionally install WSJT-X using the hamlib package built
|
|
|
|
# above
|
|
|
|
#
|
|
|
|
-ExternalProject_Get_Property (hamlib INSTALL_DIR)
|
|
|
|
ExternalProject_Add (wsjtx
|
|
|
|
GIT_REPOSITORY ${wsjtx_repo}
|
|
|
|
GIT_TAG ${WSJTX_TAG}
|
2020-07-21 20:51:12 +00:00
|
|
|
@@ -160,7 +141,6 @@
|
2020-05-25 18:30:53 +00:00
|
|
|
DEPENDEES build
|
|
|
|
)
|
|
|
|
|
|
|
|
-set_target_properties (hamlib PROPERTIES EXCLUDE_FROM_ALL 1)
|
|
|
|
set_target_properties (wsjtx PROPERTIES EXCLUDE_FROM_ALL 1)
|
|
|
|
|
|
|
|
add_dependencies (wsjtx-configure hamlib-install)
|