mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-25 04:10:33 +05:00
cleanup Ubuntu package dependencies, remove NSIS packager
This commit is contained in:
parent
e2cc34780c
commit
ef6001f072
@ -271,21 +271,18 @@ set(CPACK_PACKAGING_INSTALL_PREFIX "${INSTALL_DIR}")
|
||||
set(CPACK_PACKAGE_NAME netgen)
|
||||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "automatic 3d tetrahedral mesh generator")
|
||||
set(CPACK_PACKAGE_DESCRIPTION "NETGEN is an automatic 3d tetrahedral mesh generator. It accepts input from constructive solid geometry (CSG) or boundary representation (BRep) from STL file format. The connection to a geometry kernel allows the handling of IGES and STEP files. NETGEN contains modules for mesh optimization and hierarchical mesh refinement. Netgen is open source based on the LGPL license. It is available for Unix/Linux and Windows.")
|
||||
|
||||
if(UNIX)
|
||||
execute_process(COMMAND grep CODENAME /etc/lsb-release OUTPUT_VARIABLE temp OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
if(temp)
|
||||
set(CPACK_GENERATOR "DEB")
|
||||
string(SUBSTRING ${temp} 17 -1 UBUNTU_VERSION)
|
||||
message("ubuntu version: ${UBUNTU_VERSION}")
|
||||
if(${UBUNTU_VERSION} STREQUAL "utopic")
|
||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "python3, libboost-python1.55.0, libtk8.5, libtcl8.5, tix, libxmu6")
|
||||
endif(${UBUNTU_VERSION} STREQUAL "utopic")
|
||||
if(${UBUNTU_VERSION} STREQUAL "trusty")
|
||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "python3, libboost-python1.54.0, libtk8.5, libtcl8.5, tix, libxmu6")
|
||||
endif(${UBUNTU_VERSION} STREQUAL "trusty")
|
||||
|
||||
set(BOOST_PACKAGE "libboost-python${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}")
|
||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "python3, ${BOOST_PACKAGE}, libtk8.5, libtcl8.5, tix, libxmu6")
|
||||
execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER Matthias Hochsteger <matthias.hochsteger@tuwien.ac.at>)
|
||||
# TODO (use dpkg -s <packagename> to retrieve version)
|
||||
if(USE_MPI)
|
||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS}, libmetis5, openmpi-bin")
|
||||
set(CPACK_PACKAGE_NAME "${CPACK_PACKAGE_NAME}_mpi")
|
||||
@ -293,15 +290,9 @@ if(UNIX)
|
||||
set(CPACK_DEBIAN_PACKAGE_SECTION Science)
|
||||
set(CPACK_DEBIAN_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION})
|
||||
endif(temp)
|
||||
include(CPack)
|
||||
endif(UNIX)
|
||||
if(WIN32)
|
||||
set(CPACK_GENERATOR "NSIS")
|
||||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "netgen 6.1-dev")
|
||||
set(CPACK_INSTALL_PREFIX "")
|
||||
set(CPACK_PACKAGING_INSTALL_PREFIX "")
|
||||
endif(WIN32)
|
||||
|
||||
include(CPack)
|
||||
|
||||
#######################################################################
|
||||
# uninstall target
|
||||
|
Loading…
Reference in New Issue
Block a user