From e1d17fd599da05208c5af4844e6efbfb1ceef7df Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sun, 29 May 2011 12:20:23 +0000 Subject: [PATCH] Generate package dependences for debian git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38881 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/cmake/LyxPackaging.cmake | 16 +++------------- development/cmake/TODO.txt | 1 + 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/development/cmake/LyxPackaging.cmake b/development/cmake/LyxPackaging.cmake index 42df695e1b..b2abeaa146 100644 --- a/development/cmake/LyxPackaging.cmake +++ b/development/cmake/LyxPackaging.cmake @@ -32,19 +32,9 @@ set(CPACK_RPM_PACKAGE_VENDOR "The LyX team") set(CPACK_PACKAGE_CONTACT "${PACKAGE_BUGREPORT}") set(CPACK_SOURCE_PACKAGE_FILE_NAME "${LYX_PROJECT}-${LYX_INSTALL_SUFFIX}") -# This is experimental, valid on _my_ system (Kornel) -set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqtgui4 (>= 4.4.3-0)") -if(ASPELL_FOUND) - set(CPACK_DEBIAN_PACKAGE_DEPENDS "libaspell15 (>= 0.60.6-1),${CPACK_DEBIAN_PACKAGE_DEPENDS}") -endif() -if(ENCHANT_FOUND) - set(CPACK_DEBIAN_PACKAGE_DEPENDS "libenchant1c2a (>= 1.6.0-0),${CPACK_DEBIAN_PACKAGE_DEPENDS}") -endif() -if(LYX_EXTERNAL_BOOST) - if(Boost_FOUND) - set(CPACK_DEBIAN_PACKAGE_DEPENDS "libboost-regex1.40.0 (>= 1.40.0-4),libboost-signals1.40.0 (>= 1.40.0-4),${CPACK_DEBIAN_PACKAGE_DEPENDS}") - endif() -endif() +# use dpkg-shlibdeps to generate package dependency list. +set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) + # # for the next ones, cpack insists on data with values in some file set(CPACK_PACKAGE_DESCRIPTION_FILE "${TOP_SRC_DIR}/${LYX_CMAKE_DIR}/LyX_description.txt") diff --git a/development/cmake/TODO.txt b/development/cmake/TODO.txt index 4a8af92fd2..7db28a62c7 100644 --- a/development/cmake/TODO.txt +++ b/development/cmake/TODO.txt @@ -46,6 +46,7 @@ Features - DONE: target for regenaration of lfuns manual would be nice (ie make lfundoc) - DONE: target for doxygen generation (ie make doxydoc) * DONE: get patch version from configure.ac (regex) + * DONE: Automatically generate package dependencies for debian Cleanup