pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/56362: math/cgal embeds $WRKDIR in installed cmake files
The following reply was made to PR pkg/56362; it has been noted by GNATS.
From: Paul Ripke <stix%stix.id.au@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/56362: math/cgal embeds $WRKDIR in installed cmake files
Date: Sun, 15 Aug 2021 22:52:54 +1000
The following ugly patch works for me.
diff --git a/math/cgal/Makefile b/math/cgal/Makefile
index 34abc59866f..1b11968a979 100644
--- a/math/cgal/Makefile
+++ b/math/cgal/Makefile
@@ -24,6 +24,12 @@ REPLACE_SH+= scripts/cgal_create_cmake_script
pre-install:
find ${WRKSRC} -name \*.orig -exec rm {} \;
+SUBST_CLASSES+= cmakewrkdir
+SUBST_STAGE.cmakewrkdir= post-install
+SUBST_MESSAGE.cmakewrkdir= Removing $$WRKDIR from cmake files
+SUBST_FILES.cmakewrkdir= ${DESTDIR}${PREFIX}/lib/cmake/CGAL/*.cmake
+SUBST_SED.cmakewrkdir= -e 's%${WRKDIR}/.buildlink%${PREFIX}%g'
+
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
--
Paul Ripke
"Great minds discuss ideas, average minds discuss events, small minds
discuss people."
-- Disputed: Often attributed to Eleanor Roosevelt. 1948.
Home |
Main Index |
Thread Index |
Old Index