forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sfcgal: init at 1.5.2 (NixOS#338058)
- Loading branch information
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7016,6 +7016,12 @@ | |
githubId = 1202014; | ||
name = "Falco Peijnenburg"; | ||
}; | ||
fqidz = { | ||
email = "[email protected]"; | ||
github = "fqidz"; | ||
githubId = 82884264; | ||
name = "Faidz Arante"; | ||
}; | ||
fragamus = { | ||
email = "[email protected]"; | ||
github = "fragamus"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index a3babfae..11ea637c 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -209,7 +209,7 @@ if(NOT DEFINED CMAKE_INSTALL_LIBDIR) | ||
set(CMAKE_INSTALL_LIBDIR "${_LIBDIR_DEFAULT}" CACHE PATH "object code libraries (${_LIBDIR_DEFAULT})") | ||
endif() | ||
|
||
-SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") | ||
+SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}") | ||
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) | ||
#SET(CMAKE_MACOSX_RPATH ON) | ||
|
||
diff --git a/sfcgal-config.in b/sfcgal-config.in | ||
index a0e992c5..49615c13 100755 | ||
--- a/sfcgal-config.in | ||
+++ b/sfcgal-config.in | ||
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ | ||
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@ | ||
|
||
usage() | ||
{ | ||
diff --git a/sfcgal.pc.in b/sfcgal.pc.in | ||
index 968cb407..bf517d02 100644 | ||
--- a/sfcgal.pc.in | ||
+++ b/sfcgal.pc.in | ||
@@ -1,6 +1,6 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
exec_prefix=${prefix} | ||
-libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ | ||
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@ | ||
includedir=${prefix}/include | ||
|
||
Name: sfcgal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitLab, | ||
cmake, | ||
cgal, | ||
boost, | ||
mpfr, | ||
gmp, | ||
}: | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "sfcgal"; | ||
version = "1.5.2"; | ||
|
||
src = fetchFromGitLab { | ||
owner = "sfcgal"; | ||
repo = "SFCGAL"; | ||
rev = "refs/tags/v${finalAttrs.version}"; | ||
hash = "sha256-fK1PfLm6n05PhH/sT6N/hQtH5Z6+Xc1nUCS1NYpLDcY="; | ||
}; | ||
|
||
buildInputs = [ | ||
cgal | ||
boost | ||
mpfr | ||
gmp | ||
]; | ||
|
||
nativeBuildInputs = [ cmake ]; | ||
|
||
patches = [ ./cmake-fix.patch ]; | ||
|
||
meta = { | ||
description = "C++ wrapper library around CGAL with the aim of supporting ISO 191007:2013 and OGC Simple Features for 3D operations"; | ||
homepage = "https://sfcgal.gitlab.io/SFCGAL/"; | ||
changelog = "https://gitlab.com/sfcgal/SFCGAL/-/releases/v${finalAttrs.version}"; | ||
license = lib.licenses.lgpl2; | ||
platforms = lib.platforms.linux; | ||
maintainers = [ lib.maintainers.fqidz ]; | ||
}; | ||
}) |