1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

science/InsightToolkit: Eliminate conflict with lp_solve by renaming the shared library

liblp_solve55.so is renamed into liblp_solve55_itk.so

References:
* https://github.com/InsightSoftwareConsortium/ITK/issues/4031
* https://github.com/RTKConsortium/RTK/issues/548
This commit is contained in:
Yuri Victorovich 2024-01-02 22:28:14 -08:00
parent 6963b8318f
commit 95e8382951
2 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= InsightToolkit
DISTVERSIONPREFIX= v
DISTVERSION= 5.3.0
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= science biology
MASTER_SITES= https://github.com/InsightSoftwareConsortium/ITK/releases/download/v${DISTVERSION}/:data
DISTFILES= InsightData-${DISTVERSION}.tar.gz:data
@ -90,6 +90,14 @@ pre-configure: # workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?i
@${SETENV} ${MAKE_ENV} ${CC} -c -fPIC ${FILESDIR}/ftime.c -o ${WRKSRC}/libftime.o
@${AR} -rcs ${WRKSRC}/libftime.a ${WRKSRC}/libftime.o
post-configure: # fix conflict with lp_solve by renaming the shared library to liblp_solve55_itk, see https://github.com/InsightSoftwareConsortium/ITK/issues/4031
@${REINPLACE_CMD} \
-e 's|lpsolve55|lpsolve55_itk|g' \
${WRKSRC}/Modules/Remote/RTK/CMakeLists.txt \
${WRKSRC}/Modules/Remote/RTK/src/CMakeLists.txt \
${WRKSRC}/Modules/Remote/RTK/utilities/lp_solve/CMakeLists.txt
post-install: # remove contentless docs
@${RM} -r ${STAGEDIR}${PREFIX}/share

View File

@ -4273,9 +4273,9 @@ lib/libitkopenjpeg-%%ITK_VER%%.so
lib/libitkopenjpeg-%%ITK_VER%%.so.1
lib/libitksys-%%ITK_VER%%.so
lib/libitksys-%%ITK_VER%%.so.1
lib/liblpsolve55.so
lib/liblpsolve55.so.5
lib/liblpsolve55.so.5.5.2
lib/liblpsolve55_itk.so
lib/liblpsolve55_itk.so.5
lib/liblpsolve55_itk.so.5.5.2
lib/rtkelektasynergygeometry.py
lib/rtkorageometry.py
lib/rtksimulatedgeometry.py