mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
graphics/dcmtk: Link with shared version of libtiff and add USES= pathfix
Port defines (lib)tiff as dependency using the shared library and also refers to it in .pc file as a shared however dcmimage/libsrc compiles using the static library. Adjust upstream code to link with the shared library instead. While at it add USES= pathfix to fix warning about location of installed .pc file. PR: 281640 Reviewed by: yuri
This commit is contained in:
parent
9c93c4945c
commit
c76de31594
@ -1,6 +1,7 @@
|
||||
PORTNAME= dcmtk
|
||||
DISTVERSIONPREFIX= ${PORTNAME:tu}-
|
||||
DISTVERSION= 3.6.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics devel
|
||||
|
||||
PATCH_SITES= https://github.com/DCMTK/${PORTNAME}/commit/
|
||||
@ -17,7 +18,7 @@ LIB_DEPENDS= libicuuc.so:devel/icu \
|
||||
libpng.so:graphics/png \
|
||||
libtiff.so:graphics/tiff
|
||||
|
||||
USES= compiler:c++11-lang cmake cpe gnome jpeg ssl
|
||||
USES= compiler:c++11-lang cmake cpe gnome jpeg pathfix ssl
|
||||
CPE_VENDOR= offis
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= ${PORTNAME:tu}
|
||||
|
@ -0,0 +1,8 @@
|
||||
--- dcmimage/libsrc/CMakeLists.txt.orig 2024-09-22 09:00:50 UTC
|
||||
+++ dcmimage/libsrc/CMakeLists.txt
|
||||
@@ -25,4 +25,4 @@ DCMTK_TARGET_LINK_MODULES(dcmimage oflog dcmdata dcmim
|
||||
)
|
||||
|
||||
DCMTK_TARGET_LINK_MODULES(dcmimage oflog dcmdata dcmimgle)
|
||||
-DCMTK_TARGET_LINK_LIBRARIES(dcmimage ${LIBTIFF_LIBS} ${LIBPNG_LIBS})
|
||||
+DCMTK_TARGET_LINK_LIBRARIES(dcmimage TIFF::tiff ${LIBPNG_LIBS})
|
Loading…
Reference in New Issue
Block a user