cernlib: new variant shared (#39406)

This allows users to install cernlib with static libraries only, instead of both static and shared.
This commit is contained in:
Wouter Deconinck 2023-08-12 10:34:48 -05:00 committed by GitHub
parent 668fb1201f
commit 6c5d125cb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,8 @@ class Cernlib(CMakePackage):
sha256="733d148415ef78012ff81f21922d3bf641be7514b0242348dd0200cf1b003e46",
)
variant("shared", default=True, description="Build shared libraries")
depends_on("freetype")
depends_on("motif")
depends_on("libnsl")
@ -35,5 +37,5 @@ def patch(self):
filter_file("crypto", "crypt", "packlib/CMakeLists.txt")
def cmake_args(self):
args = ["-DCERNLIB_BUILD_SHARED:BOOL=ON"]
args = [self.define_from_variant("CERNLIB_BUILD_SHARED", "shared")]
return args