head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2022.07.23.09.32.50; author wiz; state dead; branches; next 1.1; commitid ZgAJaa67suyG80ND; 1.1 date 2022.07.22.20.17.14; author wiz; state Exp; branches; next ; commitid EMcaiYv1aQZRJVMD; desc @@ 1.2 log @libjxl: remove The package is not ready yet - it downloads dependencies during build. Moved back to wip for finishing up. @ text @$NetBSD: patch-plugins_gimp_CMakeLists.txt,v 1.1 2022/07/22 20:17:14 wiz Exp $ * adapt to make gimp plugin a separate package --- plugins/gimp/CMakeLists.txt.orig 2021-10-04 18:02:44.000000000 +0000 +++ plugins/gimp/CMakeLists.txt @@@@ -2,9 +2,12 @@@@ # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. +cmake_minimum_required(VERSION 3.10) +project(gimp-jxl LANGUAGES C CXX) find_package(PkgConfig) pkg_check_modules(Gimp IMPORTED_TARGET gimp-2.0>=2.10 gimpui-2.0>=2.10) +pkg_check_modules(JXL IMPORTED_TARGET libjxl libjxl_threads) if (NOT Gimp_FOUND) message(WARNING "Gimp development libraries not found, the Gimp plugin will not be built") @@@@ -19,10 +22,10 @@@@ add_executable(file-jxl WIN32 file-jxl-save.cc file-jxl-save.h file-jxl.cc) -target_link_libraries(file-jxl jxl jxl_threads PkgConfig::Gimp) +target_link_libraries(file-jxl PkgConfig::JXL PkgConfig::Gimp) target_include_directories(file-jxl PUBLIC - ${PROJECT_SOURCE_DIR}) # for plugins/gimp absolute paths. + ${PROJECT_SOURCE_DIR}/../..) # for plugins/gimp absolute paths. pkg_get_variable(GIMP_LIB_DIR gimp-2.0 gimplibdir) install(TARGETS file-jxl RUNTIME DESTINATION "${GIMP_LIB_DIR}/plug-ins/file-jxl/") @ 1.1 log @graphics/libjxl: import libjxl-0.6.1 Packaged for wip by nros@@ Library for reading and writing JPEG XL images. JPEG XL (.jxl) is the next generation, general-purpose image compression codec by the JPEG committee. @ text @d1 1 a1 1 $NetBSD$ @