Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
Fix static only build
|
||||
|
||||
Make sure to build the shared library only if BUILD_SHARED_LIBS is
|
||||
ON. Normally, CMake takes care of this automatically, but libcuefile
|
||||
wants to build both the shared and static variants, so the normal
|
||||
logic of CMake doesn't apply.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/src/CMakeLists.txt
|
||||
===================================================================
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -4,7 +4,11 @@
|
||||
add_library(cuefile-static STATIC cd cdtext cue_parse cue_print cue_scan cuefile time toc toc_parse toc_print toc_scan)
|
||||
set_target_properties(cuefile-static PROPERTIES OUTPUT_NAME cuefile CLEAN_DIRECT_OUTPUT 1)
|
||||
|
||||
+if (BUILD_SHARED_LIBS)
|
||||
add_library(cuefile-shared SHARED cd cdtext cue_parse cue_print cue_scan cuefile time toc toc_parse toc_print toc_scan)
|
||||
set_target_properties(cuefile-shared PROPERTIES OUTPUT_NAME cuefile CLEAN_DIRECT_OUTPUT 1 VERSION 0.0.0 SOVERSION 0)
|
||||
|
||||
install(TARGETS cuefile-static cuefile-shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
|
||||
+else (BUILD_SHARED_LIBS)
|
||||
+install(TARGETS cuefile-static LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}")
|
||||
+endif (BUILD_SHARED_LIBS)
|
||||
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_LIBCUEFILE
|
||||
bool "libcuefile"
|
||||
help
|
||||
Cue File library from Musepack
|
||||
|
||||
http://www.musepack.net/
|
||||
@@ -0,0 +1,4 @@
|
||||
# From https://www.musepack.net/index.php?pg=src
|
||||
md5 1a6ac52e1080fd54f0f59372345f1e4e libcuefile_r475.tar.gz
|
||||
# Calculated based on the hash above
|
||||
sha256 b681ca6772b3f64010d24de57361faecf426ee6182f5969fcf29b3f649133fe7 libcuefile_r475.tar.gz
|
||||
@@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
#
|
||||
# libcuefile
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCUEFILE_VERSION = r475
|
||||
LIBCUEFILE_SITE = http://files.musepack.net/source
|
||||
LIBCUEFILE_SOURCE = libcuefile_$(LIBCUEFILE_VERSION).tar.gz
|
||||
LIBCUEFILE_INSTALL_STAGING = YES
|
||||
LIBCUEFILE_LICENSE = GPLv2+
|
||||
LIBCUEFILE_LICENSE_FILES = COPYING
|
||||
|
||||
define LIBCUEFILE_INSTALL_STAGING_INCLUDES
|
||||
cp -r $(@D)/include $(STAGING_DIR)/usr
|
||||
endef
|
||||
|
||||
define LIBCUEFILE_INSTALL_TARGET_INCLUDES
|
||||
cp -r $(@D)/include $(TARGET_DIR)/usr
|
||||
endef
|
||||
|
||||
LIBCUEFILE_POST_INSTALL_STAGING_HOOKS += LIBCUEFILE_INSTALL_STAGING_INCLUDES
|
||||
LIBCUEFILE_POST_INSTALL_TARGET_HOOKS += LIBCUEFILE_INSTALL_TARGET_INCLUDES
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user