From 507c3a2eba8153ab285f0ec8c35598588382d1db Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 16 Nov 2011 17:27:43 -0800 Subject: cmake: added support for monolithic packaging rpms + debs --- cmake/Packaging/Fedora-15.cmake | 10 ++++++++++ cmake/Packaging/Fedora-16.cmake | 10 ++++++++++ cmake/Packaging/Ubuntu-10.04.cmake | 10 ++++++++++ cmake/Packaging/Ubuntu-10.10.cmake | 10 ++++++++++ cmake/Packaging/Ubuntu-11.04.cmake | 11 +++++++++++ cmake/Packaging/Ubuntu-11.10.cmake | 10 ++++++++++ 6 files changed, 61 insertions(+) create mode 100644 cmake/Packaging/Fedora-15.cmake create mode 100644 cmake/Packaging/Fedora-16.cmake create mode 100644 cmake/Packaging/Ubuntu-10.04.cmake create mode 100644 cmake/Packaging/Ubuntu-10.10.cmake create mode 100644 cmake/Packaging/Ubuntu-11.04.cmake create mode 100644 cmake/Packaging/Ubuntu-11.10.cmake (limited to 'cmake/Packaging') diff --git a/cmake/Packaging/Fedora-15.cmake b/cmake/Packaging/Fedora-15.cmake new file mode 100644 index 000000000..1ec017a7a --- /dev/null +++ b/cmake/Packaging/Fedora-15.cmake @@ -0,0 +1,10 @@ +SET(PACKAGE_DEPENDS_GRUEL_RUNTIME "boost-python" "glibc") +SET(PACKAGE_DEPENDS_GRUEL_PYTHON "python") +SET(PACKAGE_DEPENDS_CORE_RUNTIME "fftw-libs" "gsl") +SET(PACKAGE_DEPENDS_QTGUI_RUNTIME "qt" "qwt4") +SET(PACKAGE_DEPENDS_QTGUI_PYTHON "PyQt4" "PyQwt") +SET(PACKAGE_DEPENDS_GRC "python" "numpy" "gtk2" "python-lxml" "python-cheetah") +SET(PACKAGE_DEPENDS_WXGUI "python-wxgtk2.8" "python" "numpy") +SET(PACKAGE_DEPENDS_VIDEO_SDL_RUNTIME "SDL") +SET(PACKAGE_DEPENDS_UHD_RUNTIME "uhd") +SET(PACKAGE_DEPENDS_AUDIO_RUNTIME "pulseaudio" "alsa-lib" "jack-audio-connection-kit") diff --git a/cmake/Packaging/Fedora-16.cmake b/cmake/Packaging/Fedora-16.cmake new file mode 100644 index 000000000..278d68990 --- /dev/null +++ b/cmake/Packaging/Fedora-16.cmake @@ -0,0 +1,10 @@ +SET(PACKAGE_DEPENDS_GRUEL_RUNTIME "boost-python" "glibc") +SET(PACKAGE_DEPENDS_GRUEL_PYTHON "python") +SET(PACKAGE_DEPENDS_CORE_RUNTIME "fftw-libs" "gsl") +SET(PACKAGE_DEPENDS_QTGUI_RUNTIME "qt" "qwt") +SET(PACKAGE_DEPENDS_QTGUI_PYTHON "PyQt4" "PyQwt") +SET(PACKAGE_DEPENDS_GRC "python" "numpy" "gtk2" "python-lxml" "python-cheetah") +SET(PACKAGE_DEPENDS_WXGUI "wxGTK" "python" "numpy") +SET(PACKAGE_DEPENDS_VIDEO_SDL_RUNTIME "SDL") +SET(PACKAGE_DEPENDS_UHD_RUNTIME "uhd") +SET(PACKAGE_DEPENDS_AUDIO_RUNTIME "pulseaudio" "alsa-lib" "jack-audio-connection-kit") diff --git a/cmake/Packaging/Ubuntu-10.04.cmake b/cmake/Packaging/Ubuntu-10.04.cmake new file mode 100644 index 000000000..a7a60f6b8 --- /dev/null +++ b/cmake/Packaging/Ubuntu-10.04.cmake @@ -0,0 +1,10 @@ +SET(PACKAGE_DEPENDS_GRUEL_RUNTIME "libboost-all-dev" "libc6") +SET(PACKAGE_DEPENDS_GRUEL_PYTHON "python") +SET(PACKAGE_DEPENDS_CORE_RUNTIME "libfftw3-3" "libgsl0ldbl") +SET(PACKAGE_DEPENDS_QTGUI_RUNTIME "libqtcore4" "libqwt5-qt4") +SET(PACKAGE_DEPENDS_QTGUI_PYTHON "python-qt4" "python-qwt5-qt4") +SET(PACKAGE_DEPENDS_GRC "python" "python-numpy" "python-gtk2" "python-lxml" "python-cheetah") +SET(PACKAGE_DEPENDS_WXGUI "python-wxgtk2.8" "python" "python-numpy") +SET(PACKAGE_DEPENDS_VIDEO_SDL_RUNTIME "libsdl1.2debian") +SET(PACKAGE_DEPENDS_UHD_RUNTIME "uhd") +SET(PACKAGE_DEPENDS_AUDIO_RUNTIME "libpulse0" "alsa-base" "libjack0") diff --git a/cmake/Packaging/Ubuntu-10.10.cmake b/cmake/Packaging/Ubuntu-10.10.cmake new file mode 100644 index 000000000..a7a60f6b8 --- /dev/null +++ b/cmake/Packaging/Ubuntu-10.10.cmake @@ -0,0 +1,10 @@ +SET(PACKAGE_DEPENDS_GRUEL_RUNTIME "libboost-all-dev" "libc6") +SET(PACKAGE_DEPENDS_GRUEL_PYTHON "python") +SET(PACKAGE_DEPENDS_CORE_RUNTIME "libfftw3-3" "libgsl0ldbl") +SET(PACKAGE_DEPENDS_QTGUI_RUNTIME "libqtcore4" "libqwt5-qt4") +SET(PACKAGE_DEPENDS_QTGUI_PYTHON "python-qt4" "python-qwt5-qt4") +SET(PACKAGE_DEPENDS_GRC "python" "python-numpy" "python-gtk2" "python-lxml" "python-cheetah") +SET(PACKAGE_DEPENDS_WXGUI "python-wxgtk2.8" "python" "python-numpy") +SET(PACKAGE_DEPENDS_VIDEO_SDL_RUNTIME "libsdl1.2debian") +SET(PACKAGE_DEPENDS_UHD_RUNTIME "uhd") +SET(PACKAGE_DEPENDS_AUDIO_RUNTIME "libpulse0" "alsa-base" "libjack0") diff --git a/cmake/Packaging/Ubuntu-11.04.cmake b/cmake/Packaging/Ubuntu-11.04.cmake new file mode 100644 index 000000000..71882b2e1 --- /dev/null +++ b/cmake/Packaging/Ubuntu-11.04.cmake @@ -0,0 +1,11 @@ +#set the debian package dependencies (parsed by our deb component maker) +SET(PACKAGE_DEPENDS_GRUEL_RUNTIME "libboost-all-dev" "libc6") +SET(PACKAGE_DEPENDS_GRUEL_PYTHON "python") +SET(PACKAGE_DEPENDS_CORE_RUNTIME "libfftw3-3" "libgsl0ldbl") +SET(PACKAGE_DEPENDS_QTGUI_RUNTIME "libqtcore4" "libqwt5-qt4") +SET(PACKAGE_DEPENDS_QTGUI_PYTHON "python-qt4" "python-qwt5-qt4") +SET(PACKAGE_DEPENDS_GRC "python" "python-numpy" "python-gtk2" "python-lxml" "python-cheetah") +SET(PACKAGE_DEPENDS_WXGUI "python-wxgtk2.8") +SET(PACKAGE_DEPENDS_VIDEO_SDL_RUNTIME "libsdl1.2debian") +SET(PACKAGE_DEPENDS_UHD_RUNTIME "uhd") +SET(PACKAGE_DEPENDS_AUDIO_RUNTIME "libpulse0" "alsa-base" "libjack0") diff --git a/cmake/Packaging/Ubuntu-11.10.cmake b/cmake/Packaging/Ubuntu-11.10.cmake new file mode 100644 index 000000000..dcb7b3178 --- /dev/null +++ b/cmake/Packaging/Ubuntu-11.10.cmake @@ -0,0 +1,10 @@ +SET(PACKAGE_DEPENDS_GRUEL_RUNTIME "libboost-all-dev" "libc6") +SET(PACKAGE_DEPENDS_GRUEL_PYTHON "python" "python-numpy") +SET(PACKAGE_DEPENDS_CORE_RUNTIME "libfftw3-3" "libgsl0ldbl") +SET(PACKAGE_DEPENDS_QTGUI_RUNTIME "libqtcore4" "libqwt6") +SET(PACKAGE_DEPENDS_QTGUI_PYTHON "python-qt4" "python-qwt5-qt4") +SET(PACKAGE_DEPENDS_GRC "python" "python-numpy" "python-gtk2" "python-lxml" "python-cheetah") +SET(PACKAGE_DEPENDS_WXGUI "python-wxgtk2.8") +SET(PACKAGE_DEPENDS_VIDEO_SDL_RUNTIME "libsdl1.2debian") +SET(PACKAGE_DEPENDS_UHD_RUNTIME "uhd") +SET(PACKAGE_DEPENDS_AUDIO_RUNTIME "libpulse0" "alsa-base" "libjack0") -- cgit From d56564f5e3d9ccefc9ac34c81dc8d061298301e7 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 16 Nov 2011 17:41:11 -0800 Subject: cmake: moved post/pre inst/uinst files --- cmake/Packaging/post_install.in | 4 ++++ cmake/Packaging/post_uninstall.in | 3 +++ cmake/Packaging/postinst.in | 6 ++++++ cmake/Packaging/postrm.in | 5 +++++ cmake/Packaging/pre_install.in | 1 + cmake/Packaging/pre_uninstall.in | 3 +++ cmake/Packaging/preinst.in | 5 +++++ cmake/Packaging/prerm.in | 5 +++++ 8 files changed, 32 insertions(+) create mode 100755 cmake/Packaging/post_install.in create mode 100755 cmake/Packaging/post_uninstall.in create mode 100755 cmake/Packaging/postinst.in create mode 100755 cmake/Packaging/postrm.in create mode 100755 cmake/Packaging/pre_install.in create mode 100755 cmake/Packaging/pre_uninstall.in create mode 100755 cmake/Packaging/preinst.in create mode 100755 cmake/Packaging/prerm.in (limited to 'cmake/Packaging') diff --git a/cmake/Packaging/post_install.in b/cmake/Packaging/post_install.in new file mode 100755 index 000000000..e7245f032 --- /dev/null +++ b/cmake/Packaging/post_install.in @@ -0,0 +1,4 @@ +#!/bin/sh + +@CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop install +ldconfig diff --git a/cmake/Packaging/post_uninstall.in b/cmake/Packaging/post_uninstall.in new file mode 100755 index 000000000..2d1871b1d --- /dev/null +++ b/cmake/Packaging/post_uninstall.in @@ -0,0 +1,3 @@ +#!/bin/sh + +ldconfig diff --git a/cmake/Packaging/postinst.in b/cmake/Packaging/postinst.in new file mode 100755 index 000000000..7fef2accf --- /dev/null +++ b/cmake/Packaging/postinst.in @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ "$1" = "configure" ]; then + @CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop install + ldconfig +fi diff --git a/cmake/Packaging/postrm.in b/cmake/Packaging/postrm.in new file mode 100755 index 000000000..b780602a7 --- /dev/null +++ b/cmake/Packaging/postrm.in @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "$1" = "remove" ]; then + ldconfig +fi diff --git a/cmake/Packaging/pre_install.in b/cmake/Packaging/pre_install.in new file mode 100755 index 000000000..1a2485251 --- /dev/null +++ b/cmake/Packaging/pre_install.in @@ -0,0 +1 @@ +#!/bin/sh diff --git a/cmake/Packaging/pre_uninstall.in b/cmake/Packaging/pre_uninstall.in new file mode 100755 index 000000000..c5e085e89 --- /dev/null +++ b/cmake/Packaging/pre_uninstall.in @@ -0,0 +1,3 @@ +#!/bin/sh + +@CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop uninstall diff --git a/cmake/Packaging/preinst.in b/cmake/Packaging/preinst.in new file mode 100755 index 000000000..c60d46568 --- /dev/null +++ b/cmake/Packaging/preinst.in @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "$1" = "install" ]; then + ls +fi diff --git a/cmake/Packaging/prerm.in b/cmake/Packaging/prerm.in new file mode 100755 index 000000000..d09887850 --- /dev/null +++ b/cmake/Packaging/prerm.in @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "$1" = "remove" ]; then + @CMAKE_INSTALL_PREFIX@/libexec/gnuradio/grc_setup_freedesktop uninstall +fi -- cgit