Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An initial debian package version #43

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,15 @@ build/

# CCLS cache
.ccls-cache/

# Debian build
obj-x86_64-linux-gnu
debian/.debhelper/
debian/debhelper-build-stamp
debian/files
debian/*.debhelper.log
debian/*.substvars
debian/libsparselizard-dev/
debian/libsparselizard0/
debian/substvars
debian/tmp/
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sparselizard (0.0.1-0) unstable; urgency=medium

* Initial debian package

-- Jean-Samuel Reynaud <[email protected]> Wed, 12 May 2021 10:19:53 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
26 changes: 26 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Source: sparselizard
Section: libs
Priority: optional
Maintainer: Jean-Samuel Reynaud <[email protected]>
Build-Depends: debhelper (>= 10.0.0), cmake, libopenmpi-dev, libblas-dev, libmetis-dev,libpetsc-real-dev| libpetsc3.7.7-dev,
libslepc-real3.12-dev | libslepc-real3.10-dev |libslepc3.7.4-dev, libmumps-dev
Standards-Version: 3.6.1.1


Package: libsparselizard0
Architecture: any
Depends: ${shlibs:Depends}, ${dist:Depends}
Description: C++ FEM library shared libraries
Sparselizard is a high-performance, multiphysics, hp-adaptive, open source C++ finite element
library running on Linux, Mac and Windows. It is used to design next generation microdevices
(ultrasound transducers, micromirrors, microvalves, comb drives,...) and it is carefully
validated against analytical solutions, third party software and measurements of the fabricated devices

Package: libsparselizard-dev
Architecture: any
Depends: ${shlibs:Depends}, ${dist:Depends}
Description: C++ FEM library development files
Sparselizard is a high-performance, multiphysics, hp-adaptive, open source C++ finite element
library running on Linux, Mac and Windows. It is used to design next generation microdevices
(ultrasound transducers, micromirrors, microvalves, comb drives,...) and it is carefully
validated against analytical solutions, third party software and measurements of the fabricated devices
1 change: 1 addition & 0 deletions debian/libsparselizard-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/include/sparselizard/
1 change: 1 addition & 0 deletions debian/libsparselizard0.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/x86_64-linux-gnu/libsparselizard.so
31 changes: 31 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/make -f

# out of tree build folder for schematic symbols
DEB_BUILD_DIR=debian/build
# default install folder
INSTDIR=$(CURDIR)/debian/tmp

DEB_CMAKE_OPTS := \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMPI_INCLUDE_PATH=/usr/lib/x86_64-linux-gnu/openmpi/include \
-DMPI_LIBRARIES=/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so \
-DMPI_PATH=/usr/lib/x86_64-linux-gnu/openmpi \
-DBLAS_INCLUDE_PATH=/usr/include/x86_64-linux-gnu \
-DBLAS_LIBRARIES=/usr/lib/x86_64-linux-gnu/blas/libblas.so \
-DMETIS_INCLUDE_PATH=/usr/include \
-DMETIS_LIBRARIES=/usr/lib/x86_64-linux-gnu/libmetis.so \
-DPETSCCONF_INCLUDE_PATH=/usr/lib/petsc/include \
-DPETSC_INCLUDE_PATH=/usr/lib/petsc/include \
-DPETSC_LIBRARIES=/usr/lib/petscdir/petsc3.12/x86_64-linux-gnu-real/lib/libpetsc_real.so \
-DPETSC_PATH=/usr/lib/petsc/ \
-DSLEPC_INCLUDE_PATH=/usr/lib/slepc/include \
-DSLEPC_LIBRARIES=/usr/lib/slepcdir/slepc3.12/x86_64-linux-gnu-real/lib/libslepc_real.so \
-DMUMPS_INCLUDE_PATH=/usr/include \
-DMUMPS_LIBRARIES=/usr/lib/x86_64-linux-gnu/libmumps_common.so \
$(NULL)

%:
dh $@ --buildsystem=cmake

override_dh_auto_configure:
dh_auto_configure -- $(DEB_CMAKE_OPTS)