libwebp: enable extra features
Requested in https://github.com/termux/termux-packages/issues/4443.
This commit is contained in:
parent
8686ebdb7e
commit
37e7882cb4
@ -1,25 +0,0 @@
|
||||
diff -u -r ../libwebp-1.0.3/CMakeLists.txt ./CMakeLists.txt
|
||||
--- ../libwebp-1.0.3/CMakeLists.txt 2019-07-04 19:32:37.000000000 +0000
|
||||
+++ ./CMakeLists.txt 2019-07-14 17:21:56.050221574 +0000
|
||||
@@ -75,20 +75,7 @@
|
||||
|
||||
# ##############################################################################
|
||||
# Android only.
|
||||
-if(ANDROID)
|
||||
- include_directories(${ANDROID_NDK}/sources/android/cpufeatures)
|
||||
- add_library(cpufeatures STATIC
|
||||
- ${ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c)
|
||||
- list(APPEND INSTALLED_LIBRARIES cpufeatures)
|
||||
- target_link_libraries(cpufeatures dl)
|
||||
- set(WEBP_DEP_LIBRARIES ${WEBP_DEP_LIBRARIES} cpufeatures)
|
||||
- set(WEBP_DEP_INCLUDE_DIRS ${WEBP_DEP_INCLUDE_DIRS}
|
||||
- ${ANDROID_NDK}/sources/android/cpufeatures)
|
||||
- add_definitions(-DHAVE_CPU_FEATURES_H=1)
|
||||
- set(HAVE_CPU_FEATURES_H 1)
|
||||
-else()
|
||||
- set(HAVE_CPU_FEATURES_H 0)
|
||||
-endif()
|
||||
+set(HAVE_CPU_FEATURES_H 0)
|
||||
|
||||
function(configure_pkg_config FILE)
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${FILE}.in"
|
@ -2,17 +2,22 @@ TERMUX_PKG_HOMEPAGE=https://github.com/webmproject/libwebp
|
||||
TERMUX_PKG_DESCRIPTION="Library to encode and decode images in WebP format"
|
||||
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
||||
TERMUX_PKG_VERSION=1.0.3
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_SRCURL=https://github.com/webmproject/libwebp/archive/v$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=082d114bcb18a0e2aafc3148d43367c39304f86bf18ba0b2e766447e111a4a91
|
||||
TERMUX_PKG_DEPENDS="giflib, libjpeg-turbo, libpng, libtiff"
|
||||
TERMUX_PKG_BREAKS="libwebp-dev"
|
||||
TERMUX_PKG_REPLACES="libwebp-dev"
|
||||
TERMUX_PKG_SRCURL=https://github.com/webmproject/libwebp/archive/v$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--disable-gif
|
||||
--disable-jpeg
|
||||
--disable-libwebpdemux
|
||||
--disable-png
|
||||
--disable-tiff
|
||||
--enable-libwebpmux
|
||||
--enable-libwebpdemux
|
||||
--enable-libwebpdecoder
|
||||
--enable-libwebpextras
|
||||
--enable-swap-16bit-csp
|
||||
--enable-gif
|
||||
--enable-jpeg
|
||||
--enable-png
|
||||
--enable-tiff
|
||||
--disable-wic
|
||||
"
|
||||
TERMUX_PKG_RM_AFTER_INSTALL="share/man/man1"
|
||||
|
Loading…
Reference in New Issue
Block a user