Files
buildroot/package/lensfun/lensfun.mk
Bernd Kuhls e16546abbc package/lensfun: bump version to git commit 268821c024
Last release dates back to Jul 2023 with >3000 commits since then:
https://github.com/lensfun/lensfun/issues/2634

Removed patch which is included in this version.

Renamed CMake option PYTHON to INSTALL_PYTHON_MODULE:
Upstream renamed PYTHON to PYTHONINTERP_FOUND with commit
824b9d36c1
and later guarded the python code with a new CMake option
INSTALL_PYTHON_MODULE which we now use.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-05-31 16:04:04 +02:00

50 lines
1.3 KiB
Makefile

################################################################################
#
# lensfun
#
################################################################################
LENSFUN_VERSION = 268821c02495c0ffff8332417f0d59bdbefa545d
LENSFUN_SITE = $(call github,lensfun,lensfun,$(LENSFUN_VERSION))
LENSFUN_LICENSE = LGPL-3.0+ (libraries), GPL-3.0+ (programs)
LENSFUN_LICENSE_FILES = docs/gpl-3.0.txt docs/lgpl-3.0.txt
LENSFUN_INSTALL_STAGING = YES
LENSFUN_DEPENDENCIES = libglib2
# lensfun doesn't support in source build, it fail to build lensfun tools.
LENSFUN_SUPPORTS_IN_SOURCE_BUILD = NO
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
LENSFUN_CONF_OPTS += -DBUILD_FOR_SSE=ON
else
LENSFUN_CONF_OPTS += -DBUILD_FOR_SSE=OFF
endif
ifeq ($(BR2_X86_CPU_HAS_SSE2),y)
LENSFUN_CONF_OPTS += -DBUILD_FOR_SSE2=ON
else
LENSFUN_CONF_OPTS += -DBUILD_FOR_SSE2=OFF
endif
ifeq ($(BR2_PACKAGE_LENSFUN_TOOLS),y)
LENSFUN_DEPENDENCIES += libpng
LENSFUN_CONF_OPTS += -DBUILD_LENSTOOL=ON
# broken
else
LENSFUN_CONF_OPTS += -DBUILD_LENSTOOL=OFF
endif
ifeq ($(BR2_STATIC_LIBS),y)
LENSFUN_CONF_OPTS += -DBUILD_STATIC=ON
else
LENSFUN_CONF_OPTS += -DBUILD_STATIC=OFF
endif
# Don't install helper scripts (which require python3 and gksudo).
# Don't run setup.py on the host.
LENSFUN_CONF_OPTS += \
-DINSTALL_HELPER_SCRIPTS=OFF \
-DINSTALL_PYTHON_MODULE=OFF
$(eval $(cmake-package))